Enum RelationType
- java.lang.Object
-
- java.lang.Enum<RelationType>
-
- mil.nga.geopackage.extension.related.RelationType
-
- All Implemented Interfaces:
Serializable
,Comparable<RelationType>
public enum RelationType extends Enum<RelationType>
Spec supported User-Defined Related Data Tables- Since:
- 3.0.1
- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTES
Relate features or attributes with attributesFEATURES
Link features with other featuresMEDIA
Relate features or attributes to multimedia files such as pictures and videosSIMPLE_ATTRIBUTES
Relate sets of tabular text or numeric dataTILES
Relate features or attributes with tiles
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelationType
fromName(String name)
Get the Relation Type from the nameString
getDataType()
Get the contents data typeString
getName()
Get the namestatic RelationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static RelationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FEATURES
public static final RelationType FEATURES
Link features with other features
-
SIMPLE_ATTRIBUTES
public static final RelationType SIMPLE_ATTRIBUTES
Relate sets of tabular text or numeric data
-
MEDIA
public static final RelationType MEDIA
Relate features or attributes to multimedia files such as pictures and videos
-
ATTRIBUTES
public static final RelationType ATTRIBUTES
Relate features or attributes with attributes- Since:
- 3.2.0
-
TILES
public static final RelationType TILES
Relate features or attributes with tiles- Since:
- 3.2.0
-
-
Method Detail
-
values
public static RelationType[] 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 (RelationType c : RelationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelationType 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
-
getDataType
public String getDataType()
Get the contents data type- Returns:
- contents data type
- Since:
- 3.1.0
-
fromName
public static RelationType fromName(String name)
Get the Relation Type from the name- Parameters:
name
- name- Returns:
- relation type
-
-