|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.config.api.ComponentTypePropDefn
public class ComponentTypePropDefn
ComponentTypePropDefn is an unmodifiable wrapper for the PropertyDefinition. Notice that this contains an origPropertyDefinition from which it returns values. This is done so that an instance of this class can be instantiated and passed a PropertyDefinition.
| Constructor Summary | |
|---|---|
ComponentTypePropDefn()
|
|
ComponentTypePropDefn(PropertyDefinition definition)
|
|
ComponentTypePropDefn(java.lang.String name,
java.lang.String displayName,
PropertyType type,
Multiplicity multiplicity)
|
|
ComponentTypePropDefn(java.lang.String name,
java.lang.String displayName,
PropertyType type,
Multiplicity multiplicity,
java.lang.String shortDescription,
java.lang.String defaultValue,
java.util.List allowedValues,
java.lang.String valueDelimiter,
boolean isHidden,
boolean isPreferred,
boolean isExpert,
boolean isModifiable)
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object to another. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
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. |
java.lang.String |
getDisplayName()
Get the localized display name of this property. |
Multiplicity |
getMultiplicity()
Get the multiplicity specification for this property. |
java.lang.String |
getName()
Get the actual or programmatic name of this property. |
java.lang.String |
getPluralDisplayName()
Get the localized display name of 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 |
getShortDescription()
Get the short description of this property. |
java.lang.String |
getShortDisplayName()
Get the localized display name of this property. |
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. |
int |
hashCode()
Returns the hash code value for this object. |
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. |
java.lang.String |
toString()
Returns a string representing the current state of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentTypePropDefn()
public ComponentTypePropDefn(PropertyDefinition definition)
public ComponentTypePropDefn(java.lang.String name,
java.lang.String displayName,
PropertyType type,
Multiplicity multiplicity,
java.lang.String shortDescription,
java.lang.String defaultValue,
java.util.List allowedValues,
java.lang.String valueDelimiter,
boolean isHidden,
boolean isPreferred,
boolean isExpert,
boolean isModifiable)
public ComponentTypePropDefn(java.lang.String name,
java.lang.String displayName,
PropertyType type,
Multiplicity multiplicity)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface ObjectDefinitionpublic java.lang.String getDisplayName()
getDisplayName in interface ObjectDefinitionpublic java.lang.String getShortDescription()
getShortDescription in interface ObjectDefinitionpublic Multiplicity getMultiplicity()
getMultiplicity in interface PropertyDefinitionpublic 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.
isRequired in interface PropertyDefinitionpublic boolean isHidden()
isHidden in interface PropertyDefinitionpublic boolean getRequiresRestart()
PropertyDefinition
getRequiresRestart in interface PropertyDefinitionPropertyDefinition.getRequiresRestart()public boolean isMasked()
isMasked in interface PropertyDefinitionpublic boolean isModifiable()
isModifiable in interface PropertyDefinitionpublic boolean isPreferred()
isPreferred in interface PropertyDefinitionpublic boolean isExpert()
isExpert in interface PropertyDefinitionpublic PropertyType getPropertyType()
getPropertyType in interface PropertyDefinitionpublic java.lang.Object getDefaultValue()
getDefaultValue in interface PropertyDefinitionhasDefaultValue()public java.util.List getAllowedValues()
getAllowedValues in interface PropertyDefinitionhasAllowedValues()public boolean hasDefaultValue()
hasDefaultValue in interface PropertyDefinitiongetDefaultValue()public boolean isConstrainedToAllowedValues()
isConstrainedToAllowedValues in interface PropertyDefinitionhasAllowedValues(),
getAllowedValues()public boolean hasAllowedValues()
hasAllowedValues in interface PropertyDefinitiongetAllowedValues()public java.lang.String getValueDelimiter()
getValueDelimiter in interface PropertyDefinitionpublic java.lang.String getShortDisplayName()
getShortDisplayName in interface ObjectDefinitionpublic java.lang.String getPluralDisplayName()
getPluralDisplayName in interface ObjectDefinitionpublic int compareTo(java.lang.Object obj)
Note: this method is consistent with
equals(), meaning that
(compare(x, y)==0) == (x.equals(y)).
compareTo in interface ObjectDefinitioncompareTo in interface java.lang.Comparableobj - the object that this instance is to be compared to.
java.lang.IllegalArgumentException - if the specified object reference is null
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this instance.public boolean equals(java.lang.Object obj)
compareTo().
equals in interface ObjectDefinitionequals in class java.lang.Objectobj - the object that this instance is to be compared to.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface ObjectDefinitiontoString in class java.lang.Objectpublic java.lang.String getValuesAsString(java.lang.Object[] values)
toString method on the values.
getValuesAsString in interface PropertyDefinitionvalues - the array of values that this definition describes; may not be null
public java.lang.Object[] getValuesFromString(java.lang.String stringifiedValues)
getValuesFromString in interface PropertyDefinitionstringifiedValue - the stringified form of the values
public java.lang.String getValuesAsString(java.lang.Object[] values,
java.lang.String delim)
toString method on the values.
getValuesAsString in interface PropertyDefinitionvalues - 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 ','
public java.lang.Object[] getValuesFromString(java.lang.String stringifiedValues,
java.lang.String delim)
getValuesFromString in interface PropertyDefinitionstringifiedValue - 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 | |||||||||