public interface ElementContext
ElementStartContext, 
ElementEndContext| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getLocalName()
Get the local name of the current element. 
 | 
XMLLocator | 
getLocator()
Get the locator for the XML file being parsed. 
 | 
MessageReporter | 
getMessageReporter()
Get the message reporter. 
 | 
java.lang.String | 
getNamespaceURI()
Get the namespace URI of the current element. 
 | 
java.lang.String | 
getParentLocalName()
Get the local name of the parent element, if any. 
 | 
java.lang.Object | 
getValue(Key key)
Get a value stored in this context. 
 | 
void | 
putValue(Key key,
        java.lang.Object value)
Store a value in this context. 
 | 
void | 
registerChildHandler(java.lang.String namespaceURI,
                    java.lang.String localName,
                    ElementHandler handler)
Register a handler that will be used only for immediate children of the
 current element. 
 | 
void | 
registerScopeHandler(java.lang.String localElementName,
                    ElementHandler handler)
Register a handler that will bs used within the scope of the current 
 element and all its descendants. 
 | 
void | 
registerScopeHandler(java.lang.String namespaceURI,
                    java.lang.String localElementName,
                    ElementHandler handler)
Register a handler that will bs used within the scope of the current 
 element and all its descendants. 
 | 
void | 
registerScopeHandlerFactory(ElementHandlerFactory factory)
Register a factory that can dynamically retrieve element handlers 
 for XML elements in the current scope. 
 | 
void | 
removeValue(Key key)
Clear a value from this context. 
 | 
void | 
setMessageReporter(MessageReporter reporter)  | 
void registerChildHandler(java.lang.String namespaceURI,
                          java.lang.String localName,
                          ElementHandler handler)
namespaceURI - localName - handler - void registerScopeHandler(java.lang.String localElementName,
                          ElementHandler handler)
localElementName - the name of the element to handlehandler - the handler to usevoid registerScopeHandler(java.lang.String namespaceURI,
                          java.lang.String localElementName,
                          ElementHandler handler)
namespaceURI - the namespace URI of the element to handlelocalElementName - the name of the element to handlehandler - the handler to usevoid registerScopeHandlerFactory(ElementHandlerFactory factory)
factory - the factory to registerjava.lang.String getLocalName()
java.lang.String getNamespaceURI()
java.lang.String getParentLocalName()
java.lang.Object getValue(Key key)
key - a key for the stored valuevoid putValue(Key key, java.lang.Object value)
key - a key for the value.value - the value to store, can be null.void removeValue(Key key)
XMLLocator getLocator()
MessageReporter getMessageReporter()
void setMessageReporter(MessageReporter reporter)