ilog.cpl.model
Class IlpObjectSupport
java.lang.Object
ilog.cpl.model.IlpAttributeValueChangeSupport
ilog.cpl.model.IlpAttributeValueHolderSupport
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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:
- that have a default value that is not
VALUE_NOT_SET and
- that have not been set in another way (for example, using
setAttributeValue).
- Specified by:
initializeDefaultValues in interface IlpObject
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage. . All Rights Reserved.