com.atlassian.crowd.plugin.rest.util
Enum SearchRestrictionEntityTranslator.SupportedType

java.lang.Object
  extended by java.lang.Enum<SearchRestrictionEntityTranslator.SupportedType>
      extended by com.atlassian.crowd.plugin.rest.util.SearchRestrictionEntityTranslator.SupportedType
All Implemented Interfaces:
Serializable, Comparable<SearchRestrictionEntityTranslator.SupportedType>
Enclosing class:
SearchRestrictionEntityTranslator

public static enum SearchRestrictionEntityTranslator.SupportedType
extends Enum<SearchRestrictionEntityTranslator.SupportedType>

Represents a supported value type.


Enum Constant Summary
BOOLEAN
           
DATE
           
STRING
           
 
Method Summary
 Class getType()
           
static SearchRestrictionEntityTranslator.SupportedType of(Class type)
          Returns the SupportedType from the specified Class type.
static SearchRestrictionEntityTranslator.SupportedType of(String supportedType)
          Returns the SupportedType from the specified name.
static SearchRestrictionEntityTranslator.SupportedType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SearchRestrictionEntityTranslator.SupportedType[] 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

BOOLEAN

public static final SearchRestrictionEntityTranslator.SupportedType BOOLEAN

DATE

public static final SearchRestrictionEntityTranslator.SupportedType DATE

STRING

public static final SearchRestrictionEntityTranslator.SupportedType STRING
Method Detail

values

public static SearchRestrictionEntityTranslator.SupportedType[] 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 (SearchRestrictionEntityTranslator.SupportedType c : SearchRestrictionEntityTranslator.SupportedType.values())
    System.out.println(c);

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

valueOf

public static SearchRestrictionEntityTranslator.SupportedType 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

getType

public Class getType()

of

public static SearchRestrictionEntityTranslator.SupportedType of(String supportedType)
Returns the SupportedType from the specified name. The matching is case-insensitive.

Parameters:
supportedType - Name of the enum constant.
Returns:
SupportedType enum constant.

of

public static SearchRestrictionEntityTranslator.SupportedType of(Class type)
Returns the SupportedType from the specified Class type.

Parameters:
type - Class of the supported type
Returns:
SupportedType enum constant.


Copyright © 2013 Atlassian. All Rights Reserved.