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.
|
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 |
isStatic()
Checks whether the the attribute is "static".
|
String getName()
Type getType()
TypeInfo 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 staticString 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 - 2018 Micro Focus or one of its affiliates.