Class XMLLocatorWrapper
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.XMLLocatorWrapper
-
- All Implemented Interfaces:
XMLLocator
public final class XMLLocatorWrapper extends Object implements XMLLocator
A light wrapper around an
XMLLocator.- Version:
- $Id$
- Author:
- Michael Glavassevich, IBM
-
-
Constructor Summary
Constructors Constructor Description XMLLocatorWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseSystemId()Returns the base system identifier.intgetCharacterOffset()Returns the character offset, or-1if no character offset is available.intgetColumnNumber()Returns the column number, or-1if no column number is available.StringgetEncoding()Returns the encoding of the current entity.StringgetExpandedSystemId()Returns the expanded system identifier.intgetLineNumber()Returns the line number, or-1if no line number is available.StringgetLiteralSystemId()Returns the literal system identifier.XMLLocatorgetLocator()StringgetPublicId()Returns the public identifier.StringgetXMLVersion()Returns the XML version of the current entity.voidsetLocator(XMLLocator locator)
-
-
-
Method Detail
-
setLocator
public void setLocator(XMLLocator locator)
-
getLocator
public XMLLocator getLocator()
-
getPublicId
public String getPublicId()
Description copied from interface:XMLLocatorReturns the public identifier.- Specified by:
getPublicIdin interfaceXMLLocator
-
getLiteralSystemId
public String getLiteralSystemId()
Description copied from interface:XMLLocatorReturns the literal system identifier.- Specified by:
getLiteralSystemIdin interfaceXMLLocator
-
getBaseSystemId
public String getBaseSystemId()
Description copied from interface:XMLLocatorReturns the base system identifier.- Specified by:
getBaseSystemIdin interfaceXMLLocator
-
getExpandedSystemId
public String getExpandedSystemId()
Description copied from interface:XMLLocatorReturns the expanded system identifier.- Specified by:
getExpandedSystemIdin interfaceXMLLocator
-
getLineNumber
public int getLineNumber()
Description copied from interface:XMLLocatorReturns the line number, or-1if no line number is available.- Specified by:
getLineNumberin interfaceXMLLocator
-
getColumnNumber
public int getColumnNumber()
Description copied from interface:XMLLocatorReturns the column number, or-1if no column number is available.- Specified by:
getColumnNumberin interfaceXMLLocator
-
getCharacterOffset
public int getCharacterOffset()
Description copied from interface:XMLLocatorReturns the character offset, or-1if no character offset is available.- Specified by:
getCharacterOffsetin interfaceXMLLocator
-
getEncoding
public String getEncoding()
Description copied from interface:XMLLocatorReturns the encoding of the current entity. Note that, for a given entity, this value can only be considered final once the encoding declaration has been read (or once it has been determined that there is no such declaration) since, no encoding having been specified on the XMLInputSource, the parser will make an initial "guess" which could be in error.- Specified by:
getEncodingin interfaceXMLLocator
-
getXMLVersion
public String getXMLVersion()
Description copied from interface:XMLLocatorReturns the XML version of the current entity. This will normally be the value from the XML or text declaration or defaulted by the parser. Note that that this value may be different than the version of the processing rules applied to the current entity. For instance, an XML 1.1 document may refer to XML 1.0 entities. In such a case the rules of XML 1.1 are applied to the entire document. Also note that, for a given entity, this value can only be considered final once the XML or text declaration has been read or once it has been determined that there is no such declaration.- Specified by:
getXMLVersionin interfaceXMLLocator
-
-