Package org.apache.xerces.util
Class XMLResourceIdentifierImpl
java.lang.Object
org.apache.xerces.util.XMLResourceIdentifierImpl
- All Implemented Interfaces:
org.apache.xerces.xni.XMLResourceIdentifier
- Direct Known Subclasses:
XMLDTDDescription,XMLEntityDescriptionImpl,XSDDescription
public class XMLResourceIdentifierImpl
extends Object
implements org.apache.xerces.xni.XMLResourceIdentifier
The XMLResourceIdentifierImpl class is an implementation of the
XMLResourceIdentifier interface which defines the location identity
of a resource.
- Version:
- $Id: XMLResourceIdentifierImpl.java 447241 2006-09-18 05:12:57Z mrglavas $
- Author:
- Andy Clark
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty resource identifier.XMLResourceIdentifierImpl(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId) Constructs a resource identifier.XMLResourceIdentifierImpl(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace) Constructs a resource identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the values.Returns the base URI against which the literal SystemId is to be resolved.Returns the expanded system identifier.Returns the literal system identifier.Returns the namespace of the resource.Returns the public identifier.inthashCode()Returns a hash code for this object.voidsetBaseSystemId(String baseSystemId) Sets the base system identifier.voidsetExpandedSystemId(String expandedSystemId) Sets the expanded system identifier.voidsetLiteralSystemId(String literalSystemId) Sets the literal system identifier.voidsetNamespace(String namespace) Sets the namespace of the resource.voidsetPublicId(String publicId) Sets the public identifier.voidSets the values of the resource identifier.voidsetValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace) Sets the values of the resource identifier.toString()Returns a string representation of this object.
-
Field Details
-
fPublicId
The public identifier. -
fLiteralSystemId
The literal system identifier. -
fBaseSystemId
The base system identifier. -
fExpandedSystemId
The expanded system identifier. -
fNamespace
The namespace of the resource.
-
-
Constructor Details
-
XMLResourceIdentifierImpl
public XMLResourceIdentifierImpl()Constructs an empty resource identifier. -
XMLResourceIdentifierImpl
public XMLResourceIdentifierImpl(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId) Constructs a resource identifier.- Parameters:
publicId- The public identifier.literalSystemId- The literal system identifier.baseSystemId- The base system identifier.expandedSystemId- The expanded system identifier.
-
XMLResourceIdentifierImpl
public XMLResourceIdentifierImpl(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace) Constructs a resource identifier.- Parameters:
publicId- The public identifier.literalSystemId- The literal system identifier.baseSystemId- The base system identifier.expandedSystemId- The expanded system identifier.namespace- The namespace.
-
-
Method Details
-
setValues
public void setValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId) Sets the values of the resource identifier. -
setValues
public void setValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace) Sets the values of the resource identifier. -
clear
public void clear()Clears the values. -
setPublicId
Sets the public identifier.- Specified by:
setPublicIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
setLiteralSystemId
Sets the literal system identifier.- Specified by:
setLiteralSystemIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
setBaseSystemId
Sets the base system identifier.- Specified by:
setBaseSystemIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
setExpandedSystemId
Sets the expanded system identifier.- Specified by:
setExpandedSystemIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
setNamespace
Sets the namespace of the resource.- Specified by:
setNamespacein interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
getPublicId
Returns the public identifier.- Specified by:
getPublicIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
getLiteralSystemId
Returns the literal system identifier.- Specified by:
getLiteralSystemIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
getBaseSystemId
Returns the base URI against which the literal SystemId is to be resolved.- Specified by:
getBaseSystemIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
getExpandedSystemId
Returns the expanded system identifier.- Specified by:
getExpandedSystemIdin interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
getNamespace
Returns the namespace of the resource.- Specified by:
getNamespacein interfaceorg.apache.xerces.xni.XMLResourceIdentifier
-
hashCode
public int hashCode()Returns a hash code for this object. -
toString
Returns a string representation of this object.
-