|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FeatureIdentificationMethod> net.sf.basedb.core.FeatureIdentificationMethod
public enum FeatureIdentificationMethod
This enumeration defines constants that are used to specify which method to use for identifying features on an array design.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
private boolean |
caseInsensitive
If the feature identifiers may be affect by case sensitivity at the database level or not. |
private String |
displayValue
Returned by the toString method. |
private int |
value
The integer value of this method. |
private static Map<Integer,FeatureIdentificationMethod> |
valueMapping
Maps an integer to a location. |
Method Summary | |
---|---|
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 Object |
getIdentifier(FeatureData feature)
Get the feature identifier for this method. |
(package private) abstract Object |
getIdentifier(RawData raw,
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. |
String |
toString()
|
static FeatureIdentificationMethod |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FeatureIdentificationMethod NONE
public static final FeatureIdentificationMethod COORDINATES
public static final FeatureIdentificationMethod POSITION
public static final FeatureIdentificationMethod FEATURE_ID
Field Detail |
---|
private static final Map<Integer,FeatureIdentificationMethod> valueMapping
private final int value
private final String displayValue
private final boolean caseInsensitive
Method Detail |
---|
public static FeatureIdentificationMethod[] values()
for (FeatureIdentificationMethod c : FeatureIdentificationMethod.values()) System.out.println(c);
public static FeatureIdentificationMethod valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class 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 Object getIdentifier(FeatureData feature)
feature
- The feature to get the identifier forabstract Object getIdentifier(RawData raw, 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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |