public class FeatureDescriptor extends Object
Constructor and Description |
---|
FeatureDescriptor()
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
Enumeration<String> |
attributeNames()
Enumerates the attribute names.
|
String |
getDisplayName()
Gets the display name or
getName() if not set. |
String |
getName()
Gets the name.
|
String |
getShortDescription()
Gets the short description or
getDisplayName() if not set. |
Object |
getValue(String attributeName)
Gets the value associated with the named attribute.
|
boolean |
isExpert()
Indicates if this feature is an expert feature.
|
boolean |
isHidden()
Indicates if this feature is hidden.
|
boolean |
isPreferred()
Indicates if this feature is preferred.
|
void |
setDisplayName(String displayName)
Sets the display name.
|
void |
setExpert(boolean expert)
Sets the expert indicator.
|
void |
setHidden(boolean hidden)
Sets the hidden indicator.
|
void |
setName(String name)
Sets the name.
|
void |
setPreferred(boolean preferred)
Sets the preferred indicator.
|
void |
setShortDescription(String text)
Sets the short description.
|
void |
setValue(String attributeName,
Object value)
Sets the value for the named attribute.
|
public void setValue(String attributeName, Object value)
Sets the value for the named attribute.
attributeName
- The name of the attribute to set a value with.value
- The value to set.public Object getValue(String attributeName)
Gets the value associated with the named attribute.
attributeName
- The name of the attribute to get a value for.public Enumeration<String> attributeNames()
Enumerates the attribute names.
Enumeration
.public void setShortDescription(String text)
Sets the short description.
text
- The description to set.public void setName(String name)
Sets the name.
name
- The name to set.public void setDisplayName(String displayName)
Sets the display name.
displayName
- The display name to set.public String getShortDescription()
Gets the short description or getDisplayName()
if not set.
public String getName()
Gets the name.
public String getDisplayName()
Gets the display name or getName()
if not set.
public void setPreferred(boolean preferred)
Sets the preferred indicator.
preferred
- true
if preferred, false
otherwise.public void setHidden(boolean hidden)
Sets the hidden indicator.
hidden
- true
if hidden, false
otherwise.public void setExpert(boolean expert)
Sets the expert indicator.
expert
- true
if expert, false
otherwise.public boolean isPreferred()
Indicates if this feature is preferred.
true
if preferred, false
otherwise.public boolean isHidden()
Indicates if this feature is hidden.
true
if hidden, false
otherwise.public boolean isExpert()
Indicates if this feature is an expert feature.
true
if hidden, false
otherwise.Copyright © 2013. All Rights Reserved.