|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.xml.esax.XMLLocator
public abstract class XMLLocator
Object representing the location of an XML file being processed by the Extensible SAX parser.
Constructor Summary | |
---|---|
XMLLocator(java.net.URI xmlURI) Create an XML locator. |
Method Summary | |
---|---|
abstract org.xml.sax.InputSource |
createInputSource() Create a SAX input source for this locator. |
int |
getColumnNumber() Return the column number where the current document event ends. |
int |
getLineNumber() Return the line number where the current document event ends. |
java.lang.String |
getName() Get a human readable name for this locator. |
java.net.URI |
getURI() Get the URI of the XML being processed. |
void |
setColumnNumber(int column) |
void |
setLineNumber(int line) |
java.lang.String |
toString() Get a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLLocator(java.net.URI xmlURI)
xmlURI
- a URI representing the location of the XML file.Method Detail |
---|
public final java.net.URI getURI()
public abstract org.xml.sax.InputSource createInputSource() throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public int getLineNumber()
Warning: The return value from the method is intended only as an approximation for the sake of error reporting; it is not intended to provide sufficient information to edit the character content of the original XML document.
The return value is an approximation of the line number in the document entity or external parsed entity where the markup triggering the event appears.
If possible, the SAX driver should provide the line position of the first character after the text associated with the document event. The first line in the document is line 1.
getColumnNumber()
public int getColumnNumber()
Warning: The return value from the method is intended only as an approximation for the sake of error reporting; it is not intended to provide sufficient information to edit the character content of the original XML document.
The return value is an approximation of the column number in the document entity or external parsed entity where the markup triggering the event appears.
If possible, the SAX driver should provide the line position of the first character after the text associated with the document event.
If possible, the SAX driver should provide the line position of the first character after the text associated with the document event. The first column in each line is column 1.
getLineNumber()
public void setLineNumber(int line)
public void setColumnNumber(int column)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |