Package org.apache.tools.ant.types
Class ResourceLocation
- java.lang.Object
- 
- org.apache.tools.ant.types.ResourceLocation
 
- 
- Direct Known Subclasses:
- DTDLocation
 
 public class ResourceLocation extends java.lang.ObjectHelper class to handle the <dtd>and<entity>nested elements. These correspond to thePUBLICandURIcatalog 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:
- Catalog
 
- 
- 
Constructor SummaryConstructors Constructor Description ResourceLocation()
 - 
Method SummaryModifier and Type Method Description java.net.URLgetBase()java.lang.StringgetLocation()java.lang.StringgetPublicId()voidsetBase(java.net.URL base)voidsetLocation(java.lang.String location)voidsetPublicId(java.lang.String publicId)
 
- 
- 
- 
Method Detail- 
setPublicIdpublic void setPublicId(java.lang.String publicId) - Parameters:
- publicId- uniquely identifies the resource.
 
 - 
setLocationpublic void setLocation(java.lang.String location) - Parameters:
- location- the location of the resource associated with the publicId.
 
 - 
setBasepublic void setBase(java.net.URL base) - 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.
 
 - 
getPublicIdpublic java.lang.String getPublicId() - Returns:
- the publicId of the resource.
 
 - 
getLocationpublic java.lang.String getLocation() - Returns:
- the location of the resource identified by the publicId.
 
 - 
getBasepublic java.net.URL getBase() - Returns:
- the base of the resource identified by the publicId.
 
 
- 
 
-