Package mil.nga.geopackage.contents
Enum ContentsDataType
- java.lang.Object
-
- java.lang.Enum<ContentsDataType>
-
- mil.nga.geopackage.contents.ContentsDataType
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentsDataType>
public enum ContentsDataType extends Enum<ContentsDataType>
Contents data type enumeration- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTES
AttributesFEATURES
FeaturesTILES
Tiles
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentsDataType
fromCoreName(String name)
Get the contents data type from a core type namestatic ContentsDataType
fromName(String name)
Get the Data Type from the nameString
getName()
Get the namestatic boolean
isAttributesType(String name)
Determine if the contents data type name is an attributes typestatic boolean
isAttributesType(String name, boolean matchUnknown)
Determine if the contents data type name is an attributes typestatic boolean
isCoreType(String name)
Determine if the type name is a core contents data typestatic boolean
isFeaturesType(String name)
Determine if the contents data type name is a features typestatic boolean
isFeaturesType(String name, boolean matchUnknown)
Determine if the contents data type name is a features typestatic boolean
isTilesType(String name)
Determine if the contents data type name is a tiles typestatic boolean
isTilesType(String name, boolean matchUnknown)
Determine if the contents data type name is a tiles typestatic boolean
isType(String name)
Determine if the type name is a registered data typestatic boolean
isType(String name, ContentsDataType type)
Determine if the contents data type name is the typestatic boolean
isType(String name, ContentsDataType type, boolean matchUnknown)
Determine if the contents data type name is the typestatic void
setType(String name, ContentsDataType type)
Set the type for the contents data type nameString
toString()
static ContentsDataType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentsDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FEATURES
public static final ContentsDataType FEATURES
Features
-
TILES
public static final ContentsDataType TILES
Tiles
-
ATTRIBUTES
public static final ContentsDataType ATTRIBUTES
Attributes- Since:
- 1.2.1
-
-
Method Detail
-
values
public static ContentsDataType[] 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 (ContentsDataType c : ContentsDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentsDataType 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
-
getName
public String getName()
Get the name- Returns:
- name
-
toString
public String toString()
- Overrides:
toString
in classEnum<ContentsDataType>
-
fromName
public static ContentsDataType fromName(String name)
Get the Data Type from the name- Parameters:
name
- contents data type name- Returns:
- contents data type or null
-
isType
public static boolean isType(String name)
Determine if the type name is a registered data type- Parameters:
name
- type name- Returns:
- true if a core contents data type
- Since:
- 4.0.0
-
fromCoreName
public static ContentsDataType fromCoreName(String name)
Get the contents data type from a core type name- Parameters:
name
- type name- Returns:
- contents data type if core, null if not
- Since:
- 4.0.0
-
isCoreType
public static boolean isCoreType(String name)
Determine if the type name is a core contents data type- Parameters:
name
- type name- Returns:
- true if a core contents data type
- Since:
- 4.0.0
-
setType
public static void setType(String name, ContentsDataType type)
Set the type for the contents data type name- Parameters:
name
- contents data type nametype
- contents data type- Since:
- 4.0.0
-
isType
public static boolean isType(String name, ContentsDataType type)
Determine if the contents data type name is the type- Parameters:
name
- contents data type nametype
- comparison contents data type- Returns:
- true if matching core types
- Since:
- 4.0.0
-
isType
public static boolean isType(String name, ContentsDataType type, boolean matchUnknown)
Determine if the contents data type name is the type- Parameters:
name
- contents data type nametype
- comparison contents data typematchUnknown
- true to match unknown data types- Returns:
- true if matching core types or matched unknown
- Since:
- 4.0.0
-
isFeaturesType
public static boolean isFeaturesType(String name)
Determine if the contents data type name is a features type- Parameters:
name
- contents data type name- Returns:
- true if a features type
- Since:
- 4.0.0
-
isFeaturesType
public static boolean isFeaturesType(String name, boolean matchUnknown)
Determine if the contents data type name is a features type- Parameters:
name
- contents data type namematchUnknown
- true to match unknown data types- Returns:
- true if a features type or matched unknown
- Since:
- 4.0.0
-
isTilesType
public static boolean isTilesType(String name)
Determine if the contents data type name is a tiles type- Parameters:
name
- contents data type name- Returns:
- true if a tiles type
- Since:
- 4.0.0
-
isTilesType
public static boolean isTilesType(String name, boolean matchUnknown)
Determine if the contents data type name is a tiles type- Parameters:
name
- contents data type namematchUnknown
- true to match unknown data types- Returns:
- true if a tiles type or matched unknown
- Since:
- 4.0.0
-
isAttributesType
public static boolean isAttributesType(String name)
Determine if the contents data type name is an attributes type- Parameters:
name
- contents data type name- Returns:
- true if an attributes type
- Since:
- 4.0.0
-
isAttributesType
public static boolean isAttributesType(String name, boolean matchUnknown)
Determine if the contents data type name is an attributes type- Parameters:
name
- contents data type namematchUnknown
- true to match unknown data types- Returns:
- true if an attributes type or matched unknown
- Since:
- 4.0.0
-
-