org.apache.tools.ant.types
Class ResourceLocation
java.lang.Object
org.apache.tools.ant.types.ResourceLocation
public class ResourceLocation
extends java.lang.Object
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
org.apache.xml.resolver.Catalog
getBase
public URL getBase()
- the base of the resource identified by the publicId.
getLocation
public String getLocation()
- the location of the resource identified by the publicId.
getPublicId
public String getPublicId()
- the publicId of the resource.
setBase
public void setBase(URL base)
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.
setLocation
public void setLocation(String location)
location
- the location of the resource associated with the
publicId.
setPublicId
public void setPublicId(String publicId)
publicId
- uniquely identifies the resource.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.