org.jbind.xml.base
Class ResourceIdentifier

java.lang.Object
  extended byorg.jbind.xml.base.ResourceIdentifier
All Implemented Interfaces:
IResourceIdentifier
Direct Known Subclasses:
Location

public class ResourceIdentifier
extends java.lang.Object
implements IResourceIdentifier


Constructor Summary
ResourceIdentifier(java.net.URL anExpandedSystemId, java.lang.String aPublicId)
           
ResourceIdentifier(java.net.URL aBaseSystemId, java.lang.String aLiteralSystemId, java.lang.String aPublicId)
           
 
Method Summary
 java.net.URL getBaseSystemId()
          Gets the base system id.
 java.net.URL getExpandedSystemId()
          Returns an absolute url that is used to access the XML resource.
 java.lang.String getLiteralSystemId()
          Gets the literal system id.
 java.lang.String getPublicId()
          Gets the public id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceIdentifier

public ResourceIdentifier(java.net.URL aBaseSystemId,
                          java.lang.String aLiteralSystemId,
                          java.lang.String aPublicId)
                   throws java.net.MalformedURLException

ResourceIdentifier

public ResourceIdentifier(java.net.URL anExpandedSystemId,
                          java.lang.String aPublicId)
Method Detail

getBaseSystemId

public java.net.URL getBaseSystemId()
Description copied from interface: IResourceIdentifier
Gets the base system id. The base system id must be an absolute url.

Specified by:
getBaseSystemId in interface IResourceIdentifier
Returns:
(optional). An absolute URL.

getExpandedSystemId

public java.net.URL getExpandedSystemId()
Description copied from interface: IResourceIdentifier
Returns an absolute url that is used to access the XML resource. The returned URL is the result of resolving the literal system id relative to the base system id. If no base system id is present then the literal system id must be an absolute url.

Specified by:
getExpandedSystemId in interface IResourceIdentifier
Returns:
(optional). An absolute URL.

getLiteralSystemId

public java.lang.String getLiteralSystemId()
Description copied from interface: IResourceIdentifier
Gets the literal system id. The literal system id may either be an absolute or a relative url.

Specified by:
getLiteralSystemId in interface IResourceIdentifier
Returns:
(optional). The string representation of an absolute or a relative URL.

getPublicId

public java.lang.String getPublicId()
Description copied from interface: IResourceIdentifier
Gets the public id.

Specified by:
getPublicId in interface IResourceIdentifier
Returns:
(optional).

toString

public java.lang.String toString()