ilog.tgo.model.attribute
Class IltAttribute

java.lang.Object
  extended by ilog.tgo.model.attribute.IltAttribute
All Implemented Interfaces:
IlpAttribute

public class IltAttribute
extends Object
implements IlpAttribute

This class models an ILOG JTGO attribute.

Since:
JTGO 3.0

Constructor Summary
IltAttribute(String name, Class value, IlpAttributeGroup group)
          Creates a new attribute with the given characteristics.
IltAttribute(String name, Class value, IlpAttributeGroup group, Object defaultValue)
          Creates a new attribute with the given characteristics.
 
Method Summary
 boolean equals(Object other)
           
 IlpAttributeGroup getAttributeGroup()
          Returns the attribute model that contains this attribute.
 Object getDefaultValue()
          Returns the default value of the attribute.
 String getName()
          Returns the name of the attribute.
 Class getValueClass()
          Returns the value class of the attribute.
 boolean isTransient()
          Indicates whether this attribute should persist or not.
static IltAttribute New(String name, Class value, IlpAttributeGroup group)
          Deprecated. Please use constructor instead.
 void setAttributeGroup(IlpAttributeGroup group)
          Sets the attribute group that contains this attribute.
 void setDefaultValue(Object defValue)
          Sets the default value of the attribute.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IltAttribute

public IltAttribute(String name,
                    Class value,
                    IlpAttributeGroup group)
Creates a new attribute with the given characteristics.

Parameters:
name - Attribute name.
value - Attribute value type.
group - Attribute group that will contain this instance.
See Also:
IlpAttributeGroup

IltAttribute

public IltAttribute(String name,
                    Class value,
                    IlpAttributeGroup group,
                    Object defaultValue)
Creates a new attribute with the given characteristics.

Parameters:
name - Attribute name.
value - Attribute value type.
group - Attribute group that will contain this instance.
defaultValue - Default value set in the business objects. that contain this attribute
See Also:
IlpAttributeGroup, IlpObject.initializeDefaultValues()
Method Detail

New

public static IltAttribute New(String name,
                               Class value,
                               IlpAttributeGroup group)
Deprecated. Please use constructor instead.

Creates a new attribute with the given properties.

Deprecated Since:
JTGO 4.0

getDefaultValue

public Object getDefaultValue()
Returns the default value of the attribute.

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

setDefaultValue

public void setDefaultValue(Object defValue)
Sets the default value of the attribute.


getName

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

Specified by:
getName in interface IlpAttribute

getValueClass

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

Specified by:
getValueClass in interface IlpAttribute

getAttributeGroup

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

Specified by:
getAttributeGroup in interface IlpAttribute

setAttributeGroup

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

Specified by:
setAttributeGroup in interface IlpAttribute

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.

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


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