public interface Attribute<T extends AttributeValue>
AttributeSets
. The attribute instance provides a description of itself
and can render attribute values as string.Modifier and Type | Method and Description |
---|---|
boolean |
alwaysHasValue()
Returns
true if the attribute must have a value. |
boolean |
appliesTo(DictionaryEntry.AttributeGroup group)
Test if this attribute type is applicable to an attribute group.
|
boolean |
canHaveValue()
Returns
true if the attribute can have values. |
Class<T> |
getAttributeValueClass()
Returns the class of attribute values this attribute uses.
|
String |
getDescription()
Return a short description explaining the attribute to the user.
|
T |
getExampleValue()
Returns an example value of the type this attribute uses.
|
String |
getName()
Return a short name describing the attribute to the user.
|
String getName()
String getDescription()
boolean canHaveValue()
true
if the attribute can have values.boolean alwaysHasValue()
true
if the attribute must have a value.Class<T> getAttributeValueClass()
T getExampleValue()
boolean appliesTo(DictionaryEntry.AttributeGroup group)
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.