|
||||||||||
| 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
ilog.cpl.model.IlpObjectReferenceAttribute
public class IlpObjectReferenceAttribute
This class defines an attribute that refers to another attribute in another 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 attribute holder.
| Constructor Summary | |
|---|---|
IlpObjectReferenceAttribute(String name,
Class valueClass,
IlpAttribute referenceAttribute)
Creates a new attribute with the given name and class. |
|
IlpObjectReferenceAttribute(String name,
IlpAttribute referenceAttribute)
Creates a new attribute with the given name. |
|
| Method Summary | |
|---|---|
IlpAttributeValueHolder |
getReferenceAttributeValueHolder(IlpAttributeValueHolder h)
Returns the reference value holder for the given attribute value holder. |
Object |
getValue(IlpAttributeValueHolder h)
Returns the value of the attribute in the given holder. |
void |
setReferenceAttributeValueHolder(IlpAttributeValueHolder key,
IlpAttributeValueHolder reference)
Sets the reference attribute holder. |
| Methods inherited from class ilog.cpl.model.IlpReferenceAttribute |
|---|
getDefaultValue, getReferenceAttribute, isDependentOn, isTransient, setValueClass |
| 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 IlpObjectReferenceAttribute(String name,
IlpAttribute referenceAttribute)
name - The name of the new attribute.referenceAttribute - The attribute that is being referenced
by this one.
public IlpObjectReferenceAttribute(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.| Method Detail |
|---|
public IlpAttributeValueHolder getReferenceAttributeValueHolder(IlpAttributeValueHolder h)
h - Holder
public void setReferenceAttributeValueHolder(IlpAttributeValueHolder key,
IlpAttributeValueHolder reference)
key - Original attribute value holderreference - Reference attribute value holderpublic Object getValue(IlpAttributeValueHolder h)
getValue in interface IlpAttributeValueProvidergetValue in class IlpReferenceAttribute
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||