Package eu.de4a.iem.model
Enum EDE4AQueryDefinitionType
- java.lang.Object
-
- java.lang.Enum<EDE4AQueryDefinitionType>
-
- eu.de4a.iem.model.EDE4AQueryDefinitionType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EDE4AQueryDefinitionType>
public enum EDE4AQueryDefinitionType extends Enum<EDE4AQueryDefinitionType> implements com.helger.commons.id.IHasID<String>
The RegRep Query "queryDefinition" value to use- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOCUMENT_BY_DISTRIBUTIONQuery for an unstructured document (like PDF or an image).DOCUMENT_BY_IDQuery for an unstructured document with an ID only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EDE4AQueryDefinitionTypegetFromIDOrNull(String sID)StringgetID()booleanisDataSujectOptional()static EDE4AQueryDefinitionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EDE4AQueryDefinitionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOCUMENT_BY_DISTRIBUTION
public static final EDE4AQueryDefinitionType DOCUMENT_BY_DISTRIBUTION
Query for an unstructured document (like PDF or an image).
-
DOCUMENT_BY_ID
public static final EDE4AQueryDefinitionType DOCUMENT_BY_ID
Query for an unstructured document with an ID only.- Since:
- 2.0.0 beta 3
-
-
Method Detail
-
values
public static EDE4AQueryDefinitionType[] 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 (EDE4AQueryDefinitionType c : EDE4AQueryDefinitionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EDE4AQueryDefinitionType 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
isDataSujectOptional
public boolean isDataSujectOptional()
- Returns:
trueif no data subject is required.- Since:
- 2.1.0
-
getFromIDOrNull
@Nullable public static EDE4AQueryDefinitionType getFromIDOrNull(@Nullable String sID)
-
-