ilog.cpl.model
Interface IlpAttribute

All Known Implementing Classes:
IlpBeansAttribute, IlpComputedAttribute, IlpDefaultAttribute, IlpObjectReferenceAttribute, IlpReferenceAttribute, IlpStaticAttribute, IltAlarmSeverityAttribute, IltAttribute

public interface IlpAttribute

Interface for ILOG CPL attributes.

Since:
JTGO 3.0

Method Summary
 IlpAttributeGroup getAttributeGroup()
          Returns the attribute model that contains this attribute.
 Object getDefaultValue()
          Returns the default value for this attribute.
 String getName()
          Returns the name of the invoking attribute.
 Class getValueClass()
          Returns the attribute value class.
 boolean isTransient()
          Indicates whether this attribute should persist or not.
 void setAttributeGroup(IlpAttributeGroup group)
          Sets the attribute group that contains this attribute.
 

Method Detail

getName

String getName()
Returns the name of the invoking attribute.


getValueClass

Class getValueClass()
Returns the attribute value class.


getDefaultValue

Object getDefaultValue()
Returns the default value for this attribute. It is used when an attribute value holder object is initialized.

Note: When getAttributeValue does not find a value for an attribute, it returns IlpAttributeValueHolder.VALUE_NOT_SET, regardless of the attribute's "default value".

See Also:
IlpDefaultObject.initializeDefaultValues(), IlpDefaultObject.IlpDefaultObject(IlpClass, Object, boolean)

getAttributeGroup

IlpAttributeGroup getAttributeGroup()
Returns the attribute model that contains this attribute.


setAttributeGroup

void setAttributeGroup(IlpAttributeGroup group)
Sets the attribute group that contains this attribute.


isTransient

boolean isTransient()
Indicates whether this attribute should persist or not.

Returns:
true if the attribute is transient, that is NOT persistent.


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