public class IlrXmlHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IlrXmlHelper.Config
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_DIRECTORIES
Deprecated.
|
static java.lang.String |
XML_DOC_PARSER_CLASS
Resource name used to define the document parser class, which has to be
an implementation of
org.xml.sax.XMLReader. |
static java.lang.String |
XML_DOC_PARSER_OBJECT
Deprecated.
|
static java.lang.String |
XML_ERROR_HANDLER_CLASS
Resource name used to define the error handler class, which has to be an
implementation of
ilog.rules.xml.util.IlrXmlErrorHandler. |
static java.lang.String |
XML_ERROR_HANDLER_OBJECT
Deprecated.
|
static java.lang.String |
XML_EXTERNAL_ENTITIES
Resource name used to activate/deactivate the use of external entities mode.
|
static java.lang.String |
XML_NS_EVALUATION
Resource name used to define the namespace evaluation mode.
|
static java.lang.String |
XML_SCHEMA_PARSER_CLASS
Resource name used to define the schema parser class, which has to be an
implementation of
org.xml.sax.XMLReader. |
static java.lang.String |
XML_SCHEMA_PARSER_OBJECT
Deprecated.
|
static java.lang.String |
XML_SCHEMA_RESOLVER_CLASS
Resource name used to define the schema file resolver class, which is an
implementation of
ilog.rules.xml.util.IlrXsdLocationResolver). |
static java.lang.String |
XML_STRICT_IMPORT_MODE
Resource name used to activate/deactivate the strict importation mode.
|
static java.lang.String |
XML_STRING_FULL_ENCODING
Resource name used to activate/deactivate the strict importation mode.
|
static java.lang.String |
XML_XOM_MAPPER
Deprecated.
|
static java.lang.String |
XML_XOM_MAPPER_CLASS
Resource name used to define the XML-XOM mapper class, which has to be an
implementation of
ilog.rules.xml.util.IlrXmlXomMapper. |
| Constructor and Description |
|---|
IlrXmlHelper() |
| Modifier and Type | Method and Description |
|---|---|
static IlrXmlObject |
assertXmlObject(IlrContext context,
java.lang.String xsdFile,
java.lang.String pckName,
java.lang.String xmlFile)
Adds the XML object defined by its XML data file and its schema model
description in a context.
|
static IlrXmlDataDriver |
createDataDriver(IlrContext context)
Creates a new data driver from a context.
|
static IlrXmlDataDriver |
createDataDriver(IlrResources resources)
Creates a new data driver given a list of parameters.
|
static IlrXmlDataDriver |
createDataDriver(IlrRuleset ruleset)
Creates a new data driver from a ruleset.
|
static IlrXmlDataDriver |
createDataDriver(IlrXmlHelper.Config config)
Deprecated.
|
static java.lang.String |
getCanonicalName(java.lang.String name)
Returns a canonical file name.
|
static IlrXmlNsResolver |
getNamespaceResolver(java.lang.String defaultPackage)
Returns a namespace resolver based on a unique default package.
|
static boolean |
mergeXoms(IlrReflect fromXom,
IlrReflect toXom,
IlrSelector selector)
Merges two dynamic XOM properties.
|
static org.xml.sax.InputSource |
openFile(java.lang.String fileName)
Open a local file as a well-initialized
InputSource
instance. |
static org.xml.sax.InputSource |
openFile(java.lang.String fileName,
IlrResources resource)
Open a local file as a well-initialized
InputSource
instance. |
public static final java.lang.String XML_SCHEMA_PARSER_OBJECT
public static final java.lang.String XML_DOC_PARSER_OBJECT
public static final java.lang.String XML_ERROR_HANDLER_OBJECT
public static final java.lang.String XML_DIRECTORIES
public static final java.lang.String XML_XOM_MAPPER
public static final java.lang.String XML_NS_EVALUATION
public static final java.lang.String XML_SCHEMA_RESOLVER_CLASS
ilog.rules.xml.util.IlrXsdLocationResolver).IlrXsdLocationResolver,
Constant Field Valuespublic static final java.lang.String XML_XOM_MAPPER_CLASS
ilog.rules.xml.util.IlrXmlXomMapper.IlrXmlXomMapper,
Constant Field Valuespublic static final java.lang.String XML_ERROR_HANDLER_CLASS
ilog.rules.xml.util.IlrXmlErrorHandler.IlrXmlErrorHandler,
Constant Field Valuespublic static final java.lang.String XML_SCHEMA_PARSER_CLASS
org.xml.sax.XMLReader.public static final java.lang.String XML_DOC_PARSER_CLASS
org.xml.sax.XMLReader.public static final java.lang.String XML_STRICT_IMPORT_MODE
public static final java.lang.String XML_STRING_FULL_ENCODING
public static final java.lang.String XML_EXTERNAL_ENTITIES
public static org.xml.sax.InputSource openFile(java.lang.String fileName)
throws java.io.FileNotFoundException
InputSource
instance.java.io.FileNotFoundExceptionpublic static org.xml.sax.InputSource openFile(java.lang.String fileName,
IlrResources resource)
throws java.io.FileNotFoundException
InputSource
instance.java.io.FileNotFoundExceptionpublic static java.lang.String getCanonicalName(java.lang.String name)
name - The URL of the file.public static IlrXmlNsResolver getNamespaceResolver(java.lang.String defaultPackage)
defaultPackage - The default package of the translated Java class.public static IlrXmlDataDriver createDataDriver(IlrRuleset ruleset) throws IlrXmlErrorException
IlrXmlErrorExceptionruleset - The ruleset from which to take a data driver.public static IlrXmlDataDriver createDataDriver(IlrContext context) throws IlrXmlErrorException
IlrXmlErrorExceptioncontext - The IlrContext from which to take a data
driver.public static IlrXmlObject assertXmlObject(IlrContext context, java.lang.String xsdFile, java.lang.String pckName, java.lang.String xmlFile) throws IlrXmlErrorException, java.io.FileNotFoundException
IlrXmlErrorException - when there are errors during the schema or the document
file parsing.java.io.FileNotFoundException - when the schema or the document file are not found.context - The context where the object is recursively added.xsdFile - The XSD file name defining the model of the object.pckName - The package where the object's class is defined.xmlFile - The XML data file that stores the XML objects.public static boolean mergeXoms(IlrReflect fromXom, IlrReflect toXom, IlrSelector selector)
fromXom - The source XOM.toXom - The final XOM.selector - The selector to be applied. Can be null.public static IlrXmlDataDriver createDataDriver(IlrResources resources) throws IlrXmlErrorException
IlrXmlErrorExceptionpublic static IlrXmlDataDriver createDataDriver(IlrXmlHelper.Config config) throws IlrXmlErrorException
IlrXmlErrorException© Copyright IBM Corp. 1987, 2017