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, toStringpublic 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 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.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.