Package org.apache.xerces.impl.xs.util
Class SimpleLocator
java.lang.Object
org.apache.xerces.impl.xs.util.SimpleLocator
- All Implemented Interfaces:
org.apache.xerces.xni.XMLLocator
An XMLLocator implementation used for schema error reporting.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: SimpleLocator.java 660072 2008-05-26 02:05:15Z mrglavas $
- Author:
- Sandy Gao, IBM
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleLocator
(String lsid, String esid, int line, int column) SimpleLocator
(String lsid, String esid, int line, int column, int offset) -
Method Summary
Modifier and TypeMethodDescriptionReturns the base system identifier.int
Returns the character offset, or-1
if no character offset is available.int
Returns the column number, or-1
if no column number is available.Returns the encoding of the current entity.Returns the expanded system identifier.int
Returns the line number, or-1
if no line number is available.Returns the literal system identifier.Returns the public identifier.Returns the XML version of the current entity.void
setBaseSystemId
(String systemId) void
setCharacterOffset
(int offset) void
setColumnNumber
(int col) void
setExpandedSystemId
(String systemId) void
setLineNumber
(int line) void
setLiteralSystemId
(String systemId) void
setPublicId
(String publicId) void
void
-
Constructor Details
-
SimpleLocator
public SimpleLocator() -
SimpleLocator
-
SimpleLocator
-
-
Method Details
-
setValues
-
setValues
-
getLineNumber
public int getLineNumber()Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the line number, or-1
if no line number is available.- Specified by:
getLineNumber
in interfaceorg.apache.xerces.xni.XMLLocator
-
getColumnNumber
public int getColumnNumber()Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the column number, or-1
if no column number is available.- Specified by:
getColumnNumber
in interfaceorg.apache.xerces.xni.XMLLocator
-
getCharacterOffset
public int getCharacterOffset()Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the character offset, or-1
if no character offset is available.- Specified by:
getCharacterOffset
in interfaceorg.apache.xerces.xni.XMLLocator
-
getPublicId
Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the public identifier.- Specified by:
getPublicId
in interfaceorg.apache.xerces.xni.XMLLocator
-
getExpandedSystemId
Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the expanded system identifier.- Specified by:
getExpandedSystemId
in interfaceorg.apache.xerces.xni.XMLLocator
-
getLiteralSystemId
Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the literal system identifier.- Specified by:
getLiteralSystemId
in interfaceorg.apache.xerces.xni.XMLLocator
-
getBaseSystemId
Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns the base system identifier.- Specified by:
getBaseSystemId
in interfaceorg.apache.xerces.xni.XMLLocator
-
setColumnNumber
public void setColumnNumber(int col) -
setLineNumber
public void setLineNumber(int line) -
setCharacterOffset
public void setCharacterOffset(int offset) -
setBaseSystemId
- See Also:
-
setExpandedSystemId
- See Also:
-
setLiteralSystemId
- See Also:
-
setPublicId
- See Also:
-
getEncoding
Returns the encoding of the current entity. Since these locators are used in the construction of XMLParseExceptions, which know nothing about encodings, there is no point in having this object deal intelligently with encoding information.- Specified by:
getEncoding
in interfaceorg.apache.xerces.xni.XMLLocator
-
getXMLVersion
Description copied from interface:org.apache.xerces.xni.XMLLocator
Returns 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:
getXMLVersion
in interfaceorg.apache.xerces.xni.XMLLocator
-