ilog.cpl.model
Class IlpBeansAttribute

java.lang.Object
  extended by ilog.cpl.model.IlpBeansAttribute
All Implemented Interfaces:
IlpAttribute

public class IlpBeansAttribute
extends Object
implements IlpAttribute

This class models an attribute in the CPL model which represents a property in a Java Bean.

Since:
JTGO 3.0

Constructor Summary
IlpBeansAttribute(PropertyDescriptor propertyDescriptor, IlpClass ilpClass)
          Creates a new attribute to represent the given property.
 
Method Summary
 IlpAttributeGroup getAttributeGroup()
          Returns the attribute model where this attribute has been defined.
 Object getDefaultValue()
          Returns null because there is no notion of default value for IlpBeansAttribute instances.
 String getName()
          Returns the name of the invoking attribute.
 PropertyDescriptor getPropertyDescriptor()
          Returns the property descriptor with the information regarding the given class.
 Class getValueClass()
          Returns the Java class of the attribute.
 boolean isTransient()
          Indicates whether this attribute should persist or not.
 void setAttributeGroup(IlpAttributeGroup aModel)
          Bean attributes can not be changed to other attribute groups.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlpBeansAttribute

public IlpBeansAttribute(PropertyDescriptor propertyDescriptor,
                         IlpClass ilpClass)
Creates a new attribute to represent the given property.

Parameters:
propertyDescriptor - Bean property descriptor
ilpClass - Business class
Method Detail

getName

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

Specified by:
getName in interface IlpAttribute

getValueClass

public Class getValueClass()
Returns the Java class of the attribute.

Specified by:
getValueClass in interface IlpAttribute

getDefaultValue

public Object getDefaultValue()
Returns null because there is no notion of default value for IlpBeansAttribute instances.

Specified by:
getDefaultValue in interface IlpAttribute
See Also:
IlpDefaultObject.initializeDefaultValues(), IlpDefaultObject.IlpDefaultObject(IlpClass, Object, boolean)

getAttributeGroup

public IlpAttributeGroup getAttributeGroup()
Returns the attribute model where this attribute has been defined.

Specified by:
getAttributeGroup in interface IlpAttribute

setAttributeGroup

public void setAttributeGroup(IlpAttributeGroup aModel)
Bean attributes can not be changed to other attribute groups. The attribute group where it belongs is specified at construction time.

Specified by:
setAttributeGroup in interface IlpAttribute
Internal method or field: do not use!

isTransient

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

Specified by:
isTransient in interface IlpAttribute
Returns:
true if the attribute is transient, that is NOT persistent. For an IlpBeansAttribute, the attribute is transient if it has no write method.

getPropertyDescriptor

public PropertyDescriptor getPropertyDescriptor()
Returns the property descriptor with the information regarding the given class.


toString

public String toString()
Overrides:
toString in class Object


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