Enum DataColumnConstraintType
- java.lang.Object
-
- java.lang.Enum<DataColumnConstraintType>
-
- mil.nga.geopackage.extension.schema.constraints.DataColumnConstraintType
-
- All Implemented Interfaces:
Serializable
,Comparable<DataColumnConstraintType>
public enum DataColumnConstraintType extends Enum<DataColumnConstraintType>
Enumeration of Data Column Constraint Types- Author:
- osbornb
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataColumnConstraintType
fromValue(String value)
Get the type from the valueString
getValue()
Get the valuestatic DataColumnConstraintType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataColumnConstraintType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RANGE
public static final DataColumnConstraintType RANGE
Value range
-
ENUM
public static final DataColumnConstraintType ENUM
Enumerated values
-
GLOB
public static final DataColumnConstraintType GLOB
Pattern matching
-
-
Method Detail
-
values
public static DataColumnConstraintType[] 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 (DataColumnConstraintType c : DataColumnConstraintType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataColumnConstraintType 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
-
getValue
public String getValue()
Get the value- Returns:
- value
-
fromValue
public static DataColumnConstraintType fromValue(String value)
Get the type from the value- Parameters:
value
- value- Returns:
- data column constraint type
-
-