org.rhq.core.clientapi.descriptor.configuration
Class SimpleProperty

java.lang.Object
  extended by org.rhq.core.clientapi.descriptor.configuration.ConfigurationProperty
      extended by org.rhq.core.clientapi.descriptor.configuration.SimpleProperty
Direct Known Subclasses:
SimplePropertyInstanceDescriptor

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>
 


Field Summary
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
           
 
Fields inherited from class org.rhq.core.clientapi.descriptor.configuration.ConfigurationProperty
description, displayName, longDescription, name, readOnly, required, summary
 
Constructor Summary
SimpleProperty()
           
 
Method Summary
 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.
 
Methods inherited from class org.rhq.core.clientapi.descriptor.configuration.ConfigurationProperty
getDescription, getDisplayName, getLongDescription, getName, isReadOnly, isRequired, isSummary, setDescription, setDisplayName, setLongDescription, setName, setReadOnly, setRequired, setSummary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyOptions

protected PropertyOptions propertyOptions

optionSource

protected OptionSource optionSource

constraint

protected List<ConstraintType> constraint

defaultValueDescription

protected String defaultValueDescription

activationPolicy

protected ActivationPolicy activationPolicy

initialValue

protected String initialValue

defaultValue

protected String defaultValue

type

protected PropertyType type

units

protected MeasurementUnitsDescriptor units
Constructor Detail

SimpleProperty

public SimpleProperty()
Method Detail

getPropertyOptions

public PropertyOptions getPropertyOptions()
Gets the value of the propertyOptions property.

Returns:
possible object is PropertyOptions

setPropertyOptions

public void setPropertyOptions(PropertyOptions value)
Sets the value of the propertyOptions property.

Parameters:
value - allowed object is PropertyOptions

getOptionSource

public OptionSource getOptionSource()
Gets the value of the optionSource property.

Returns:
possible object is OptionSource

setOptionSource

public void setOptionSource(OptionSource value)
Sets the value of the optionSource property.

Parameters:
value - allowed object is OptionSource

getConstraint

public List<ConstraintType> getConstraint()
Gets the value of the constraint property.

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


getDefaultValueDescription

public String getDefaultValueDescription()
Gets the value of the defaultValueDescription property.

Returns:
possible object is String

setDefaultValueDescription

public void setDefaultValueDescription(String value)
Sets the value of the defaultValueDescription property.

Parameters:
value - allowed object is String

getActivationPolicy

public ActivationPolicy getActivationPolicy()
Gets the value of the activationPolicy property.

Returns:
possible object is ActivationPolicy

setActivationPolicy

public void setActivationPolicy(ActivationPolicy value)
Sets the value of the activationPolicy property.

Parameters:
value - allowed object is ActivationPolicy

getInitialValue

public String getInitialValue()
Gets the value of the initialValue property.

Returns:
possible object is String

setInitialValue

public void setInitialValue(String value)
Sets the value of the initialValue property.

Parameters:
value - allowed object is String

getDefaultValue

public String getDefaultValue()
Gets the value of the defaultValue property.

Returns:
possible object is String

setDefaultValue

public void setDefaultValue(String value)
Sets the value of the defaultValue property.

Parameters:
value - allowed object is String

getType

public PropertyType getType()
Gets the value of the type property.

Returns:
possible object is PropertyType

setType

public void setType(PropertyType value)
Sets the value of the type property.

Parameters:
value - allowed object is PropertyType

getUnits

public MeasurementUnitsDescriptor getUnits()
Gets the value of the units property.

Returns:
possible object is MeasurementUnitsDescriptor

setUnits

public void setUnits(MeasurementUnitsDescriptor value)
Sets the value of the units property.

Parameters:
value - allowed object is MeasurementUnitsDescriptor


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.