Package org.n52.io.response
Class GeometryOutput
- java.lang.Object
-
- org.n52.io.response.SelfSerializedOutput
-
- org.n52.io.response.ParameterOutput
-
- org.n52.io.response.AbstractOutput
-
- org.n52.io.response.GeometryOutput
-
- All Implemented Interfaces:
Comparable<ParameterOutput>,GeoJSONFeature,RawFormats
public class GeometryOutput extends AbstractOutput implements GeoJSONFeature
TODO: JavaDoc
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLLECTION_PATHstatic StringGEOMETRY_TYPEstatic StringPLATFORMstatic StringPROPERTIES-
Fields inherited from class org.n52.io.response.AbstractOutput
service, SERVICE
-
Fields inherited from class org.n52.io.response.ParameterOutput
DOMAIN_ID, EXTRAS, HREF, HREF_BASE, ID, LABEL, RAWFORMATS
-
Fields inherited from interface org.n52.io.geojson.GeoJSONFeature
GEOMETRY
-
Fields inherited from interface org.n52.series.spi.srv.RawFormats
RAW_FORMAT
-
-
Constructor Summary
Constructors Constructor Description GeometryOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCollectionName()StringgetDomainId()Returns the domain id of the parameter, e.g.org.locationtech.jts.geom.GeometrygetGeometry()StringgetGeometryType()StringgetHrefBase()StringgetId()StringgetLabel()PlatformOutputgetPlatform()Map<String,Object>getProperties()ServiceOutputgetService()GeometryTypegetType()booleanisSetGeometry()voidsetGeometry(OptionalOutput<org.locationtech.jts.geom.Geometry> geometry)GeometryOutputsetGeometryType(OptionalOutput<GeometryType> geometryType)GeometryOutputsetPlatform(OptionalOutput<PlatformOutput> platform)-
Methods inherited from class org.n52.io.response.AbstractOutput
equals, hashCode, setService
-
Methods inherited from class org.n52.io.response.ParameterOutput
compareTo, defaultComparator, getExtras, getHref, getLicense, getRawFormats, idComparator, labelComparator, setDomainId, setExtras, setHref, setHrefBase, setId, setLabel, setLicense, setRawFormats, setValue
-
Methods inherited from class org.n52.io.response.SelfSerializedOutput
getIfSerialized, getIfSerializedCollection, getIfSerializedMap, getIfSet, getIfSetCollection, getIfSetMap, isSet, resolvesToNonNullValue
-
-
-
-
Field Detail
-
COLLECTION_PATH
public static final String COLLECTION_PATH
- See Also:
- Constant Field Values
-
PROPERTIES
public static final String PROPERTIES
- See Also:
- Constant Field Values
-
GEOMETRY_TYPE
public static final String GEOMETRY_TYPE
- See Also:
- Constant Field Values
-
PLATFORM
public static final String PLATFORM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCollectionName
public String getCollectionName()
- Overrides:
getCollectionNamein classParameterOutput
-
getId
public String getId()
- Specified by:
getIdin interfaceGeoJSONFeature- Overrides:
getIdin classParameterOutput
-
setGeometryType
public GeometryOutput setGeometryType(OptionalOutput<GeometryType> geometryType)
-
getLabel
public String getLabel()
- Overrides:
getLabelin classParameterOutput- Returns:
- the label. Returns null if label is not set.
-
getDomainId
public String getDomainId()
Description copied from class:ParameterOutputReturns the domain id of the parameter, e.g. a natural id (not arbitrarily generated) or the original id actually being used by proxied data sources.- Overrides:
getDomainIdin classParameterOutput- Returns:
- the domain id
-
getService
public ServiceOutput getService()
- Overrides:
getServicein classAbstractOutput
-
getPlatform
public PlatformOutput getPlatform()
-
setPlatform
public GeometryOutput setPlatform(OptionalOutput<PlatformOutput> platform)
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
- Specified by:
getGeometryin interfaceGeoJSONFeature
-
setGeometry
public void setGeometry(OptionalOutput<org.locationtech.jts.geom.Geometry> geometry)
- Specified by:
setGeometryin interfaceGeoJSONFeature
-
isSetGeometry
public boolean isSetGeometry()
- Specified by:
isSetGeometryin interfaceGeoJSONFeature
-
getHrefBase
public String getHrefBase()
- Overrides:
getHrefBasein classParameterOutput
-
getType
public GeometryType getType()
-
getGeometryType
public String getGeometryType()
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getPropertiesin interfaceGeoJSONFeature
-
-