|
Hilbert II - Version 0.03.09 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.qedeq.kernel.xml.parser.SimpleHandler
org.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();
| 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 |
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 org.qedeq.kernel.xml.parser.SimpleHandler |
getEncoding, getLocator, setDocumentLocator |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
| 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
SAXException
public void startDocument()
throws SAXException
SAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
SAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
SAXException
public void endPrefixMapping(String prefix)
throws SAXException
SAXException
public void skippedEntity(String name)
throws SAXException
SAXException
public void processingInstruction(String target,
String data)
throws SAXException
SAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
SAXException
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
SAXException
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
SAXExceptionpublic SimpleXPath getFind()
|
Hilbert II - Version 0.03.09 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |