Package com.contentful.java.cma
Enum Constants.CMAFieldType
- java.lang.Object
-
- java.lang.Enum<Constants.CMAFieldType>
-
- com.contentful.java.cma.Constants.CMAFieldType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Constants.CMAFieldType>
- Enclosing class:
- Constants
public static enum Constants.CMAFieldType extends java.lang.Enum<Constants.CMAFieldType>
- See Also:
- guide
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Constants.CMAFieldTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Constants.CMAFieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Array
public static final Constants.CMAFieldType Array
-
Boolean
public static final Constants.CMAFieldType Boolean
-
Date
public static final Constants.CMAFieldType Date
-
Integer
public static final Constants.CMAFieldType Integer
-
Link
public static final Constants.CMAFieldType Link
-
ResourceLink
public static final Constants.CMAFieldType ResourceLink
-
Location
public static final Constants.CMAFieldType Location
-
Number
public static final Constants.CMAFieldType Number
-
Object
public static final Constants.CMAFieldType Object
-
Symbol
public static final Constants.CMAFieldType Symbol
-
Text
public static final Constants.CMAFieldType Text
-
RichText
public static final Constants.CMAFieldType RichText
-
-
Method Detail
-
values
public static Constants.CMAFieldType[] 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 (Constants.CMAFieldType c : Constants.CMAFieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.CMAFieldType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-