|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FeatureClassCodeHelper>
com.gisgraphy.helper.FeatureClassCodeHelper
public enum FeatureClassCodeHelper
Provides some useful methods
Enum Constant Summary | |
---|---|
P_PPL
The city feature Code |
|
P_PPLA
|
|
P_PPLA2
|
|
P_PPLA3
|
|
P_PPLA4
|
|
P_PPLC
|
|
P_PPLG
|
|
P_PPLL
|
|
P_PPLQ
|
|
P_PPLR
|
|
P_PPLS
|
|
P_PPLW
|
|
P_STLMT
|
Method Summary | |
---|---|
static boolean |
is_Adm(java.lang.String featureClass,
java.lang.String featureCode)
Whether the feature code and the feature class are for Adm object
It will return true if featureClass equals 'A' and featureCode is
ADM1,ADM2,ADM3,ADM4. it is case sensitive and will retrun false for
A.ADM.ADMD are not considered as ADM |
static boolean |
isCity(java.lang.String featureClass,
java.lang.String featureCode)
Whether the feature code and the feature class are for City
objects. |
static boolean |
isCountry(java.lang.String featureClass,
java.lang.String featureCode)
Whether the feature code and the feature class are for Country
object. |
static FeatureClassCodeHelper |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FeatureClassCodeHelper[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FeatureClassCodeHelper P_PPL
public static final FeatureClassCodeHelper P_PPLA
public static final FeatureClassCodeHelper P_PPLA2
public static final FeatureClassCodeHelper P_PPLA3
public static final FeatureClassCodeHelper P_PPLA4
public static final FeatureClassCodeHelper P_PPLC
public static final FeatureClassCodeHelper P_PPLG
public static final FeatureClassCodeHelper P_PPLL
public static final FeatureClassCodeHelper P_PPLR
public static final FeatureClassCodeHelper P_PPLS
public static final FeatureClassCodeHelper P_STLMT
public static final FeatureClassCodeHelper P_PPLQ
public static final FeatureClassCodeHelper P_PPLW
Method Detail |
---|
public static FeatureClassCodeHelper[] values()
for (FeatureClassCodeHelper c : FeatureClassCodeHelper.values()) System.out.println(c);
public static FeatureClassCodeHelper 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 name
java.lang.NullPointerException
- if the argument is nullpublic static boolean isCity(java.lang.String featureClass, java.lang.String featureCode)
City
objects. This method is case sensitive : if you provide lower case
feature Class or feature code it will return false.
featureClass
- The feature class of the gisFeaturefeatureCode
- The feature code of the gisFeature
public static boolean isCountry(java.lang.String featureClass, java.lang.String featureCode)
Country
object. This method is case sensitive : if you provide lower case feature
Class or Feature Code it will return false.
featureClass
- The feature class to testfeatureCode
- The feature code to test
Country
Objectpublic static boolean is_Adm(java.lang.String featureClass, java.lang.String featureCode)
Adm
object
It will return true if featureClass equals 'A' and featureCode is
ADM1,ADM2,ADM3,ADM4. it is case sensitive and will retrun false for
A.ADM.ADMD are not considered as ADM
featureClass
- The feature class to testfeatureCode
- The feature code to test
Adm
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |