org.xmldb.xupdate.lexus
Class XUpdateQueryParser
java.lang.Object
|
+--org.xmldb.xupdate.lexus.XUpdateQueryParser
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- public class XUpdateQueryParser
- extends java.lang.Object
- implements org.xml.sax.ContentHandler
This class parses the query-String by a SAXParser. The SAXEvents are
converted to a list of Integers.
- Version:
- $Revision: 1.2 $ $Date: 2002/01/30 16:43:49 $
- Author:
- SMB, Timothy M. Dean
Method Summary |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
java.util.Vector[] |
getCachedQuery()
Returns the cached query String as a representation of three Vectors. |
java.util.HashMap |
getNamespaceMappings()
Returns a Map of all namespace prefixes and their proper
namespace URIs. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
If a new namespace mapping will be found we save these information
for further processing. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XUpdateQueryParser
public XUpdateQueryParser(CommandConstants constants)
- Parameters:
constants
- the Object containing the Integer representation.
startDocument
public void startDocument()
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
endDocument
public void endDocument()
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
- If a new namespace mapping will be found we save these information
for further processing.
- Specified by:
startPrefixMapping
in interface org.xml.sax.ContentHandler
- Parameters:
prefix
- urí
-
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
- Specified by:
endPrefixMapping
in interface org.xml.sax.ContentHandler
- Parameters:
prefix
- The namespace prefix to be ended.
characters
public void characters(char[] ch,
int start,
int length)
- Specified by:
characters
in interface org.xml.sax.ContentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
- Specified by:
ignorableWhitespace
in interface org.xml.sax.ContentHandler
processingInstruction
public void processingInstruction(java.lang.String target,
java.lang.String data)
- Specified by:
processingInstruction
in interface org.xml.sax.ContentHandler
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
skippedEntity
public void skippedEntity(java.lang.String name)
- Specified by:
skippedEntity
in interface org.xml.sax.ContentHandler
getCachedQuery
public java.util.Vector[] getCachedQuery()
- Returns the cached query String as a representation of three Vectors.
- Returns:
- The cached query String.
getNamespaceMappings
public java.util.HashMap getNamespaceMappings()
- Returns a Map of all namespace prefixes and their proper
namespace URIs.
- Returns:
- All saved namespace mappings.
- Since:
- XML:DB Lexus 0.3
Copyright (c) 2001 The XML:DB Initiative All rights reserved