|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.admin.objects.MMAdminObject
com.metamatrix.admin.objects.MMPropertyDefinition
public class MMPropertyDefinition
| Field Summary |
|---|
| Fields inherited from interface com.metamatrix.admin.api.objects.PropertyDefinition |
|---|
UNBOUNDED_VALUE |
| Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject |
|---|
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD |
| Constructor Summary | |
|---|---|
MMPropertyDefinition(java.lang.String[] identifierParts)
Constructor. |
|
| Method Summary | |
|---|---|
java.util.Collection |
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 |
getDescription()
Get the description of this property. |
java.lang.String |
getDisplayName()
Get the localized display name of this property. |
int |
getMaximumMultiplicity()
Get the maximum multiplicity for this property. |
int |
getMinimumMultiplicity()
Get the minimum multiplicity for this property. |
java.lang.String |
getPropertyType()
Get the type for values of this property. |
java.lang.String |
getPropertyTypeClassName()
Get the name of the java class that best represents the property type. |
boolean |
getRequiresRestart()
Get whether this property requires the system to be restarted before it takes effect. |
java.lang.String |
getValue()
Get the current value of this property. |
java.lang.String |
getValueDelimiter()
Return the text expression that is used to delimit multiple values within a single String value. |
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. |
void |
setAllowedValues(java.util.Collection allowedValues)
|
void |
setConstrainedToAllowedValues(boolean constrainedToAllowedValues)
|
void |
setDefaultValue(java.lang.Object defaultValue)
|
void |
setDescription(java.lang.String description)
|
void |
setDisplayName(java.lang.String displayName)
|
void |
setExpert(boolean expert)
|
void |
setHidden(boolean hidden)
|
void |
setMasked(boolean masked)
|
void |
setMaximumMultiplicity(int maximumMultiplicity)
|
void |
setMinimumMultiplicity(int minimumMultiplicity)
|
void |
setModifiable(boolean modifiable)
|
void |
setPreferred(boolean preferred)
|
void |
setPropertyType(java.lang.String propertyTypeAsString)
|
void |
setPropertyTypeClassName(java.lang.String propertyTypeClassName)
|
void |
setRequired(boolean required)
|
void |
setRequiresRestart(boolean requiresRestart)
|
void |
setValue(java.lang.String value)
|
void |
setValueDelimiter(java.lang.String valueDelimiter)
|
java.lang.String |
toString()
Get MetaMatrix Object as a String |
| Methods inherited from class com.metamatrix.admin.objects.MMAdminObject |
|---|
buildIdentifier, buildIdentifierArray, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getName, getNameFromIdentifier, getObjectType, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isDeployed, isEnabled, isRegistered, setCreated, setCreatedBy, setDeployed, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject |
|---|
getIdentifier, getName, getProperties, getPropertyValue |
| Constructor Detail |
|---|
public MMPropertyDefinition(java.lang.String[] identifierParts)
identifierParts - | Method Detail |
|---|
public java.lang.String toString()
MMAdminObject
toString in class MMAdminObjectObject.toString()public java.lang.String getValue()
PropertyDefinition
getValue in interface PropertyDefinitionPropertyDefinition.getValue()public java.util.Collection getAllowedValues()
PropertyDefinition
getAllowedValues in interface PropertyDefinitionPropertyDefinition.getAllowedValues()public java.lang.Object getDefaultValue()
PropertyDefinition
getDefaultValue in interface PropertyDefinitionPropertyDefinition.getDefaultValue()public java.lang.String getDescription()
PropertyDefinition
getDescription in interface PropertyDefinitionPropertyDefinition.getDescription()public java.lang.String getDisplayName()
PropertyDefinition
getDisplayName in interface PropertyDefinitionPropertyDefinition.getDisplayName()public int getMaximumMultiplicity()
PropertyDefinition
getMaximumMultiplicity in interface PropertyDefinitionPropertyDefinition.getMaximumMultiplicity()public int getMinimumMultiplicity()
PropertyDefinition
getMinimumMultiplicity in interface PropertyDefinitionPropertyDefinition.getMinimumMultiplicity()public java.lang.String getPropertyType()
PropertyDefinition
getPropertyType in interface PropertyDefinitionPropertyDefinition.getPropertyType()public java.lang.String getPropertyTypeClassName()
PropertyDefinition
getPropertyTypeClassName in interface PropertyDefinitionPropertyDefinition.getPropertyTypeClassName()public boolean getRequiresRestart()
PropertyDefinition
getRequiresRestart in interface PropertyDefinitionPropertyDefinition.getRequiresRestart()public java.lang.String getValueDelimiter()
PropertyDefinition
getValueDelimiter in interface PropertyDefinitionPropertyDefinition.getValueDelimiter()public boolean isConstrainedToAllowedValues()
PropertyDefinition
isConstrainedToAllowedValues in interface PropertyDefinitionPropertyDefinition.isConstrainedToAllowedValues()public boolean isExpert()
PropertyDefinition
isExpert in interface PropertyDefinitionPropertyDefinition.isExpert()public boolean isHidden()
PropertyDefinition
isHidden in interface PropertyDefinitionPropertyDefinition.isHidden()public boolean isMasked()
PropertyDefinition
isMasked in interface PropertyDefinitionPropertyDefinition.isMasked()public boolean isModifiable()
PropertyDefinition
isModifiable in interface PropertyDefinitionPropertyDefinition.isModifiable()public boolean isPreferred()
PropertyDefinition
isPreferred in interface PropertyDefinitionPropertyDefinition.isPreferred()public boolean isRequired()
PropertyDefinitionWhether 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 PropertyDefinitionPropertyDefinition.isRequired()public void setAllowedValues(java.util.Collection allowedValues)
allowedValues - The allowedValues to set.public void setConstrainedToAllowedValues(boolean constrainedToAllowedValues)
constrainedToAllowedValues - The value of constrainedToAllowedValues to set.public void setDefaultValue(java.lang.Object defaultValue)
defaultValue - The defaultValue to set.public void setDescription(java.lang.String description)
description - The description to set.public void setDisplayName(java.lang.String displayName)
displayName - The displayName to set.public void setExpert(boolean expert)
expert - The value of expert to set.public void setHidden(boolean hidden)
hidden - The value of hidden to set.public void setMasked(boolean masked)
masked - The value of masked to set.public void setMaximumMultiplicity(int maximumMultiplicity)
maximumMultiplicity - The maximumMultiplicity to set.public void setMinimumMultiplicity(int minimumMultiplicity)
minimumMultiplicity - The minimumMultiplicity to set.public void setModifiable(boolean modifiable)
modifiable - The value of modifiable to set.public void setPreferred(boolean preferred)
preferred - The value of preferred to set.public void setPropertyType(java.lang.String propertyTypeAsString)
propertyTypeAsString - The propertyTypeAsString to set.public void setPropertyTypeClassName(java.lang.String propertyTypeClassName)
propertyTypeClassName - The propertyTypeName to set.public void setRequired(boolean required)
required - The value of required to set.public void setRequiresRestart(boolean requiresRestart)
requiresRestart - The value of requiresRestart to set.public void setValue(java.lang.String value)
value - The value to set.public void setValueDelimiter(java.lang.String valueDelimiter)
valueDelimiter - The valueDelimiter to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||