public class IlrXmlObjectAsserter extends IlrXmlObjectExplorer
IlrXmlDataDriver.
The selection and exploration policy is defined by registering
the IlrClass of the asserted instances.
By default, there is no class registered as selected or explored.
Hence, a convenient registration is activated by the
registerAllXmlClasses() method. In this case, all the
instances of IlrXmlObject are asserted and recursively explored.IlrXmlObjectExplorer,
IlrXmlObjectIlrXmlObjectExplorer.IlrObjectProcessor, IlrXmlObjectExplorer.IlrObjectSelectorexplorer, processor, selector| Constructor and Description |
|---|
IlrXmlObjectAsserter(IlrContext context)
Builds an asserter linked to a context.
|
IlrXmlObjectAsserter(IlrContext context,
boolean collectionExplored)
Builds an asserter linked to a context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerAllXmlClasses()
Register all XML classes (
java.util.Vector and ilog.rules.factory.IlrXmlObject)
of a reflect instance. |
void |
registerAssertedClass(IlrClass clazz)
Register a class to activate the assertion of its instances.
|
void |
registerClass(IlrClass clazz)
Register an
IlrClass as an asserted
and an explored class. |
void |
registerClass(java.lang.String className)
Register a class known by its name.
|
void |
registerCollectionExploration()
Register that the collection element of an
IlrXmObject
is implicitly explored, that is, the Vector class
is a member of the explored classes set. |
void |
registerExploredClass(IlrClass clazz)
Register a class to activate the exploration of its instances.
|
void |
registerTreeExploration()
Register that all the XML tree is explored,
that is, the object class is a member of the explored classes set.
|
exploreObject, getProcessor, getSelector, setProcessor, setSelectorpublic IlrXmlObjectAsserter(IlrContext context)
context - The context where the XML objects are inserted.public IlrXmlObjectAsserter(IlrContext context, boolean collectionExplored)
context - The context where the XML objects are inserted.collectionExplored - Indicates if the collection element of
IlrXmlObject are explored, that is, whether the Vector class
belongs to the explored classes set.public void registerClass(IlrClass clazz)
IlrClass as an asserted
and an explored class.clazz - The class to be asserted or explored.public void registerClass(java.lang.String className)
throws IlrXmlErrorException
IlrXmlErrorException - if the class
does not exist in the reflect model.className - The class to be asserted or explored.public void registerAllXmlClasses()
throws IlrXmlErrorException
java.util.Vector and ilog.rules.factory.IlrXmlObject)
of a reflect instance.IlrXmlErrorException - if the default class does not exist in the
reflect model.public void registerCollectionExploration()
IlrXmObject
is implicitly explored, that is, the Vector class
is a member of the explored classes set.public void registerTreeExploration()
public void registerAssertedClass(IlrClass clazz)
clazz - The registered dynamic class.public void registerExploredClass(IlrClass clazz)
clazz - The registered dynamic class.© Copyright IBM Corp. 1987, 2017