public class GeocodeRepositoryElementType extends AbstractGeocodeElementType implements ComplexRepositoryElementType<Geocode>
__SEPARATOR
TYPE_ID_DATA_NAME
Constructor and Description |
---|
GeocodeRepositoryElementType() |
Modifier and Type | Method and Description |
---|---|
private Double |
_getDoubleValue(RepositoryData geocodeData,
String name) |
String |
getNodeType()
Retrieves the type of node used for this type
|
boolean |
isCompatible(RepositoryData parentData,
String name)
Checks if the value in the given repository data is compatible with the item type
|
Geocode |
readSingleValue(RepositoryData geocodeData)
Read the single value in the given repository data
|
void |
writeSingleValue(ModifiableRepositoryData parentData,
String name,
Geocode value)
Write the single value into the given repository data
This method is called by the
ComplexRepositoryElementType.write(ModifiableRepositoryData, String, Object) method, once for each value if the value is an array |
_singleValueToJSON, _singleValueToSAX, castValue, fromJSONForClient, isSimple, parseConfiguration, toString
getManagedClass, getManagedClassArray, isCompatible, valueToJSONForClient, valueToSAX
getId, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, removeValueBeforeWritingIt, write
castValue, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueToJSONForClient
getId, valueToSAX
setPluginInfo
public GeocodeRepositoryElementType()
public Geocode readSingleValue(RepositoryData geocodeData) throws BadItemTypeException
ComplexRepositoryElementType
readSingleValue
in interface ComplexRepositoryElementType<Geocode>
geocodeData
- repository data containing the valueBadItemTypeException
private Double _getDoubleValue(RepositoryData geocodeData, String name)
public void writeSingleValue(ModifiableRepositoryData parentData, String name, Geocode value)
ComplexRepositoryElementType
ComplexRepositoryElementType.write(ModifiableRepositoryData, String, Object)
method, once for each value if the value is an arraywriteSingleValue
in interface ComplexRepositoryElementType<Geocode>
parentData
- repository where to store the single value.name
- the name of the element to writevalue
- the single value to write. Can be null. In this case, an empty data must be createdpublic boolean isCompatible(RepositoryData parentData, String name) throws UnknownDataException
RepositoryModelItemType
isCompatible
in interface ComplexRepositoryElementType<Geocode>
isCompatible
in interface RepositoryModelItemType
parentData
- repository data containing the data to checkname
- the name of the data to checktrue
if the data type matches the current type, false
otherwiseUnknownDataException
- if there is no data in the parent repository data with this namepublic String getNodeType()
ComplexRepositoryElementType
getNodeType
in interface ComplexRepositoryElementType<Geocode>