public enum FeatureIdentificationMethod extends java.lang.Enum<FeatureIdentificationMethod>
Enum Constant and Description |
---|
COORDINATES
Use coordinates (block, metaGridX, metaGridY, row, column)
|
FEATURE_ID
Use the external feature ID.
|
NONE
None, because the array design is a file-only platform.
|
POSITION
Use position number.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
caseInsensitive
If the feature identifiers may be affect by case sensitivity at the database
level or not.
|
private java.lang.String |
displayValue
Returned by the toString method.
|
private int |
value
The integer value of this method.
|
private static java.util.Map<java.lang.Integer,FeatureIdentificationMethod> |
valueMapping
Maps an integer to a location.
|
Modifier and Type | Method and Description |
---|---|
boolean |
caseInsensitive()
Return TRUE if this identification method can be case insensitive.
|
static FeatureIdentificationMethod |
fromValue(int value)
Get the
FeatureIdentificationMethod object when you know the integer code. |
(package private) abstract java.lang.Object |
getIdentifier(FeatureData feature)
Get the feature identifier for this method.
|
(package private) abstract java.lang.Object |
getIdentifier(RawData raw,
java.lang.String externalFeatureId)
Get a feature identifier using this method
|
int |
getValue()
Get the integer value that is used when storing the feature identification method
to the database.
|
java.lang.String |
toString() |
static FeatureIdentificationMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FeatureIdentificationMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FeatureIdentificationMethod NONE
public static final FeatureIdentificationMethod COORDINATES
public static final FeatureIdentificationMethod POSITION
public static final FeatureIdentificationMethod FEATURE_ID
private static final java.util.Map<java.lang.Integer,FeatureIdentificationMethod> valueMapping
private final int value
private final java.lang.String displayValue
private final boolean caseInsensitive
public static FeatureIdentificationMethod[] values()
for (FeatureIdentificationMethod c : FeatureIdentificationMethod.values()) System.out.println(c);
public static FeatureIdentificationMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<FeatureIdentificationMethod>
public static FeatureIdentificationMethod fromValue(int value)
FeatureIdentificationMethod
object when you know the integer code.value
- The integer value.public int getValue()
public boolean caseInsensitive()
DbEngine.caseInsensitiveComparison()
abstract java.lang.Object getIdentifier(FeatureData feature)
feature
- The feature to get the identifier forabstract java.lang.Object getIdentifier(RawData raw, java.lang.String externalFeatureId)
raw
- The raw data to pick coordinates/position fromexternalFeatureId
- The external feature ID, null can be used if not
needed by this particular identification method