org.jbind.xml.base
Class ResourceLocation

java.lang.Object
  extended byorg.jbind.xml.base.ResourceLocation
All Implemented Interfaces:
IHasLocation, ILocation, IResourceIdentifier

public class ResourceLocation
extends java.lang.Object
implements ILocation


Constructor Summary
ResourceLocation(IResourceIdentifier anIdentifier, int aRowNumber, int aColumnNumber)
           
 
Method Summary
 java.net.URL getBaseSystemId()
          Gets the base system id.
 int getColumnNumber()
           
 java.net.URL getExpandedSystemId()
          Returns an absolute url that is used to access the XML resource.
 int getLineNumber()
           
 java.lang.String getLiteralSystemId()
          Gets the literal system id.
 ILocation getLocation()
           
 java.lang.String getPublicId()
          Gets the public id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLocation

public ResourceLocation(IResourceIdentifier anIdentifier,
                        int aRowNumber,
                        int aColumnNumber)
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).

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface ILocation

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface ILocation

getLocation

public ILocation getLocation()
Specified by:
getLocation in interface IHasLocation