public class IlpObjectReferenceAttribute extends IlpReferenceAttribute
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDefaultValue, getReferenceAttribute, isDependentOn, isTransient, setValueClass
getAttributeGroup, getName, getValueClass, setAttributeGroup, setDefaultValue, setName, setTransient, toString
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.public IlpAttributeValueHolder getReferenceAttributeValueHolder(IlpAttributeValueHolder h)
h
- Holderpublic void setReferenceAttributeValueHolder(IlpAttributeValueHolder key, IlpAttributeValueHolder reference)
key
- Original attribute value holderreference
- Reference attribute value holderpublic Object getValue(IlpAttributeValueHolder h)
getValue
in interface IlpAttributeValueProvider
getValue
in class IlpReferenceAttribute
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.