ILOG JRules

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

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

public class IlrAbstractFieldImpl
extends Object
implements IlrAbstractField, Serializable

Default implementation of the IlrAbstractField interface.

See Also:
Serialized Form

Constructor Summary
IlrAbstractFieldImpl()
          Default constructor.
IlrAbstractFieldImpl(String name, String type, Object value)
          A constructor that initializes a field with a name, type and value.
IlrAbstractFieldImpl(String name, String type, Object value, Properties properties)
          A constructor that initializes a field with a name, type, value and properties.
 
Method Summary
 String getName()
          Gets the name of the field.
 Properties getProperties()
          Gets the field properties.
 String getType()
          Gets the type of the field as a string.
 Object getValue()
          Gets the internal value of the field as a string.
 void setName(String name)
          Sets the name of the field.
 void setProperties(Properties properties)
          Sets the field properties.
 void setType(String type)
          Sets the type of the field.
 void setValue(Object value)
          Sets the value of the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrAbstractFieldImpl

public IlrAbstractFieldImpl()
Default constructor.


IlrAbstractFieldImpl

public IlrAbstractFieldImpl(String name,
                            String type,
                            Object value)
A constructor that initializes a field with a name, type and value.

Parameters:
name - The name of the field.
type - The type of the field as a class name.
value - The value of the attribute.

IlrAbstractFieldImpl

public IlrAbstractFieldImpl(String name,
                            String type,
                            Object value,
                            Properties properties)
A constructor that initializes a field with a name, type, value and properties.

Parameters:
name - The name of the field.
type - The type of the field as a class name.
value - The value of the attribute.
properties - The properties associated with the field; a known key is type.
Method Detail

getType

public String getType()
Description copied from interface: IlrAbstractField
Gets the type of the field as a string.

Specified by:
getType in interface IlrAbstractField
Returns:
The type of the field.

getValue

public Object getValue()
Description copied from interface: IlrAbstractField
Gets the internal value of the field as a string.

Specified by:
getValue in interface IlrAbstractField
Returns:
The internal value of the field.

setType

public void setType(String type)
Description copied from interface: IlrAbstractField
Sets the type of the field.

Specified by:
setType in interface IlrAbstractField
Parameters:
type - Denotes the type of the field.

setValue

public void setValue(Object value)
Description copied from interface: IlrAbstractField
Sets the value of the field.

Specified by:
setValue in interface IlrAbstractField
Parameters:
value - Denotes the value of the field.

getName

public String getName()
Description copied from interface: IlrAbstractField
Gets the name of the field.

Specified by:
getName in interface IlrAbstractField
Returns:
The name of the field.

setName

public void setName(String name)
Description copied from interface: IlrAbstractField
Sets the name of the field.

Specified by:
setName in interface IlrAbstractField
Parameters:
name - Denotes the name of the field.

getProperties

public Properties getProperties()
Gets the field properties.

Returns:
The field properties.

setProperties

public void setProperties(Properties properties)
Sets the field properties.

Parameters:
properties - The properties to set.

ILOG JRules