public class PropertyDefinitionMetadata extends AdminObjectImpl implements PropertyDefinition
PropertyDefinition.RestartTypeattachmentsUNBOUNDED_VALUEDELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD| Constructor and Description |
|---|
PropertyDefinitionMetadata() |
| Modifier and Type | Method and Description |
|---|---|
Collection |
getAllowedValues()
Get the allowed values for this property.
|
String |
getCategory()
Get the category of the property
|
Object |
getDefaultValue()
Get the default value for values of this property, or an empty String if
there is no default value.
|
String |
getDescription()
Get the description of this property.
|
String |
getDisplayName()
Get the localized display name of this property.
|
String |
getPropertyTypeClassName()
Get the name of the java class that best represents the property type.
|
PropertyDefinition.RestartType |
getRequiresRestart()
Get whether this property requires the system to be restarted before it takes effect.
|
boolean |
isAdvanced()
The "expert" flag is used to distinguish between features that are
intended for expert users from those that are intended for normal users.
|
boolean |
isConstrainedToAllowedValues()
Return whether the value or values for this property are constrained to be only
those in the AllowedValues list.
|
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 |
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 |
setAdvanced(boolean expert) |
void |
setAllowedValues(Collection allowedValues) |
void |
setCategory(String category) |
void |
setDefaultValue(Serializable defaultValue) |
void |
setDescription(String description) |
void |
setDisplayName(String displayName) |
void |
setMasked(boolean masked) |
void |
setModifiable(boolean modifiable) |
void |
setPropertyTypeClassName(String propertyTypeClassName) |
void |
setRequired(boolean required) |
void |
setRequiresRestart(PropertyDefinition.RestartType requiresRestart) |
String |
toString() |
addAttchment, addProperty, getAttachment, getHostName, getName, getProperties, getPropertiesMap, getPropertyValue, getServerGroup, getServerName, removeAttachment, removeProperty, setHostName, setName, setProperties, setServerGroup, setServerNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getProperties, getPropertyValuepublic String toString()
toString in class ObjectObject.toString()public Collection getAllowedValues()
PropertyDefinitiongetAllowedValues in interface PropertyDefinitionPropertyDefinition.getAllowedValues()public Object getDefaultValue()
PropertyDefinitiongetDefaultValue in interface PropertyDefinitionPropertyDefinition.getDefaultValue()public String getDescription()
PropertyDefinitiongetDescription in interface PropertyDefinitionPropertyDefinition.getDescription()public String getDisplayName()
PropertyDefinitiongetDisplayName in interface PropertyDefinitionPropertyDefinition.getDisplayName()public String getPropertyTypeClassName()
PropertyDefinitiongetPropertyTypeClassName in interface PropertyDefinitionPropertyDefinition.getPropertyTypeClassName()public PropertyDefinition.RestartType getRequiresRestart()
PropertyDefinitiongetRequiresRestart in interface PropertyDefinitionPropertyDefinition.getRequiresRestart()public boolean isAdvanced()
PropertyDefinitionisAdvanced in interface PropertyDefinitionPropertyDefinition.isAdvanced()public boolean isMasked()
PropertyDefinitionisMasked in interface PropertyDefinitionPropertyDefinition.isMasked()public boolean isModifiable()
PropertyDefinitionisModifiable in interface PropertyDefinitionPropertyDefinition.isModifiable()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(Collection allowedValues)
allowedValues - The allowedValues to set.public void setDefaultValue(Serializable defaultValue)
defaultValue - The defaultValue to set.public void setDescription(String description)
description - The description to set.public void setDisplayName(String displayName)
displayName - The displayName to set.public void setAdvanced(boolean expert)
expert - The value of expert to set.public void setMasked(boolean masked)
masked - The value of masked to set.public void setModifiable(boolean modifiable)
modifiable - The value of modifiable to set.public void setPropertyTypeClassName(String propertyTypeClassName)
propertyTypeClassName - The propertyTypeName to set.public void setRequired(boolean required)
required - The value of required to set.public void setRequiresRestart(PropertyDefinition.RestartType requiresRestart)
requiresRestart - The value of requiresRestart to set.public boolean isConstrainedToAllowedValues()
PropertyDefinitionisConstrainedToAllowedValues in interface PropertyDefinitionPropertyDefinition.getAllowedValues()public String getCategory()
PropertyDefinitiongetCategory in interface PropertyDefinitionpublic void setCategory(String category)
Copyright © 2019. All rights reserved.