|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rhq.core.domain.configuration.definition.PropertyDefinition
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple
public class PropertyDefinitionSimple
Defines a simple property.
Constructor Summary | |
---|---|
protected |
PropertyDefinitionSimple()
|
|
PropertyDefinitionSimple(String name,
String description,
boolean required,
PropertySimpleType type)
|
Method Summary | |
---|---|
void |
addConstraints(Constraint... constraintsToAdd)
|
void |
addEnumeratedValues(PropertyDefinitionEnumeration... enumerations)
|
boolean |
getAllowCustomEnumeratedValue()
If false and this simple property has enumerated values defined, then
the value of the simple property must be one of the enumerated values. |
Set<Constraint> |
getConstraints()
Return all the constraints on this simple-property no matter how they are grouped together in the XML. |
String |
getDefaultValue()
Deprecated. |
List<PropertyDefinitionEnumeration> |
getEnumeratedValues()
Get the <options> within <property-options> for a <simple-property> |
PropertySimpleType |
getType()
|
MeasurementUnits |
getUnits()
|
void |
setAllowCustomEnumeratedValue(boolean allowCustomEnumValue)
See getAllowCustomEnumeratedValue() for a description of this flag. |
void |
setConstraints(Set<Constraint> constraints)
|
void |
setDefaultValue(String defaultValue)
Deprecated. |
void |
setEnumeratedValues(List<PropertyDefinitionEnumeration> enumeratedValues,
boolean allowCustomEnumValue)
|
void |
setType(PropertySimpleType type)
|
void |
setUnits(MeasurementUnits units)
|
String |
toString()
|
Methods inherited from class org.rhq.core.domain.configuration.definition.PropertyDefinition |
---|
getActivationPolicy, getConfigurationDefinition, getDescription, getDisplayName, getId, getName, getOrder, getParentPropertyListDefinition, getParentPropertyMapDefinition, getPropertyGroupDefinition, getVersion, isReadOnly, isRequired, isSummary, setActivationPolicy, setConfigurationDefinition, setDescription, setDisplayName, setId, setName, setOrder, setParentPropertyListDefinition, setParentPropertyMapDefinition, setPropertyGroupDefinition, setReadOnly, setRequired, setSummary, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyDefinitionSimple(@NotNull String name, String description, boolean required, @NotNull PropertySimpleType type)
protected PropertyDefinitionSimple()
Method Detail |
---|
public PropertySimpleType getType()
public void setType(PropertySimpleType type)
@NotNull public Set<Constraint> getConstraints()
public void setConstraints(Set<Constraint> constraints)
public void addConstraints(Constraint... constraintsToAdd)
@NotNull public List<PropertyDefinitionEnumeration> getEnumeratedValues()
public void setEnumeratedValues(List<PropertyDefinitionEnumeration> enumeratedValues, boolean allowCustomEnumValue)
public void addEnumeratedValues(PropertyDefinitionEnumeration... enumerations)
public boolean getAllowCustomEnumeratedValue()
false
and this simple property has enumerated values
defined, then
the value of the simple property must be one of the enumerated values. If true
, then the
value of this simple property is not required to be one of the enumerated values - a user can opt to set the
value to some other custom value. This is useful, for example, when a property has an enumerated list of common
JDBC drivers but allows a user to enter their own custom JDBC driver if not one of the common drivers given in
the enumerated list.
Note that this flag has no effect if there are no enumerated values defined for this simple property.
public void setAllowCustomEnumeratedValue(boolean allowCustomEnumValue)
getAllowCustomEnumeratedValue()
for a description of this flag.
allowCustomEnumValue
- @Deprecated public String getDefaultValue()
@Deprecated public void setDefaultValue(String defaultValue)
public MeasurementUnits getUnits()
public void setUnits(MeasurementUnits units)
public String toString()
toString
in class PropertyDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |