|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.xml.esax.spi.DefaultElementContext
public class DefaultElementContext
A default XML context implementation. This provides access to methods that change the context and should only be used by ExtensibleSAXHandler.
| Constructor Summary | |
|---|---|
DefaultElementContext() |
|
| Method Summary | |
|---|---|
java.util.Iterator |
getAttributeNames()Iterates over the collection of attribute names for the element in context. |
java.lang.String |
getAttributeValue(java.lang.String attributeName)Get the value of an attribute for this element. |
java.lang.String |
getLocalName()Get the local name of the current element. |
XMLLocator |
getLocator()Get the locator for the EDD 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.String |
getPath()Get the path to the current element. |
ElementHandler |
getScopedHandler()Get a scoped handler for the current element (if any) |
java.lang.String |
getText()Get the text contained in this element. |
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultElementContext()
| Method Detail |
|---|
public java.lang.String getLocalName()
getLocalName in interface ElementContextpublic java.lang.String getNamespaceURI()
getNamespaceURI in interface ElementContextpublic java.lang.String getPath()
public java.lang.String getParentLocalName()
getParentLocalName in interface ElementContextpublic java.lang.String getText()
getText in interface ElementEndContextpublic java.lang.String getAttributeValue(java.lang.String attributeName)
getAttributeValue in interface ElementStartContextattributeName - the local name of an XML attribute, must not be null.public java.util.Iterator getAttributeNames()
getAttributeNames in interface ElementStartContextpublic java.lang.Object getValue(Key key)
getValue in interface ElementContextkey - a key for the stored value
public void putValue(Key key,
java.lang.Object value)
putValue in interface ElementContextkey - a key for the value.value - the value to store, can be null.public void removeValue(Key key)
removeValue in interface ElementContext
public void registerChildHandler(java.lang.String namespaceURI,
java.lang.String localName,
ElementHandler handler)
registerChildHandler in interface ElementContextnamespaceURI -localName -handler -
public void registerScopeHandler(java.lang.String localElementName,
ElementHandler handler)
ElementContextregisterScopeHandler in interface ElementContextlocalElementName - the name of the element to handlehandler - the handler to use
public void registerScopeHandler(java.lang.String namespaceURI,
java.lang.String localElementName,
ElementHandler handler)
ElementContextregisterScopeHandler in interface ElementContextnamespaceURI - the namespace URI of the element to handlelocalElementName - the name of the element to handlehandler - the handler to usepublic void registerScopeHandlerFactory(ElementHandlerFactory factory)
ElementContextregisterScopeHandlerFactory in interface ElementContextfactory - the factory to registerpublic ElementHandler getScopedHandler()
public XMLLocator getLocator()
getLocator in interface ElementContextpublic MessageReporter getMessageReporter()
ElementContextgetMessageReporter in interface ElementContextpublic void setMessageReporter(MessageReporter reporter)
setMessageReporter in interface ElementContext
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||