ILOG JRules

ilog.rules.ras.core.binding.impl
Class IlrAbstractObjectImpl

java.lang.Object
  extended by ilog.rules.ras.core.binding.impl.IlrAbstractObjectImpl
All Implemented Interfaces:
IlrAbstractObject, Serializable

public class IlrAbstractObjectImpl
extends Object
implements IlrAbstractObject, Serializable

An implementation of the IlrAbstractObject interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ilog.rules.ras.core.binding.IlrAbstractObject
DEFAULT_TYPE
 
Constructor Summary
IlrAbstractObjectImpl()
          Default constructor.
IlrAbstractObjectImpl(com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
          A constructor.
IlrAbstractObjectImpl(String xmlValue)
          A constructor.
 
Method Summary
 String getClassName()
          Gets the name of the class.
 IlrAbstractField[] getFields()
          Gets an array of IlrAbstractField classes.
 Properties getProperties()
          Gets the properties.
 void setClassName(String className)
          Sets the name of the class.
 void setFields(IlrAbstractField[] fields)
          Sets the fields of the IlrXMLobject class.
 void setProperties(Properties properties)
          Sets the properties.
static String toString(IlrAbstractObject object, String indent, boolean withType)
          Transforms an IlrAbstractObject instance into an XML string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrAbstractObjectImpl

public IlrAbstractObjectImpl()
Default constructor.


IlrAbstractObjectImpl

public IlrAbstractObjectImpl(String xmlValue)
A constructor.

Parameters:
xmlValue - The XML XStream representation of the tested object.

IlrAbstractObjectImpl

public IlrAbstractObjectImpl(com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
A constructor. To instantiate a HierarchicalStreamReader, use the XStream library. Use a predefined Reader as XppReader or define another:

HierarchicalStreamReader reader = new XppReader(anotherReader);

Parameters:
reader - The XStream reader, easy to instantiate and use.
Method Detail

setClassName

public void setClassName(String className)
Description copied from interface: IlrAbstractObject
Sets the name of the class.

Specified by:
setClassName in interface IlrAbstractObject
Parameters:
className - Denotes the name of the class.

getClassName

public String getClassName()
Description copied from interface: IlrAbstractObject
Gets the name of the class.

Specified by:
getClassName in interface IlrAbstractObject
Returns:
The name of the class.

getFields

public IlrAbstractField[] getFields()
Description copied from interface: IlrAbstractObject
Gets an array of IlrAbstractField classes.

Specified by:
getFields in interface IlrAbstractObject
Returns:
An array containing all fields of the object.

setFields

public void setFields(IlrAbstractField[] fields)
Description copied from interface: IlrAbstractObject
Sets the fields of the IlrXMLobject class.

Specified by:
setFields in interface IlrAbstractObject
Parameters:
fields - The fields of the IlrXMLobject class.

toString

public static String toString(IlrAbstractObject object,
                              String indent,
                              boolean withType)
Transforms an IlrAbstractObject instance into an XML string.

Parameters:
object - The IlrAbstractObject instance to be transformed.
withType - Indicates whether or not the type should be included in the generated XML.
indent - The indentation of the XML to be created. The string will be prepended to each line created.
Returns:
The resulting XML string.

getProperties

public Properties getProperties()
Gets the properties.

Returns:
The properties.

setProperties

public void setProperties(Properties properties)
Sets the properties.

Parameters:
properties - The properties to set.

ILOG JRules