public class PropertyDescription
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
displayGroup
The groups name as
String which subsumes this property with others. |
private java.lang.String |
displayName
The properties name as
String which shall be displayed within a user interface as name for this property. |
private DisplayType |
displayType
The
DisplayType of this property. |
private java.util.Map<java.lang.String,java.lang.String> |
possibleValues
The possible values as
Map of String (value) to String (display name). |
| Constructor and Description |
|---|
PropertyDescription()
Create empty property description.
|
PropertyDescription(java.lang.String dspName,
DisplayType dspType,
java.lang.String dspGroup,
java.util.Map<java.lang.String,java.lang.String> validValues)
Creates a proper property description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPossibleValue(java.lang.String value,
java.lang.String dspValue)
Adds an entry to the list of possible values.
|
java.lang.String |
getDisplayGroup()
Returns the display group as
String. |
java.lang.String |
getDisplayName()
Returns the display name as
String. |
DisplayType |
getDisplayType()
Returns the display type as
DisplayType. |
java.util.Map<java.lang.String,java.lang.String> |
getPossibleValue()
Returns the list of possible values as
Map of String (value) to String (display name). |
void |
setDisplayGroup(java.lang.String dspGroup)
Sets/updates the display group.
|
void |
setDisplayName(java.lang.String dspName)
Sets/updates the display name.
|
void |
setDisplayType(DisplayType dspType)
Sets/updates the display type.
|
void |
setPossibleValues(java.util.Map<java.lang.String,java.lang.String> validValues)
Sets/updates the list of possible values.
|
private java.lang.String displayName
String which shall be displayed within a user interface as name for this property.private DisplayType displayType
DisplayType of this property.private java.lang.String displayGroup
String which subsumes this property with others.private java.util.Map<java.lang.String,java.lang.String> possibleValues
Map of String (value) to String (display name).public PropertyDescription()
public PropertyDescription(java.lang.String dspName,
DisplayType dspType,
java.lang.String dspGroup,
java.util.Map<java.lang.String,java.lang.String> validValues)
dspName - The properties display name as String.dspType - The DisplayType of this property.dspGroup - The groups display name as String in which this property is included.validValues - A list of valid values as Map of String (value) to String
(display name).public final void setDisplayName(java.lang.String dspName)
dspName - The new value for the display name as String.public final void setDisplayType(DisplayType dspType)
dspType - The new value for the display type as DisplayType.public final void setDisplayGroup(java.lang.String dspGroup)
dspGroup - The new value for the display group as String.public final void setPossibleValues(java.util.Map<java.lang.String,java.lang.String> validValues)
validValues - The new value for the list of possible values as Map of String (value) to
String (display name).public final void addPossibleValue(java.lang.String value,
java.lang.String dspValue)
value - The value as String.dspValue - The display name of this value as String which shall be displayed to the user.public final java.lang.String getDisplayName()
String.String.public final DisplayType getDisplayType()
DisplayType.DisplayType.public final java.lang.String getDisplayGroup()
String.String.public final java.util.Map<java.lang.String,java.lang.String> getPossibleValue()
Map of String (value) to String (display name).Map of String (value) to String
(display name).