use of org.hisp.dhis.common.BaseDimensionalItemObject in project dhis2-core by dhis2.
the class BaseDimensionalItemObjectMapper method map.
@Override
public DimensionResponse map(BaseIdentifiableObject dimension, String prefix) {
BaseDimensionalItemObject baseDimensionalItemObject = (BaseDimensionalItemObject) dimension;
DimensionResponse responseWithDimensionType = super.map(dimension, prefix).withDimensionType(baseDimensionalItemObject.getDimensionItemType().name());
if (dimension instanceof ValueTypedDimensionalItemObject) {
ValueTypedDimensionalItemObject valueTypedDimensionalItemObject = (ValueTypedDimensionalItemObject) dimension;
return responseWithDimensionType.withValueType(valueTypedDimensionalItemObject.getValueType().name());
}
return responseWithDimensionType;
}
Aggregations