Class XMLResourceIdentifierImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.XMLResourceIdentifierImpl
-
- All Implemented Interfaces:
XMLResourceIdentifier
- Direct Known Subclasses:
XMLDTDDescription,XMLEntityDescriptionImpl,XSDDescription
public class XMLResourceIdentifierImpl extends Object implements XMLResourceIdentifier
The XMLResourceIdentifierImpl class is an implementation of the XMLResourceIdentifier interface which defines the location identity of a resource.- Version:
- $Id$
- Author:
- Andy Clark
-
-
Field Summary
Fields Modifier and Type Field Description protected StringfBaseSystemIdThe base system identifier.protected StringfExpandedSystemIdThe expanded system identifier.protected StringfLiteralSystemIdThe literal system identifier.protected StringfNamespaceThe namespace of the resource.protected StringfPublicIdThe public identifier.
-
Constructor Summary
Constructors Constructor Description XMLResourceIdentifierImpl()Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the values.StringgetBaseSystemId()Returns the base URI against which the literal SystemId is to be resolved.StringgetExpandedSystemId()Returns the expanded system identifier.StringgetLiteralSystemId()Returns the literal system identifier.StringgetNamespace()Returns the namespace of the resource.StringgetPublicId()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.voidsetValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId)Sets the values of the resource identifier.voidsetValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)Sets the values of the resource identifier.StringtoString()Returns a string representation of this object.
-
-
-
Field Detail
-
fPublicId
protected String fPublicId
The public identifier.
-
fLiteralSystemId
protected String fLiteralSystemId
The literal system identifier.
-
fBaseSystemId
protected String fBaseSystemId
The base system identifier.
-
fExpandedSystemId
protected String fExpandedSystemId
The expanded system identifier.
-
fNamespace
protected String fNamespace
The namespace of the resource.
-
-
Constructor Detail
-
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 Detail
-
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
public void setPublicId(String publicId)
Sets the public identifier.- Specified by:
setPublicIdin interfaceXMLResourceIdentifier
-
setLiteralSystemId
public void setLiteralSystemId(String literalSystemId)
Sets the literal system identifier.- Specified by:
setLiteralSystemIdin interfaceXMLResourceIdentifier
-
setBaseSystemId
public void setBaseSystemId(String baseSystemId)
Sets the base system identifier.- Specified by:
setBaseSystemIdin interfaceXMLResourceIdentifier
-
setExpandedSystemId
public void setExpandedSystemId(String expandedSystemId)
Sets the expanded system identifier.- Specified by:
setExpandedSystemIdin interfaceXMLResourceIdentifier
-
setNamespace
public void setNamespace(String namespace)
Sets the namespace of the resource.- Specified by:
setNamespacein interfaceXMLResourceIdentifier
-
getPublicId
public String getPublicId()
Returns the public identifier.- Specified by:
getPublicIdin interfaceXMLResourceIdentifier
-
getLiteralSystemId
public String getLiteralSystemId()
Returns the literal system identifier.- Specified by:
getLiteralSystemIdin interfaceXMLResourceIdentifier
-
getBaseSystemId
public String getBaseSystemId()
Returns the base URI against which the literal SystemId is to be resolved.- Specified by:
getBaseSystemIdin interfaceXMLResourceIdentifier
-
getExpandedSystemId
public String getExpandedSystemId()
Returns the expanded system identifier.- Specified by:
getExpandedSystemIdin interfaceXMLResourceIdentifier
-
getNamespace
public String getNamespace()
Returns the namespace of the resource.- Specified by:
getNamespacein interfaceXMLResourceIdentifier
-
hashCode
public int hashCode()
Returns a hash code for this object.
-
-