Package mil.nga.geopackage.dgiwg
Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- mil.nga.geopackage.dgiwg.DataType
-
- All Implemented Interfaces:
Serializable,Comparable<DataType>
public enum DataType extends Enum<DataType>
DGIWG (Defence Geospatial Information Working Group) Data Types- Since:
- 6.6.0
- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FEATURES_2DFeatures 2DFEATURES_3DFeatures 3DTILES_2DTiles 2DTILES_3DTiles 3D
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentsDataTypegetDataType()Get the contents data typestatic Set<DataType>getDataTypes(ContentsDataType type)Get the data types for the contents data typeintgetDimension()Get the dimensionbytegetZ()Get a geometry columns z value, 0 for prohibited and 1 for mandatorybooleanis2D()Is a 2D data typebooleanis3D()Is a 3D data typebooleanisFeatures()Is a features data typebooleanisTiles()Is a tiles data typestatic DataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static DataType[] 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 (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType 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
-
getDataType
public ContentsDataType getDataType()
Get the contents data type- Returns:
- contents data type
-
getDimension
public int getDimension()
Get the dimension- Returns:
- dimension
-
isFeatures
public boolean isFeatures()
Is a features data type- Returns:
- true if features
-
isTiles
public boolean isTiles()
Is a tiles data type- Returns:
- true if tiles
-
is2D
public boolean is2D()
Is a 2D data type- Returns:
- true if 2D
-
is3D
public boolean is3D()
Is a 3D data type- Returns:
- true if 3D
-
getZ
public byte getZ()
Get a geometry columns z value, 0 for prohibited and 1 for mandatory- Returns:
- z value
-
getDataTypes
public static Set<DataType> getDataTypes(ContentsDataType type)
Get the data types for the contents data type- Parameters:
type- contents data type- Returns:
- data types
-
-