|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PropertyValueType> com.esri.gpt.catalog.discovery.PropertyValueType
public enum PropertyValueType
The enumeration of value types for a property.
DOUBLE: a double precision number GEOMETRY: the bounding envelope for a document LONG: a long integer STRING: a string TIMESTAMP: a timestamp
Enum Constant Summary | |
---|---|
DOUBLE
|
|
GEOMETRY
|
|
LONG
|
|
STRING
|
|
TIMESTAMP
|
Method Summary | |
---|---|
Object |
evaluate(String value)
Converts a String value into an Object of the associated value type. |
Object |
evaluate(String value,
boolean isLowerBoundary,
boolean isUpperBoundary)
Converts a String value into an Object of the associated value type. |
static PropertyValueType |
from(String value)
Makes a property value type from a supplied string value. |
static PropertyValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PropertyValueType[] |
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 PropertyValueType DOUBLE
public static final PropertyValueType GEOMETRY
public static final PropertyValueType LONG
public static final PropertyValueType STRING
public static final PropertyValueType TIMESTAMP
Method Detail |
---|
public static PropertyValueType[] values()
for (PropertyValueType c : PropertyValueType.values()) System.out.println(c);
public static PropertyValueType 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 Object evaluate(String value) throws NumberFormatException
value
- the value to evaluate
NumberFormatException
- if the supplied value cannot be converted
(applies to types DOUBLE,INTEGER,LONG)
IllegalArgumentException
- if the supplied value cannot be converted
(applies to types GEOMETRY,TIMESTAMP)public Object evaluate(String value, boolean isLowerBoundary, boolean isUpperBoundary) throws NumberFormatException, IllegalArgumentException
value
- the value to evaluateisLowerBoundary
- true if the value is the lower boundary of a rangeisUpperBoundary
- true if the value is the upper boundary of a range
NumberFormatException
- if the supplied value cannot be converted
(applies to types DOUBLE,INTEGER,LONG)
IllegalArgumentException
- if the supplied value cannot be converted
(applies to types GEOMETRY,TIMESTAMP)public static PropertyValueType from(String value) throws IllegalArgumentException
value
- the value
IllegalArgumentException
- if the value was invalid
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |