ilog.cpl.model
Class IlpObjectSupport

java.lang.Object
  extended by ilog.cpl.model.IlpAttributeValueChangeSupport
      extended by ilog.cpl.model.IlpAttributeValueHolderSupport
          extended by ilog.cpl.model.IlpObjectSupport
All Implemented Interfaces:
AttributeValueListener, IlpAttributeValueHolder, IlpObject, EventListener

public class IlpObjectSupport
extends IlpAttributeValueHolderSupport
implements IlpObject

This class provides basic support to IlpObject instances for storing attributes and values.

Since:
JTGO 3.0

Field Summary
 
Fields inherited from interface ilog.cpl.model.IlpAttributeValueHolder
VALUE_NOT_SET
 
Constructor Summary
IlpObjectSupport(IlpObject source, IlpClass ilpClass, IlpAttributeGroup model, Object identifier)
          Provides support to IlpObject instances for storing the attribute model, the attribute values, and the IlpClass that is being represented.
 
Method Summary
 Object getIdentifier()
          Returns the identifier of the IlpObject.
 IlpClass getIlpClass()
          Returns the IlpClass of this object.
 void initializeDefaultValues()
          This method initializes the attribute values of the object with the default attribute values, if there are any.
 void setIlpClass(IlpClass clazz)
          Sets the IlpClass of this object.
 
Methods inherited from class ilog.cpl.model.IlpAttributeValueHolderSupport
addAttributeValueListener, attributeValueChange, getAttributeGroup, getAttributeValue, getAttributeValue, hasAttributeValue, recomputeDependentAttributes, removeAttributeValueListener, setAttributeValue, setAttributeValue
 
Methods inherited from class ilog.cpl.model.IlpAttributeValueChangeSupport
fireAttributeChange, fireEvent, getSource, hasAttributeValueNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.model.IlpAttributeValueHolder
addAttributeValueListener, fireEvent, getAttributeGroup, getAttributeValue, getAttributeValue, hasAttributeValue, removeAttributeValueListener, setAttributeValue, setAttributeValue
 

Constructor Detail

IlpObjectSupport

public IlpObjectSupport(IlpObject source,
                        IlpClass ilpClass,
                        IlpAttributeGroup model,
                        Object identifier)
Provides support to IlpObject instances for storing the attribute model, the attribute values, and the IlpClass that is being represented.

Parameters:
source - The IlpObject instance that uses this support instance.
ilpClass - The IlpClass that defines this IlpObject instance.
model - The object attribute group. It can be the business class if the business object does not contain attributes of its own, or it can be an instance of IlpExtendedAttributeGroup.
identifier - The identifier of the IlpObject instance.
Method Detail

getIdentifier

public Object getIdentifier()
Returns the identifier of the IlpObject. This identifier is an Object that can be used to identify and retrieve this IlpObject. It must be unique.

Specified by:
getIdentifier in interface IlpObject
Returns:
The identifier of the IlpObject.
See Also:
IlpTypeConverter

getIlpClass

public IlpClass getIlpClass()
Returns the IlpClass of this object.

Specified by:
getIlpClass in interface IlpObject
Returns:
The IlpClass of this object.

setIlpClass

public void setIlpClass(IlpClass clazz)
Sets the IlpClass of this object.

Parameters:
clazz - The IlpClass of this object.
Since:
JTGO 4.0
Internal method or field: do not use!

initializeDefaultValues

public void initializeDefaultValues()
This method initializes the attribute values of the object with the default attribute values, if there are any. This method does not reset an attribute value that has been set to its default value. It will change the attributes:

Specified by:
initializeDefaultValues in interface IlpObject


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.