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

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="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  java.util.List<ConstraintType> constraint
           
protected  java.lang.String defaultValue
           
protected  java.lang.String defaultValueDescription
           
protected  java.lang.String initialValue
           
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.
 java.util.List<ConstraintType> getConstraint()
          Gets the value of the constraint property.
 java.lang.String getDefaultValue()
          Gets the value of the defaultValue property.
 java.lang.String getDefaultValueDescription()
          Gets the value of the defaultValueDescription property.
 java.lang.String getInitialValue()
          Gets the value of the initialValue 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(java.lang.String value)
          Sets the value of the defaultValue property.
 void setDefaultValueDescription(java.lang.String value)
          Sets the value of the defaultValueDescription property.
 void setInitialValue(java.lang.String value)
          Sets the value of the initialValue 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

constraint

protected java.util.List<ConstraintType> constraint

defaultValueDescription

protected java.lang.String defaultValueDescription

activationPolicy

protected ActivationPolicy activationPolicy

initialValue

protected java.lang.String initialValue

defaultValue

protected java.lang.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

getConstraint

public java.util.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 java.lang.String getDefaultValueDescription()
Gets the value of the defaultValueDescription property.

Returns:
possible object is String

setDefaultValueDescription

public void setDefaultValueDescription(java.lang.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 java.lang.String getInitialValue()
Gets the value of the initialValue property.

Returns:
possible object is String

setInitialValue

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

Parameters:
value - allowed object is String

getDefaultValue

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

Returns:
possible object is String

setDefaultValue

public void setDefaultValue(java.lang.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-2009 Red Hat, Inc.. All Rights Reserved.