|
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.XMLUtils
Utility class for XML parsing.
Field Summary | |
static java.lang.String |
APACHE_PROVIDER
Constant for the class name of the Apache XML Provider. |
static java.lang.String |
ORACLE_PROVIDER
Constant for the class name of the Oracle XML Provider. |
Method Summary | |
static InputStreamProvider |
getInputStreamProvider(ParseContext context)
Gets the InputStreamProvider stored on the ParseContext. |
static java.lang.Object |
getLocalProperty(ParseContext context,
java.lang.String namespace,
java.lang.Object key)
Gets a "local" ParseContext property. |
static NameResolver |
getResolver(ParseContext context)
Gets the NameResolver stored on the ParseContext. |
static XMLProvider |
getXMLProvider(Configuration config,
ErrorLog log)
Convenience object for getting an XML provider off a Configuration object. |
static java.lang.Object |
parseInclude(ParseContext context,
java.lang.String sourceName,
java.lang.Class expectedType)
Parses an include of an XML file. |
static java.lang.String[] |
parseNameTokens(java.lang.String stringValue)
Parses a whitespace separated series of name tokens. |
static java.lang.Object |
parseSource(ParseContext context,
XMLProvider xmlProvider,
ParserManager manager,
NameResolver resolver,
java.lang.String sourceName,
java.lang.Class expectedType)
Parses an XML file. |
static void |
setInputStreamProvider(ParseContext context,
InputStreamProvider provider)
Stores a InputStreamProvider on a ParseContext. |
static void |
setLocalProperty(ParseContext context,
java.lang.String namespace,
java.lang.Object key,
java.lang.Object value)
Sets a "local" ParseContext property. |
static void |
setResolver(ParseContext context,
NameResolver source)
Stores a NameResolver on a ParseContext. |
static void |
setXMLProvider(ConfigurationImpl config,
java.lang.String providerClassName)
Convenience function for setting an XML provider on a configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ORACLE_PROVIDER
public static final java.lang.String APACHE_PROVIDER
Method Detail |
public static java.lang.Object parseSource(ParseContext context, XMLProvider xmlProvider, ParserManager manager, NameResolver resolver, java.lang.String sourceName, java.lang.Class expectedType) throws java.io.IOException, org.xml.sax.SAXException
context
- the current ParseContext, which will be clonedxmlProvider
- an XML providermanager
- a ParserManagerresolver
- a NameResolver to locate the targetsourceName
- the name of the target, relative to the current fileexpectedType
- the expected Java type of the target.public static java.lang.Object parseInclude(ParseContext context, java.lang.String sourceName, java.lang.Class expectedType) throws java.io.IOException, org.xml.sax.SAXException
context
- the current ParseContext, which will be clonedsourceName
- the name of the target, relative to the current fileexpectedType
- the expected Java type of the target.getResolver(oracle.cabo.share.xml.ParseContext)
,
setResolver(oracle.cabo.share.xml.ParseContext, oracle.cabo.share.io.NameResolver)
public static NameResolver getResolver(ParseContext context)
public static void setResolver(ParseContext context, NameResolver source)
public static InputStreamProvider getInputStreamProvider(ParseContext context)
public static void setInputStreamProvider(ParseContext context, InputStreamProvider provider)
public static void setXMLProvider(ConfigurationImpl config, java.lang.String providerClassName)
public static void setLocalProperty(ParseContext context, java.lang.String namespace, java.lang.Object key, java.lang.Object value)
getLocalProperty(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.Object)
public static java.lang.Object getLocalProperty(ParseContext context, java.lang.String namespace, java.lang.Object key)
setLocalProperty(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.Object, java.lang.Object)
public static XMLProvider getXMLProvider(Configuration config, ErrorLog log)
config
- the configuration objectlog
- an (optional) error logpublic static java.lang.String[] parseNameTokens(java.lang.String stringValue)
stringValue
- the full string
|
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 |