|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.model.IlpDefaultAttribute
ilog.cpl.model.IlpReferenceAttribute
public class IlpReferenceAttribute
This class defines an attribute that refers to another attribute in the same attribute holder. It can be used to implement a type conversion, to allow different representations for the same attribute, or to refer to attributes in another holder.
| Constructor Summary | |
|---|---|
IlpReferenceAttribute(String name,
Class valueClass,
IlpAttribute referenceAttribute)
Creates a new attribute with the given name and class. |
|
IlpReferenceAttribute(String name,
IlpAttribute referenceAttribute)
Creates a new attribute with the given name. |
|
| Method Summary | |
|---|---|
Object |
getDefaultValue()
Returns the default value for this attribute. |
IlpAttribute |
getReferenceAttribute()
Returns the reference attribute. |
Object |
getValue(IlpAttributeValueHolder h)
Returns the value of the attribute in the given holder. |
boolean |
isDependentOn(IlpAttribute a)
Indicates whether this attribute depends on the given attribute to calculate its value. |
boolean |
isTransient()
Indicates whether this attribute is persistent or not. |
void |
setValueClass(Class c)
Sets the attribute value class. |
| Methods inherited from class ilog.cpl.model.IlpDefaultAttribute |
|---|
getAttributeGroup, getName, getValueClass, setAttributeGroup, setDefaultValue, setName, setTransient, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpReferenceAttribute(String name,
IlpAttribute referenceAttribute)
name - The name of the new attribute.referenceAttribute - The attribute that is being referenced
by this one.
public IlpReferenceAttribute(String name,
Class valueClass,
IlpAttribute referenceAttribute)
name - The name of the new attribute.valueClass - The attribute value class.referenceAttribute - The attribute that is being referenced
by this one.| Method Detail |
|---|
public IlpAttribute getReferenceAttribute()
public void setValueClass(Class c)
setValueClass in class IlpDefaultAttributec - Value classpublic Object getDefaultValue()
getDefaultValue in interface IlpAttributegetDefaultValue in class IlpDefaultAttributeIlpDefaultObject.initializeDefaultValues(),
IlpDefaultObject.IlpDefaultObject(IlpClass, Object, boolean)public Object getValue(IlpAttributeValueHolder h)
getValue in interface IlpAttributeValueProviderpublic boolean isDependentOn(IlpAttribute a)
isDependentOn in interface IlpAttributeValueProviderpublic boolean isTransient()
isTransient in interface IlpAttributeisTransient in class IlpDefaultAttributetrue.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||