public final class Feature extends NativeObjectContainer
Modifier and Type | Method and Description |
---|---|
double |
getNumberProperty(Key key)
Returns a number value at specific property.
|
double |
getNumberProperty(String key)
Returns a number value at specific property.
|
List<Key> |
getPropertiesKeys()
Returns the list of properties names of the properties instance.
|
ObjectType |
getPropertyType(Key key)
Returns the java script type of a property.
|
ObjectType |
getPropertyType(String key)
Returns the java script type of a property.
|
double |
getPropertyValue(Key key,
double defaultValue)
Returns a number value at specific property.
|
String |
getPropertyValue(Key key,
String defaultValue)
Returns a string value at specific property.
|
double |
getPropertyValue(String key,
double defaultValue)
Returns a number value at specific property.
|
String |
getPropertyValue(String key,
String defaultValue)
Returns a string value at specific property.
|
String |
getStringProperty(Key key)
Returns a string value at specific property.
|
String |
getStringProperty(String key)
Returns a string value at specific property.
|
String |
getType()
Returns the type of the feature.
|
boolean |
hasGeometry()
Returns
true if the geometry property is set. |
boolean |
hasProperty(Key key)
Returns
true if the properties contain an element at specific property. |
boolean |
hasProperty(String key)
Returns
true if the properties contain an element at specific property. |
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public boolean hasGeometry()
true
if the geometry property is set.true
if the geometry property is setpublic String getType()
public boolean hasProperty(Key key)
true
if the properties contain an element at specific property.key
- key of the property of java script object.true
if the properties contains an element at specific propertypublic boolean hasProperty(String key)
true
if the properties contain an element at specific property.key
- key of the property of java script object.true
if the properties contains an element at specific propertypublic List<Key> getPropertiesKeys()
public ObjectType getPropertyType(Key key)
key
- name of the java script propertypublic ObjectType getPropertyType(String key)
key
- name of the java script propertypublic double getPropertyValue(Key key, double defaultValue)
key
- key of the property of properties.defaultValue
- default value if the property is missingpublic double getPropertyValue(String key, double defaultValue)
key
- key of the property of properties.defaultValue
- default value if the property is missingpublic double getNumberProperty(Key key)
key
- key of the property of properties.public double getNumberProperty(String key)
key
- key of the property of properties.public String getPropertyValue(Key key, String defaultValue)
key
- key of the propertydefaultValue
- default value if the property is missingpublic String getPropertyValue(String key, String defaultValue)
key
- key of the propertydefaultValue
- default value if the property is missingpublic String getStringProperty(Key key)
key
- key of the property