|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyDefinition
Defines the type of property that will be placed in a detail panel or table
Method Summary | |
---|---|
java.util.List |
getAllowedValues()
Get the allowed values for this property. |
java.lang.Object |
getDefaultValue()
Get the default value for values of this property, or an empty String if there is no default value. |
Multiplicity |
getMultiplicity()
Get the multiplicity specification for this property. |
PropertyType |
getPropertyType()
Get the type for values of this property. |
boolean |
getRequiresRestart()
Get whether this property requires the system to be restarted before it takes effect. |
java.lang.String |
getValueDelimiter()
Return the text expression that is used to delimit multiple values within a single String value. |
java.lang.String |
getValuesAsString(java.lang.Object[] values)
Convert the specified values to a stringified form. |
java.lang.String |
getValuesAsString(java.lang.Object[] values,
java.lang.String delim)
Convert the specified values to a stringified form. |
java.lang.Object[] |
getValuesFromString(java.lang.String stringifiedValues)
Convert the stringified form to an array of String values. |
java.lang.Object[] |
getValuesFromString(java.lang.String stringifiedValues,
java.lang.String delim)
Convert the stringified form to an array of String values. |
boolean |
hasAllowedValues()
Return whether there is a prescribed set of values that all property values should be selected from. |
boolean |
hasDefaultValue()
Return whether there is a default value for this property. |
boolean |
isConstrainedToAllowedValues()
Return whether the value or values for this property are constrained to be only those in the AllowedValues list. |
boolean |
isExpert()
The "expert" flag is used to distinguish between features that are intended for expert users from those that are intended for normal users. |
boolean |
isHidden()
The "hidden" flag is used to identify features that are intended only for tool use, and which should not be exposed to humans. |
boolean |
isMasked()
The "masked" flag is used to tell whether the value should be masked when displayed to users. |
boolean |
isModifiable()
The modifiable flag is used to identify features that may not be changed once they are set. |
boolean |
isPreferred()
The "preferred" flag is used to identify features that are particularly important for presenting to humans. |
boolean |
isRequired()
The "required" flag is used to identify features that require at least one value (possibly a default value) by the consumer of the property. |
Methods inherited from interface com.metamatrix.common.object.ObjectDefinition |
---|
compareTo, equals, getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, toString |
Method Detail |
---|
PropertyType getPropertyType()
java.lang.Object getDefaultValue()
hasDefaultValue()
java.util.List getAllowedValues()
hasAllowedValues()
boolean getRequiresRestart()
boolean isModifiable()
boolean isConstrainedToAllowedValues()
hasAllowedValues()
,
getAllowedValues()
boolean hasDefaultValue()
getDefaultValue()
boolean hasAllowedValues()
getAllowedValues()
java.lang.String getValueDelimiter()
boolean isExpert()
boolean isPreferred()
boolean isHidden()
boolean isRequired()
Whether a property is required by the consumer is unrelated to whether there is a default value, which only simplifies the task of the property provider. A property may be required, meaning it must have at least one value, but that same property definition may or may not have a default. The combination of required and whether it has a default will determine whether the user must supply a value.
boolean isMasked()
Multiplicity getMultiplicity()
java.lang.String getValuesAsString(java.lang.Object[] values)
toString
method on the values.
values
- the array of values that this definition describes; may not be null
java.lang.String getValuesAsString(java.lang.Object[] values, java.lang.String delim)
toString
method on the values.
values
- the array of values that this definition describes; may not be nulldelim
- the delimiter to use, overriding the property definition's
set of values; if null, the property definition's delimiter will be used, or
if there is no delimiter defined for the property definition, the default delimiter of ','
java.lang.Object[] getValuesFromString(java.lang.String stringifiedValues)
stringifiedValue
- the stringified form of the values
java.lang.Object[] getValuesFromString(java.lang.String stringifiedValues, java.lang.String delim)
stringifiedValue
- the stringified form of the valuesdelim
- the delimiter to use, overriding the property definition's
set of values; if null, the property definition's delimiter will be used, or
if there is no delimiter defined for the property definition, the default delimiter of ','
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |