org.squashtest.csp.tm.domain.customfield
Class CustomFieldOption

java.lang.Object
  extended by org.squashtest.csp.tm.domain.customfield.CustomFieldOption

@Embeddable
public class CustomFieldOption
extends Object

Defines an option which can be selected among a list and set as a custom field's value.

Author:
Gregory Fouquet

Constructor Summary
protected CustomFieldOption()
          For Hibernate.
  CustomFieldOption(String label, String code)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
           
 String getLabel()
           
 int hashCode()
           
 void setCode(String code)
           
 void setLabel(String label)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldOption

public CustomFieldOption(String label,
                         String code)

CustomFieldOption

protected CustomFieldOption()
For Hibernate.

Method Detail

setLabel

public void setLabel(String label)

setCode

public void setCode(String code)

getLabel

public String getLabel()
Returns:
the label

getCode

public String getCode()
Returns:
the code

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.