public class IltAttribute extends Object implements IlpAttribute
Constructor and Description |
---|
IltAttribute(String name,
Class value,
IlpAttributeGroup group)
Creates a new attribute with the given characteristics.
|
IltAttribute(String name,
Class value,
IlpAttributeGroup group,
Object defaultValue)
Creates a new attribute with the given characteristics.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compares two objects.
|
IlpAttributeGroup |
getAttributeGroup()
Returns the attribute model that contains this attribute.
|
Object |
getDefaultValue()
Returns the default value of the attribute.
|
String |
getName()
Returns the name of the attribute.
|
Class |
getValueClass()
Returns the value class of the attribute.
|
boolean |
isTransient()
Indicates whether this attribute should persist or not.
|
static IltAttribute |
New(String name,
Class value,
IlpAttributeGroup group)
Deprecated.
Please use constructor instead.
|
void |
setAttributeGroup(IlpAttributeGroup group)
Sets the attribute group that contains this attribute.
|
void |
setDefaultValue(Object defValue)
Sets the default value of the attribute.
|
String |
toString()
Converts the object into a human-readable format.
|
public IltAttribute(String name, Class value, IlpAttributeGroup group)
name
- Attribute name.value
- Attribute value type.group
- Attribute group that will contain this instance.IlpAttributeGroup
public IltAttribute(String name, Class value, IlpAttributeGroup group, Object defaultValue)
name
- Attribute name.value
- Attribute value type.group
- Attribute group that will contain this instance.defaultValue
- Default value set in the business objects.
that contain this attributeIlpAttributeGroup
,
IlpObject.initializeDefaultValues()
@Deprecated public static IltAttribute New(String name, Class value, IlpAttributeGroup group)
public Object getDefaultValue()
getDefaultValue
in interface IlpAttribute
IlpDefaultObject.initializeDefaultValues()
,
IlpDefaultObject.IlpDefaultObject(IlpClass, Object, boolean)
public void setDefaultValue(Object defValue)
public String getName()
getName
in interface IlpAttribute
public Class getValueClass()
getValueClass
in interface IlpAttribute
public IlpAttributeGroup getAttributeGroup()
getAttributeGroup
in interface IlpAttribute
public void setAttributeGroup(IlpAttributeGroup group)
setAttributeGroup
in interface IlpAttribute
public boolean isTransient()
isTransient
in interface IlpAttribute
true
if the attribute is transient, that is, NOT persistent.public boolean equals(Object other)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.