org.rhq.enterprise.installer
Class PropertyItemWithValue

java.lang.Object
  extended by org.rhq.enterprise.installer.PropertyItemWithValue

public class PropertyItemWithValue
extends Object


Constructor Summary
PropertyItemWithValue(PropertyItem itemDefinition, String value)
           
 
Method Summary
 PropertyItem getItemDefinition()
           
 String getValue()
           
 void setItemDefinition(PropertyItem itemDefinition)
           
 void setRawValue(String value)
          Sets the property's value.
 void setValue(String value)
          Sets the property's value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyItemWithValue

public PropertyItemWithValue(PropertyItem itemDefinition,
                             String value)
Method Detail

getItemDefinition

public PropertyItem getItemDefinition()

setItemDefinition

public void setItemDefinition(PropertyItem itemDefinition)

getValue

public String getValue()

setValue

public void setValue(String value)
Sets the property's value. If the given value is null or empty, a default will be assigned depending on the property's type.

Parameters:
value - the new property value

setRawValue

public void setRawValue(String value)
Sets the property's value. No matter what value is, it will be stored as-is. See setValue(String) for different behavior.

Parameters:
value - the new value

toString

public String toString()
Overrides:
toString in class Object


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