|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElementContext
The context is used to store state information used while parsing an XML source. This interface defines the access ElementHandlers have to the context during all handle methods.
ElementStartContext
, ElementEndContext
Method Summary | |
---|---|
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) |
Method Detail |
---|
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)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |