Methods Summary |
---|
public java.util.Enumeration | attributeNames()
Enumerates the attribute names.
// Create a new list, so that the references are copied
return Collections.enumeration(new LinkedList<String>(values.keySet()));
|
public java.lang.String | getDisplayName()
Gets the display name or {@link #getName()} if not set.
return displayName == null ? getName() : displayName;
|
public java.lang.String | getName()
Gets the name.
return name;
|
public java.lang.String | getShortDescription()
Gets the short description or {@link #getDisplayName()} if not set.
return shortDescription == null ? getDisplayName() : shortDescription;
|
public java.lang.Object | getValue(java.lang.String attributeName)
Gets the value associated with the named attribute.
Object result = null;
if (attributeName != null) {
result = values.get(attributeName);
}
return result;
|
public boolean | isExpert()
Indicates if this feature is an expert feature.
return expert;
|
public boolean | isHidden()
Indicates if this feature is hidden.
return hidden;
|
public boolean | isPreferred()
Indicates if this feature is preferred.
return preferred;
|
public void | setDisplayName(java.lang.String displayName)
Sets the display name.
this.displayName = displayName;
|
public void | setExpert(boolean expert)
Sets the expert indicator.
this.expert = expert;
|
public void | setHidden(boolean hidden)
Sets the hidden indicator.
this.hidden = hidden;
|
public void | setName(java.lang.String name)
Sets the name.
this.name = name;
|
public void | setPreferred(boolean preferred)
Sets the preferred indicator.
this.preferred = preferred;
|
public void | setShortDescription(java.lang.String text)
Sets the short description.
this.shortDescription = text;
|
public void | setValue(java.lang.String attributeName, java.lang.Object value)
Sets the value for the named attribute.
if (attributeName == null || value == null) {
throw new NullPointerException();
}
values.put(attributeName, value);
|