public class SimpleProperty extends ConfigurationProperty
Java class for simpleProperty complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="simpleProperty">
<complexContent>
<extension base="{urn:xmlns:rhq-configuration}configurationProperty">
<sequence>
<element name="property-options" type="{urn:xmlns:rhq-configuration}propertyOptions" minOccurs="0"/>
<element name="option-source" type="{urn:xmlns:rhq-configuration}optionSource" minOccurs="0"/>
<element name="constraint" type="{urn:xmlns:rhq-configuration}constraintType" maxOccurs="unbounded" minOccurs="0"/>
<element name="defaultValueDescription" minOccurs="0">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<whiteSpace value="collapse"/>
<minLength value="1"/>
<maxLength value="1000"/>
</restriction>
</simpleType>
</element>
</sequence>
<attribute name="activationPolicy" type="{urn:xmlns:rhq-configuration}activationPolicy" default="immediate" />
<attribute name="default">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<maxLength value="2000"/>
</restriction>
</simpleType>
</attribute>
<attribute name="defaultValue">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<maxLength value="2000"/>
</restriction>
</simpleType>
</attribute>
<attribute name="type" type="{urn:xmlns:rhq-configuration}propertyType" default="string" />
<attribute name="units" type="{urn:xmlns:rhq-configuration}measurementUnitsDescriptor" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected ActivationPolicy |
activationPolicy |
protected List<ConstraintType> |
constraint |
protected String |
defaultValue |
protected String |
defaultValueDescription |
protected String |
initialValue |
protected OptionSource |
optionSource |
protected PropertyOptions |
propertyOptions |
protected PropertyType |
type |
protected MeasurementUnitsDescriptor |
units |
description, displayName, longDescription, name, readOnly, required, summary| Constructor and Description |
|---|
SimpleProperty() |
| Modifier and Type | Method and Description |
|---|---|
ActivationPolicy |
getActivationPolicy()
Gets the value of the activationPolicy property.
|
List<ConstraintType> |
getConstraint()
Gets the value of the constraint property.
|
String |
getDefaultValue()
Gets the value of the defaultValue property.
|
String |
getDefaultValueDescription()
Gets the value of the defaultValueDescription property.
|
String |
getInitialValue()
Gets the value of the initialValue property.
|
OptionSource |
getOptionSource()
Gets the value of the optionSource property.
|
PropertyOptions |
getPropertyOptions()
Gets the value of the propertyOptions property.
|
PropertyType |
getType()
Gets the value of the type property.
|
MeasurementUnitsDescriptor |
getUnits()
Gets the value of the units property.
|
void |
setActivationPolicy(ActivationPolicy value)
Sets the value of the activationPolicy property.
|
void |
setDefaultValue(String value)
Sets the value of the defaultValue property.
|
void |
setDefaultValueDescription(String value)
Sets the value of the defaultValueDescription property.
|
void |
setInitialValue(String value)
Sets the value of the initialValue property.
|
void |
setOptionSource(OptionSource value)
Sets the value of the optionSource property.
|
void |
setPropertyOptions(PropertyOptions value)
Sets the value of the propertyOptions property.
|
void |
setType(PropertyType value)
Sets the value of the type property.
|
void |
setUnits(MeasurementUnitsDescriptor value)
Sets the value of the units property.
|
getDescription, getDisplayName, getLongDescription, getName, isReadOnly, isRequired, isSummary, setDescription, setDisplayName, setLongDescription, setName, setReadOnly, setRequired, setSummaryprotected PropertyOptions propertyOptions
protected OptionSource optionSource
protected List<ConstraintType> constraint
protected String defaultValueDescription
protected ActivationPolicy activationPolicy
protected String initialValue
protected String defaultValue
protected PropertyType type
protected MeasurementUnitsDescriptor units
public PropertyOptions getPropertyOptions()
PropertyOptionspublic void setPropertyOptions(PropertyOptions value)
value - allowed object is
PropertyOptionspublic OptionSource getOptionSource()
OptionSourcepublic void setOptionSource(OptionSource value)
value - allowed object is
OptionSourcepublic List<ConstraintType> getConstraint()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the constraint property.
For example, to add a new item, do as follows:
getConstraint().add(newItem);
Objects of the following type(s) are allowed in the list
ConstraintType
public String getDefaultValueDescription()
Stringpublic void setDefaultValueDescription(String value)
value - allowed object is
Stringpublic ActivationPolicy getActivationPolicy()
ActivationPolicypublic void setActivationPolicy(ActivationPolicy value)
value - allowed object is
ActivationPolicypublic String getInitialValue()
Stringpublic void setInitialValue(String value)
value - allowed object is
Stringpublic String getDefaultValue()
Stringpublic void setDefaultValue(String value)
value - allowed object is
Stringpublic PropertyType getType()
PropertyTypepublic void setType(PropertyType value)
value - allowed object is
PropertyTypepublic MeasurementUnitsDescriptor getUnits()
MeasurementUnitsDescriptorpublic void setUnits(MeasurementUnitsDescriptor value)
value - allowed object is
MeasurementUnitsDescriptorCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.