DTDLocationpublic 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:
Catalog| Constructor | Description |
|---|---|
ResourceLocation() |
| Modifier and Type | Method | Description |
|---|---|---|
java.net.URL |
getBase() |
|
java.lang.String |
getLocation() |
|
java.lang.String |
getPublicId() |
|
void |
setBase(java.net.URL base) |
|
void |
setLocation(java.lang.String location) |
|
void |
setPublicId(java.lang.String publicId) |
public void setPublicId(java.lang.String publicId)
publicId - uniquely identifies the resource.public void setLocation(java.lang.String location)
location - the location of the resource associated with the
publicId.public void setBase(java.net.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.public java.lang.String getPublicId()
public java.lang.String getLocation()
public java.net.URL getBase()