org.squashtest.csp.tm.domain.customfield
Enum BindableEntity

java.lang.Object
  extended by java.lang.Enum<BindableEntity>
      extended by org.squashtest.csp.tm.domain.customfield.BindableEntity
All Implemented Interfaces:
Serializable, Comparable<BindableEntity>, org.squashtest.tm.core.foundation.i18n.Internationalizable

public enum BindableEntity
extends Enum<BindableEntity>
implements org.squashtest.tm.core.foundation.i18n.Internationalizable

Enumerates the entities which can be bounded to custom fields.

Author:
Gregory Fouquet

Enum Constant Summary
CAMPAIGN
           
ITERATION
           
REQUIREMENT_VERSION
           
TEST_CASE
           
TEST_SUITE
           
 
Method Summary
 String getI18nKey()
           
abstract  Class<?> getReferencedClass()
           
static BindableEntity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BindableEntity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TEST_CASE

public static final BindableEntity TEST_CASE

CAMPAIGN

public static final BindableEntity CAMPAIGN

ITERATION

public static final BindableEntity ITERATION

TEST_SUITE

public static final BindableEntity TEST_SUITE

REQUIREMENT_VERSION

public static final BindableEntity REQUIREMENT_VERSION
Method Detail

values

public static BindableEntity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BindableEntity c : BindableEntity.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BindableEntity valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getI18nKey

public String getI18nKey()
Specified by:
getI18nKey in interface org.squashtest.tm.core.foundation.i18n.Internationalizable
See Also:
Internationalizable.getI18nKey()

getReferencedClass

public abstract Class<?> getReferencedClass()


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