use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.
the class RecordDefinitionSqlFilter method toMap.
@Override
public MapEx toMap() {
final MapEx map = new LinkedHashMapEx();
addTypeToMap(map, "sqlFilter");
map.put("query", this.query);
return map;
}
use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.
the class TextStyle method toMap.
@Override
public MapEx toMap() {
final MapEx map = new LinkedHashMapEx();
for (final String name : PROPERTY_NAMES) {
Object value = Property.get(this, name);
if (value instanceof Color) {
final Color color = (Color) value;
value = WebColors.newAlpha(color, 255);
}
boolean defaultEqual = false;
if (DEFAULT_VALUES.containsKey(name)) {
final Object defaultValue = DEFAULT_VALUES.get(name);
defaultEqual = DataType.equal(defaultValue, value);
}
if (!defaultEqual) {
addToMap(map, name, value);
}
}
return map;
}
use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.
the class GeometryFactory method toMap.
@Override
public MapEx toMap() {
final MapEx map = new LinkedHashMapEx();
addTypeToMap(map, "geometryFactory");
map.put("srid", getCoordinateSystemId());
map.put("axisCount", this.axisCount);
final double scaleX = getScaleX();
addToMap(map, "scaleX", scaleX, 0.0);
final double scaleY = getScaleY();
addToMap(map, "scaleY", scaleY, 0.0);
if (this.axisCount > 2) {
final double scaleZ = getScaleZ();
addToMap(map, "scaleZ", scaleZ, 0.0);
}
return map;
}
use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.
the class LasPointCloud method toMap.
@Override
public MapEx toMap() {
final MapEx map = new LinkedHashMapEx();
addToMap(map, "url", this.resource.getUri());
addToMap(map, "header", this.header);
return map;
}
use of com.revolsys.collection.map.LinkedHashMapEx in project com.revolsys.open by revolsys.
the class LasZipHeader method toMap.
@Override
public MapEx toMap() {
final MapEx map = new LinkedHashMapEx();
addToMap(map, "compressor", this.compressor);
addToMap(map, "coder", this.coder);
addToMap(map, "version", this.version);
addToMap(map, "versionRevision", this.versionRevision);
addToMap(map, "options", this.options);
addToMap(map, "chunkSize", this.chunkSize);
addToMap(map, "numberOfSpecialEvlrs", this.numberOfSpecialEvlrs);
addToMap(map, "offsetToSpecialEvlrs", this.offsetToSpecialEvlrs);
addToMap(map, "numItems", this.numItems);
addToMap(map, "types", this.types);
addToMap(map, "sizes", this.sizes);
addToMap(map, "versions", this.versions);
return map;
}
Aggregations