Package ilog.rules.xml
Class IlrXmlObject
java.lang.Object
ilog.rules.xml.IlrXmlObject
- All Implemented Interfaces:
ilog.rules.factory.IlrBindingObject,Serializable,Cloneable
public class IlrXmlObject
extends Object
implements Cloneable, Serializable, ilog.rules.factory.IlrBindingObject
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.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this XML object.booleanCompares this XML object against the specified object.getAbsoluteXPath(boolean withPosition) getRelativeXPath(boolean withPosition) Gets the XOM class of the XML object.getXOMClass(IlrObjectModel model) Gets the XOM class of the XML object.Gets the fully qualified name of the XOM class.inthashCode()Returns the hashcode of the XML Object.Prints the class name and the field values of this XML object to a string.voidsetAsRootElement(String elementName, String namespace, String schemaLocation) Set the root element information when the object is saved as an XML document.toString()
-
Field Details
-
UNKNOWN_POSITIVE_VALUE
public static final int UNKNOWN_POSITIVE_VALUE- See Also:
-
NIL_VALUE
-
-
Method Details
-
equals
Compares this XML object against the specified object. Returns true if the objects are the same. Two XML objects are the same if they belong to the sameIlrClassand their field values are the same. -
hashCode
public int hashCode()Returns the hashcode of the XML Object. -
clone
Returns a clone of this XML object. -
setAsRootElement
Set the root element information when the object is saved as an XML document.- Parameters:
elementName- The root element name.namespace- The element namespace. The null value represents the default namespace.schemaLocation- The schema location. It could be null.
-
getRelativeXPath
-
getAbsoluteXPath
-
getXOMClass
Gets the XOM class of the XML object.- Specified by:
getXOMClassin interfaceilog.rules.factory.IlrBindingObject- Returns:
- A XOM class.
-
getXOMClass
Gets the XOM class of the XML object.- Specified by:
getXOMClassin interfaceilog.rules.factory.IlrBindingObject- Returns:
- A XOM class.
-
getXOMClassName
Gets the fully qualified name of the XOM class.- Specified by:
getXOMClassNamein interfaceilog.rules.factory.IlrBindingObject- Returns:
- The fully qualified name of the XOM class.
-
toString
-
printToString
Prints the class name and the field values of this XML object to a string.- Returns:
- A string which shows the object's content.
-