|
Hilbert II - Version 0.03.08 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.qedeq.kernel.xml.tracker.XPathLocationParser
Parser for XML files. Search simple XPath within an XML file. Usage:
final XPathLocationParser parser = new XPathLocationParser(xpath);
parser.parse(xmlFile, original);
return parser.getFind();
This class uses features specific for Xerces.
| Constructor Summary | |
XPathLocationParser(String xpath)
Constructor. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
SimpleXPath |
getFind()
Get searched XPath. |
static SimpleXPath |
getXPathLocation(File xmlFile,
SimpleXPath xpath,
URL original)
Search simple XPath within an XML file. |
static SimpleXPath |
getXPathLocation(File xmlFile,
String xpath,
URL original)
Search simple XPath within an XML file. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
parse(File file,
URL original)
Parses XML file. |
void |
parse(String fileName,
URL original)
Parses XML file. |
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
Receive a Locator object for document events. |
void |
skippedEntity(String name)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XPathLocationParser(String xpath)
throws ParserConfigurationException,
SAXException
xpath - XML file path.
ParserConfigurationException - Severe parser configuration problem.
SAXException| Method Detail |
public static final SimpleXPath getXPathLocation(File xmlFile,
String xpath,
URL original)
throws ParserConfigurationException,
SAXException,
IOException
xmlFile - Search this file.xpath - Search for this simple XPath.original - Original file location.
ParserConfigurationException
SAXException
IOException
public static final SimpleXPath getXPathLocation(File xmlFile,
SimpleXPath xpath,
URL original)
throws ParserConfigurationException,
SAXException,
IOException
xmlFile - Search this file.xpath - Search for this simple XPath.original - Original file location.
ParserConfigurationException
SAXException
IOException
public final void parse(String fileName,
URL original)
throws SAXException,
IOException
fileName - Parse this input.original - Original file location.
SAXException - Syntactical or semantical problem occurred.
IOException - Technical problem occurred.
public final void parse(File file,
URL original)
throws SAXException,
IOException
file - Parse this input.original - Original file location.
SAXException - Syntactical or semantical problem occurred.
IOException - Technical problem occurred.
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic final void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerlocator - A locator for all SAX document events.ContentHandler.setDocumentLocator(org.xml.sax.Locator),
Locator
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic SimpleXPath getFind()
|
Hilbert II - Version 0.03.08 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |