public class IlpReferenceAttribute extends IlpDefaultAttribute implements IlpAttributeValueProvider
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getAttributeGroup, getName, getValueClass, setAttributeGroup, setDefaultValue, setName, setTransient, toString
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.public IlpAttribute getReferenceAttribute()
public void setValueClass(Class<?> c)
setValueClass
in class IlpDefaultAttribute
c
- Value classpublic Object getDefaultValue()
getDefaultValue
in interface IlpAttribute
getDefaultValue
in class IlpDefaultAttribute
IlpDefaultObject.initializeDefaultValues()
,
IlpDefaultObject.IlpDefaultObject(IlpClass, Object, boolean)
public Object getValue(IlpAttributeValueHolder h)
getValue
in interface IlpAttributeValueProvider
public boolean isDependentOn(IlpAttribute a)
isDependentOn
in interface IlpAttributeValueProvider
public boolean isTransient()
isTransient
in interface IlpAttribute
isTransient
in class IlpDefaultAttribute
true
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.