|
UIX 2.2.16 | ||||||||
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 |
DEFAULT_PROVIDER
Constant for the class name of the Default XML Provider. |
static java.lang.String |
ORACLE_PROVIDER
Constant for the class name of the Oracle XML Provider. |
Method Summary | |
static ApplicationConfiguration |
getApplicationConfiguration(ParseContext context)
Gets the ApplicationConfiguration stored on the ParseContext. |
static ExpressionParser |
getDefaultExpressionParser(ApplicationConfiguration appConfig,
ParserManager pManager)
gets the default binding parser. |
static ExpressionParser |
getDefaultExpressionParser(ParseContext context)
gets the default ExpressionParser, to use for the current file. |
static ExpressionParser |
getExpressionParser(ParseContext context)
gets the current binding parser to use from the context |
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 |
registerFunctions(ParserManager manager,
java.lang.String namespace,
java.lang.Class klass)
add the methods of a class to the list of available EL functions. |
static void |
setApplicationConfiguration(ParseContext context,
ApplicationConfiguration source)
Stores an ApplicationConfiguration on a ParseContext. |
static void |
setDefaultExpressionParser(ParseContext context,
ExpressionParser parser)
sets the default ExpressionParser to use for the current file |
static ExpressionParser |
setExpressionParser(ParseContext context,
java.lang.String expressionLanguage)
sets a new ExpressionParser. |
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 DEFAULT_PROVIDER
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 ApplicationConfiguration getApplicationConfiguration(ParseContext context)
public static void setApplicationConfiguration(ParseContext context, ApplicationConfiguration source)
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 stringpublic static void registerFunctions(ParserManager manager, java.lang.String namespace, java.lang.Class klass)
namespace
- the namespace to register the methods underklass
- only the public static methods declared on this class are
inspectedpublic static ExpressionParser setExpressionParser(ParseContext context, java.lang.String expressionLanguage)
public static ExpressionParser getExpressionParser(ParseContext context)
public static ExpressionParser getDefaultExpressionParser(ApplicationConfiguration appConfig, ParserManager pManager)
public static ExpressionParser getDefaultExpressionParser(ParseContext context)
setDefaultExpressionParser(oracle.cabo.share.xml.ParseContext, oracle.cabo.share.expl.ExpressionParser)
. If it is
not explicitly set the ExpressionParser returned by
getDefaultExpressionParser(ApplicationConfiguration, ParserManager)
is used.public static void setDefaultExpressionParser(ParseContext context, ExpressionParser parser)
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |