org.apache.tools.ant.types

Class ResourceLocation

public class ResourceLocation extends 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
URLgetBase()
StringgetLocation()
StringgetPublicId()
voidsetBase(URL base)
voidsetLocation(String location)
voidsetPublicId(String publicId)

Method Detail

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.

Copyright