| java.lang.Object org.xml.sax.helpers.DefaultHandler pnuts.xml.DigestHandler
All known Subclasses: pnuts.xml.DigestReader,
DigestHandler | public class DigestHandler extends DefaultHandler (Code) | | DigestHandler provides a base implementation for DigestReader class.
|
Method Summary | |
public void | addRule(DigestAction action, String path) Adds a rule.
Parameters: action - the action to be invoked at the begining/end of the element. Parameters: path - the path identifier. | public void | addRule(DigestAction action, String path, String keyword) Adds a rule.
Parameters: action - the action to be invoked at the begining/end of the element. Parameters: path - the path identifier. | public void | characters(char ch, int start, int length) | public Object | currentListValue() Returns the most recent managed list. | public void | endElement(String uri, String localName, String qName) | String | getKey(String path) | String | getStackTopPath() | Object | getStackTopValue() | public Object | getValue() | void | initialize() | public boolean | isUseLocalNames() Checks if the current setting uses local names instead of qualified names;
true if the current setting uses local names instead of qualified names. | public boolean | listAlive(String path) Checks if the list registered with path is still managed by the DigestReader. | Object | popValue() | void | pushValue(String path, Object value) | public synchronized void | registerListPath(String path, Object list) Registers list for the specified path. | static boolean | sameBranch(String longer, String shorter) | void | setRuleSet(RuleSet ruleSet) | public void | setUseLocalNames(boolean useLocalNames) Changes the setting of which of {qualified | local} names are used in
callback handlers. | public void | setValue(Object value) Sets the initial value, which is to be modified during the parsing. | public void | startDocument() | public void | startElement(String uri, String localName, String qName, Attributes attributes) |
DigestHandler | public DigestHandler()(Code) | | Constructor
|
addRule | public void addRule(DigestAction action, String path)(Code) | | Adds a rule.
Parameters: action - the action to be invoked at the begining/end of the element. Parameters: path - the path identifier. as a '/'-separated QName list. |
addRule | public void addRule(DigestAction action, String path, String keyword)(Code) | | Adds a rule.
Parameters: action - the action to be invoked at the begining/end of the element. Parameters: path - the path identifier. as a '/'-separated QName list. Parameters: keyword - the key to access the intermediate/final result. |
currentListValue | public Object currentListValue()(Code) | | Returns the most recent managed list.
the list object |
initialize | void initialize()(Code) | | |
isUseLocalNames | public boolean isUseLocalNames()(Code) | | Checks if the current setting uses local names instead of qualified names;
true if the current setting uses local names instead of qualified names. |
listAlive | public boolean listAlive(String path)(Code) | | Checks if the list registered with path is still managed by the DigestReader.
Parameters: path - the path true if it is still managed by the DigestReader. |
registerListPath | public synchronized void registerListPath(String path, Object list)(Code) | | Registers list for the specified path.
The registered list is unregistered when different branch from the one
the list is registered with, or an element of parent path is found by the parser.
|
setUseLocalNames | public void setUseLocalNames(boolean useLocalNames)(Code) | | Changes the setting of which of {qualified | local} names are used in
callback handlers. When localName is used, the SAX parser should be
namespace aware.
Parameters: useLocalNames - use local names instead of quarified names. If this method is called with true, a Map object that is passed toDigestAction.start() method will contain {localName->value} mappings. |
setValue | public void setValue(Object value)(Code) | | Sets the initial value, which is to be modified during the parsing.
Parameters: value - the intial value |
Methods inherited from org.xml.sax.helpers.DefaultHandler | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|