org.rhq.core.domain.configuration.definition
Class PropertyDefinitionEnumeration

java.lang.Object
  extended by org.rhq.core.domain.configuration.definition.PropertyDefinitionEnumeration
All Implemented Interfaces:
Serializable

public class PropertyDefinitionEnumeration
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
protected PropertyDefinitionEnumeration()
           
  PropertyDefinitionEnumeration(String name, String value)
           
  PropertyDefinitionEnumeration(String name, String value, boolean isDefault)
           
 
Method Summary
 boolean equals(Object o)
          Two items are equal if they have the same name and share the same PropertyDefinitionSimple
 long getId()
           
 String getName()
           
 int getOrderIndex()
           
 PropertyDefinitionSimple getPropertyDefinitionSimple()
           
 String getValue()
           
 int hashCode()
           
 boolean isDefault()
           
 void setDefault(boolean aDefault)
           
 void setId(long id)
           
 void setName(String name)
           
 void setOrderIndex(int orderIndex)
           
 void setPropertyDefinitionSimple(PropertyDefinitionSimple propertyDefinitionSimple)
           
 void setValue(String value)
           
 String toString()
           
 void updateOrder()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyDefinitionEnumeration

protected PropertyDefinitionEnumeration()

PropertyDefinitionEnumeration

public PropertyDefinitionEnumeration(@NotNull
                                     String name,
                                     String value)

PropertyDefinitionEnumeration

public PropertyDefinitionEnumeration(@NotNull
                                     String name,
                                     String value,
                                     boolean isDefault)
Method Detail

updateOrder

public void updateOrder()

getPropertyDefinitionSimple

public PropertyDefinitionSimple getPropertyDefinitionSimple()

setPropertyDefinitionSimple

public void setPropertyDefinitionSimple(PropertyDefinitionSimple propertyDefinitionSimple)

getId

public long getId()

setId

public void setId(long id)

getName

@NotNull
public String getName()

setName

public void setName(@NotNull
                    String name)

getValue

public String getValue()

setValue

public void setValue(String value)

isDefault

public boolean isDefault()

setDefault

public void setDefault(boolean aDefault)

getOrderIndex

public int getOrderIndex()

setOrderIndex

public void setOrderIndex(int orderIndex)

equals

public boolean equals(Object o)
Two items are equal if they have the same name and share the same PropertyDefinitionSimple

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.