Top Description Fields Constructors Methods
org.apache.tools.ant.types

public Class ResourceLocation

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.types.DTDLocation
Imports
java.net.URL

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

Field Summary

Modifier and TypeField and Description
private URL
base

base URL of the dtd/entity, or null.

private String
location

location of the dtd/entity - a file/resource/URL.

private String
publicId

publicId of the dtd/entity.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public URL

Returns:

the base of the resource identified by the publicId.
getBase
()

public String

Returns:

the location of the resource identified by the publicId.
getLocation
()

public String

Returns:

the publicId of the resource.
getPublicId
()

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

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseback to summary
private URL base

base URL of the dtd/entity, or null. If null, the Ant project basedir is assumed. 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.

locationback to summary
private String location

location of the dtd/entity - a file/resource/URL.

publicIdback to summary
private String publicId

publicId of the dtd/entity.

Constructor Detail

ResourceLocationback to summary
public ResourceLocation()

Method Detail

getBaseback to summary
public URL getBase()
Returns:URL

the base of the resource identified by the publicId.

getLocationback to summary
public String getLocation()
Returns:String

the location of the resource identified by the publicId.

getPublicIdback to summary
public String getPublicId()
Returns:String

the publicId of the resource.

setBaseback to summary
public void setBase(URL base)
Parameters
base:URL

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.

setLocationback to summary
public void setLocation(String location)
Parameters
location:String

the location of the resource associated with the publicId.

setPublicIdback to summary
public void setPublicId(String publicId)
Parameters
publicId:String

uniquely identifies the resource.