|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.xml.IlrXmlObjectExplorer ilog.rules.xml.IlrXmlObjectAsserter
public class IlrXmlObjectAsserter
This class explores an XML object tree in order to
assert some selected objects in a context. It is usually
instantiated to explore an XML root object created from an XML document
by an 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
,
IlrXmlObject
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.rules.xml.IlrXmlObjectExplorer |
---|
IlrXmlObjectExplorer.IlrObjectProcessor, IlrXmlObjectExplorer.IlrObjectSelector |
Field Summary |
---|
Fields inherited from class ilog.rules.xml.IlrXmlObjectExplorer |
---|
explorer, processor, selector |
Constructor Summary | |
---|---|
IlrXmlObjectAsserter(IlrContext context)
Builds an asserter linked to a context. |
|
IlrXmlObjectAsserter(IlrContext context,
boolean collectionExplored)
Builds an asserter linked to a context. |
Method Summary | |
---|---|
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(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. |
Methods inherited from class ilog.rules.xml.IlrXmlObjectExplorer |
---|
exploreObject, getProcessor, getSelector, setProcessor, setSelector |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public void registerClass(IlrClass clazz)
IlrClass
as an asserted
and an explored class.
clazz
- The class to be asserted or explored.public void registerClass(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.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |