Package org.apache.tools.ant.types
Class ResourceLocation
java.lang.Object
org.apache.tools.ant.types.ResourceLocation
- Direct Known Subclasses:
- DTDLocation
Helper class to handle the <dtd> and
 <entity> nested elements.  These correspond to
 the PUBLIC and URI catalog entry types,
 respectively, as defined in the 
 OASIS "Open Catalog" standard.
Possible Future Enhancements:
- Bring the Ant element names into conformance with the OASIS standard
- Add support for additional OASIS catalog entry types
- Since:
- Ant 1.6
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetBase()voidvoidsetLocation(String location) voidsetPublicId(String publicId) 
- 
Constructor Details- 
ResourceLocationpublic ResourceLocation()
 
- 
- 
Method Details- 
setPublicId- Parameters:
- publicId- uniquely identifies the resource.
 
- 
setLocation- Parameters:
- location- the location of the resource associated with the publicId.
 
- 
setBase- Parameters:
- base- the base URL of the resource associated with the publicId. If the location specifies a relative URL/pathname, it is resolved using the base. The default base for an external catalog file is the directory in which it is located.
 
- 
getPublicId- Returns:
- the publicId of the resource.
 
- 
getLocation- Returns:
- the location of the resource identified by the publicId.
 
- 
getBase- Returns:
- the base of the resource identified by the publicId.
 
 
-