Search in sources :

Example 1 with JSONValueParser

use of org.openforis.collect.datacleansing.json.JSONValueParser in project collect by openforis.

the class DataQueryResultItem method extractAttributeValue.

public Value extractAttributeValue() {
    AttributeDefinition def = getAttributeDefinition();
    Value val = new JSONValueParser().parseValue(def, value);
    return val;
}
Also used : JSONValueParser(org.openforis.collect.datacleansing.json.JSONValueParser) Value(org.openforis.idm.model.Value) AttributeDefinition(org.openforis.idm.metamodel.AttributeDefinition)

Aggregations

JSONValueParser (org.openforis.collect.datacleansing.json.JSONValueParser)1 AttributeDefinition (org.openforis.idm.metamodel.AttributeDefinition)1 Value (org.openforis.idm.model.Value)1