|
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.IlrXmlObject
public class IlrXmlObject
This class is used to receive the XML data read from an XML document.
Once the XML Schema is parsed by the XML driver, the reading
of each XML element mapped to an IlrClass
creates an instance
of this class.
To create an IlrXmlObject
instance without the XML driver it is possible
to use the IlrReflect
class. The method
ilog.rules.factory.IlrReflect.getClass(String fullyQualifiedName)
can be used together with
(IlrXmlObject)IlrReflect.newInstance(IlrClass class)
to create the
IlrXmlObject
instance.
Field Summary | |
---|---|
static Object |
NIL_VALUE
|
static int |
UNKNOWN_POSITIVE_VALUE
|
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this XML object. |
boolean |
equals(Object arg)
Compares this XML object against the specified object. |
String |
getAbsoluteXPath(boolean withPosition)
|
String |
getRelativeXPath(boolean withPosition)
|
IlrClass |
getXOMClass()
Gets the XOM class of the XML object. |
IlrClass |
getXOMClass(IlrObjectModel model)
Gets the XOM class of the XML object. |
String |
getXOMClassName()
Gets the fully qualified name of the XOM class. |
int |
hashCode()
Returns the hashcode of the XML Object. |
String |
printToString()
Prints the class name and the field values of this XML object to a string. |
void |
setAsRootElement(String elementName,
String namespace,
String schemaLocation)
Set the root element information when the object is saved as an XML document. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_POSITIVE_VALUE
public static final Object NIL_VALUE
Method Detail |
---|
public boolean equals(Object arg)
IlrClass
and their field values
are the same.
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object clone()
clone
in class Object
public void setAsRootElement(String elementName, String namespace, String schemaLocation)
elementName
- The root element name.namespace
- The element namespace. The null value represents
the default namespace.schemaLocation
- The schema location. It could be null.public String getRelativeXPath(boolean withPosition)
public String getAbsoluteXPath(boolean withPosition)
public IlrClass getXOMClass()
getXOMClass
in interface ilog.rules.factory.IlrBindingObject
public IlrClass getXOMClass(IlrObjectModel model)
getXOMClass
in interface ilog.rules.factory.IlrBindingObject
public String getXOMClassName()
getXOMClassName
in interface ilog.rules.factory.IlrBindingObject
public String toString()
toString
in class Object
public String printToString()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |