|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.cabo.share.xml.ParseContextImpl
The base implementation of ParseContext. Clients can subclass this if they wish to change the behavior, but a more common use is simply creating a ParseContext so you can set properties.
| Constructor Summary | |
ParseContextImpl(ErrorLog log)
Creates a ParseContext that uses the provided ParserManager to get NodeParsers. |
|
| Method Summary | |
java.lang.Object |
clone()
Clones the ParseContext so that it can be used for a new set of parsing. |
ErrorLog |
getErrorLog()
Get an interface that can be used to log errors. |
ParserExtension |
getExtension(java.lang.String namespaceURI)
Returns a parser extension. |
org.xml.sax.Locator |
getLocator()
Return a SAX Locator object for identifying the document location. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Convert a string prefix to a full namespace URI. |
NodeParser |
getParser(java.lang.Class expectedType,
java.lang.String namespaceURI,
java.lang.String localName)
Returns the default node parser that shold be used for a specific element name, given the type of expected object. |
ParserManager |
getParserManager()
Returns the parser manager. |
java.lang.Object |
getProperty(java.lang.String namespace,
java.lang.Object key)
Gets a property stored on the context. |
XMLProvider |
getXMLProvider()
Get an XMLProvider. |
void |
setProperty(java.lang.String namespace,
java.lang.Object key,
java.lang.Object value)
Stores a property on the context. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParseContextImpl(ErrorLog log)
| Method Detail |
public NodeParser getParser(java.lang.Class expectedType,
java.lang.String namespaceURI,
java.lang.String localName)
getParser in interface ParseContextexpectedType - the Class of the Java object expected for this elementnamespaceURI - the namespace of the XML elementlocalName - the local name of the XML elementpublic ParserExtension getExtension(java.lang.String namespaceURI)
getExtension in interface ParseContextcurrentType - the Class of the Java object being builtnamespaceURI - the namespace of the XML element or attributepublic ParserManager getParserManager()
getParserManager in interface ParseContextpublic java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI in interface ParseContextprefix - the string prefix of the namspace, or the empty
string for the default namespacepublic ErrorLog getErrorLog()
getErrorLog in interface ParseContextpublic org.xml.sax.Locator getLocator()
getLocator in interface ParseContextpublic XMLProvider getXMLProvider()
getXMLProvider in interface ParseContext
public java.lang.Object getProperty(java.lang.String namespace,
java.lang.Object key)
getProperty in interface ParseContext
public void setProperty(java.lang.String namespace,
java.lang.Object key,
java.lang.Object value)
setProperty in interface ParseContextpublic java.lang.Object clone()
ParseContextclone in interface ParseContextclone in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||