org.apache.xerces.util
Class XMLResourceIdentifierImpl

java.lang.Object
  extended by 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: XMLResourceIdentifierImpl.java 447241 2006-09-18 05:12:57Z mrglavas $
Author:
Andy Clark

Field Summary
protected  String fBaseSystemId
          The base system identifier.
protected  String fExpandedSystemId
          The expanded system identifier.
protected  String fLiteralSystemId
          The literal system identifier.
protected  String fNamespace
          The namespace of the resource.
protected  String fPublicId
          The public identifier.
 
Constructor Summary
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
 void clear()
          Clears the values.
 String getBaseSystemId()
          Returns the base URI against which the literal SystemId is to be resolved.
 String getExpandedSystemId()
          Returns the expanded system identifier.
 String getLiteralSystemId()
          Returns the literal system identifier.
 String getNamespace()
          Returns the namespace of the resource.
 String getPublicId()
          Returns the public identifier.
 int hashCode()
          Returns a hash code for this object.
 void setBaseSystemId(String baseSystemId)
          Sets the base system identifier.
 void setExpandedSystemId(String expandedSystemId)
          Sets the expanded system identifier.
 void setLiteralSystemId(String literalSystemId)
          Sets the literal system identifier.
 void setNamespace(String namespace)
          Sets the namespace of the resource.
 void setPublicId(String publicId)
          Sets the public identifier.
 void setValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId)
          Sets the values of the resource identifier.
 void setValues(String publicId, String literalSystemId, String baseSystemId, String expandedSystemId, String namespace)
          Sets the values of the resource identifier.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:
setPublicId in interface XMLResourceIdentifier

setLiteralSystemId

public void setLiteralSystemId(String literalSystemId)
Sets the literal system identifier.

Specified by:
setLiteralSystemId in interface XMLResourceIdentifier

setBaseSystemId

public void setBaseSystemId(String baseSystemId)
Sets the base system identifier.

Specified by:
setBaseSystemId in interface XMLResourceIdentifier

setExpandedSystemId

public void setExpandedSystemId(String expandedSystemId)
Sets the expanded system identifier.

Specified by:
setExpandedSystemId in interface XMLResourceIdentifier

setNamespace

public void setNamespace(String namespace)
Sets the namespace of the resource.

Specified by:
setNamespace in interface XMLResourceIdentifier

getPublicId

public String getPublicId()
Returns the public identifier.

Specified by:
getPublicId in interface XMLResourceIdentifier

getLiteralSystemId

public String getLiteralSystemId()
Returns the literal system identifier.

Specified by:
getLiteralSystemId in interface XMLResourceIdentifier

getBaseSystemId

public String getBaseSystemId()
Returns the base URI against which the literal SystemId is to be resolved.

Specified by:
getBaseSystemId in interface XMLResourceIdentifier

getExpandedSystemId

public String getExpandedSystemId()
Returns the expanded system identifier.

Specified by:
getExpandedSystemId in interface XMLResourceIdentifier

getNamespace

public String getNamespace()
Returns the namespace of the resource.

Specified by:
getNamespace in interface XMLResourceIdentifier

hashCode

public int hashCode()
Returns a hash code for this object.

Overrides:
hashCode in class Object

toString

public String toString()
Returns a string representation of this object.

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.