public interface Attribute
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue()
The default value of a non-static attribute.
|
String |
getDescription() |
String |
getDisplayLabel() |
String |
getName()
The attribute name.
|
Map<String,Qualifier> |
getQualifiers()
The qualifiers defined for the attribute.
|
Object |
getResolvedDefaultValue() |
Integer |
getSize() |
Type |
getType()
The attribute data type.
|
TypeInfo |
getTypeInfo()
Additional type information for specific attribute types.
|
Object |
getValue()
The value of a static attribute.
|
boolean |
hasQualifier(String qualifierName) |
boolean |
isFactory() |
boolean |
isModifiedByUser() |
boolean |
isStatic()
Checks whether the the attribute is "static".
|
String getName()
Type getType()
boolean isFactory()
true if this attribute is created by the production,
otherwise falseboolean isModifiedByUser()
true if this attribute is modified by user,
otherwise falseTypeInfo getTypeInfo()
Example:
Attribute enumAttr = typeObjectDefinition.getAttribute(AttributesUtils.PROPERTY_ENUM);
EnumInfo enumInfo = (EnumInfo)enumAttr.getTypeInfo();
String enumName = enumInfo.getEnumName();
Object getValue() throws AttributeNotStaticException
AttributeNotStaticException - if the attribute is not staticObject getDefaultValue() throws AttributeStaticException
AttributeStaticException - if the attribute is staticObject getResolvedDefaultValue()
String getDisplayLabel()
String getDescription()
Integer getSize()
Map<String,Qualifier> getQualifiers()
boolean hasQualifier(String qualifierName)
boolean isStatic()
true if the attribute is "static" Documentation Feedback
Copyright 2011 - 2023 Micro Focus or one of its affiliates.