Enum CompositeMetadata.MetadataType
- java.lang.Object
-
- java.lang.Enum<CompositeMetadata.MetadataType>
-
- org.ametys.plugins.repository.metadata.CompositeMetadata.MetadataType
-
- All Implemented Interfaces:
Serializable
,Comparable<CompositeMetadata.MetadataType>
- Enclosing interface:
- CompositeMetadata
public static enum CompositeMetadata.MetadataType extends Enum<CompositeMetadata.MetadataType>
Enumeration for metadata types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
Constant for type binaryBOOLEAN
Constant for type booleanCOMPOSITE
Constant for composite metadataDATE
Constant for type dateDOUBLE
Constant for type doubleLONG
Constant for type longMULTILINGUAL_STRING
Constant for type a multilingual stringOBJECT_COLLECTION
Constant for object collection metadataRICHTEXT
Constant for type richtextSTRING
Constant for type stringUSER
Constant for type user
-
Constructor Summary
Constructors Modifier Constructor Description private
MetadataType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompositeMetadata.MetadataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompositeMetadata.MetadataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPOSITE
public static final CompositeMetadata.MetadataType COMPOSITE
Constant for composite metadata
-
BINARY
public static final CompositeMetadata.MetadataType BINARY
Constant for type binary
-
RICHTEXT
public static final CompositeMetadata.MetadataType RICHTEXT
Constant for type richtext
-
STRING
public static final CompositeMetadata.MetadataType STRING
Constant for type string
-
MULTILINGUAL_STRING
public static final CompositeMetadata.MetadataType MULTILINGUAL_STRING
Constant for type a multilingual string
-
BOOLEAN
public static final CompositeMetadata.MetadataType BOOLEAN
Constant for type boolean
-
DATE
public static final CompositeMetadata.MetadataType DATE
Constant for type date
-
DOUBLE
public static final CompositeMetadata.MetadataType DOUBLE
Constant for type double
-
LONG
public static final CompositeMetadata.MetadataType LONG
Constant for type long
-
OBJECT_COLLECTION
public static final CompositeMetadata.MetadataType OBJECT_COLLECTION
Constant for object collection metadata
-
USER
public static final CompositeMetadata.MetadataType USER
Constant for type user
-
-
Constructor Detail
-
MetadataType
private MetadataType()
-
-
Method Detail
-
values
public static CompositeMetadata.MetadataType[] 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 (CompositeMetadata.MetadataType c : CompositeMetadata.MetadataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompositeMetadata.MetadataType 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 nameNullPointerException
- if the argument is null
-
-