org.apache.tools.ant.types

Class ResourceLocation

Known Direct Subclasses:
DTDLocation

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:

Since:
Ant 1.6
See Also:
org.apache.xml.resolver.Catalog

Method Summary

URL
getBase()
String
getLocation()
String
getPublicId()
void
setBase(URL base)
void
setLocation(String location)
void
setPublicId(String publicId)

Method Details

getBase

public URL getBase()
Returns:
the base of the resource identified by the publicId.

getLocation

public String getLocation()
Returns:
the location of the resource identified by the publicId.

getPublicId

public String getPublicId()
Returns:
the publicId of the resource.

setBase

public void setBase(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.

setLocation

public void setLocation(String location)
Parameters:
location - the location of the resource associated with the publicId.

setPublicId

public void setPublicId(String publicId)
Parameters:
publicId - uniquely identifies the resource.