public class IlpBeansAttribute extends Object implements IlpAttribute
Constructor and Description |
---|
IlpBeansAttribute(PropertyDescriptor propertyDescriptor,
IlpClass ilpClass)
Creates a new attribute to represent the given property.
|
Modifier and Type | Method and Description |
---|---|
IlpAttributeGroup |
getAttributeGroup()
Returns the attribute model where this attribute has been
defined.
|
Object |
getDefaultValue()
Returns
null because there is no notion of default value for
IlpBeansAttribute instances. |
String |
getName()
Returns the name of the invoking attribute.
|
PropertyDescriptor |
getPropertyDescriptor()
Returns the property descriptor with the information
regarding the given class.
|
Class |
getValueClass()
Returns the Java class of the attribute.
|
boolean |
isTransient()
Indicates whether this attribute should persist or not.
|
void |
setAttributeGroup(IlpAttributeGroup aModel)
Bean attributes can not be changed to other attribute groups.
|
String |
toString()
Converts the object into a human-readable format.
|
public IlpBeansAttribute(PropertyDescriptor propertyDescriptor, IlpClass ilpClass)
propertyDescriptor
- Bean property descriptorilpClass
- Business classpublic String getName()
getName
in interface IlpAttribute
public Class getValueClass()
getValueClass
in interface IlpAttribute
public Object getDefaultValue()
null
because there is no notion of default value for
IlpBeansAttribute
instances.getDefaultValue
in interface IlpAttribute
IlpDefaultObject.initializeDefaultValues()
,
IlpDefaultObject.IlpDefaultObject(IlpClass, Object, boolean)
public IlpAttributeGroup getAttributeGroup()
getAttributeGroup
in interface IlpAttribute
public void setAttributeGroup(IlpAttributeGroup aModel)
setAttributeGroup
in interface IlpAttribute
public boolean isTransient()
isTransient
in interface IlpAttribute
true
if the attribute is transient, that is NOT persistent.
For an IlpBeansAttribute
, the attribute is transient if it
has no write method.public PropertyDescriptor getPropertyDescriptor()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.