Class AbstractSamplingFeature
- java.lang.Object
-
- org.n52.shetland.ogc.gml.AbstractGML
-
- org.n52.shetland.ogc.gml.AbstractFeature
-
- org.n52.shetland.ogc.om.features.samplingFeatures.AbstractSamplingFeature
-
- All Implemented Interfaces:
FeatureWith.FeatureWithEncode,FeatureWith.FeatureWithFeatureType,FeatureWith.FeatureWithGeometry,FeatureWith.FeatureWithUrl,HasDefaultEncoding<AbstractFeature>
- Direct Known Subclasses:
AbstractMonitoringFeature,SamplingFeature
public abstract class AbstractSamplingFeature extends AbstractFeature implements FeatureWith.FeatureWithGeometry, FeatureWith.FeatureWithFeatureType, FeatureWith.FeatureWithUrl, FeatureWith.FeatureWithEncode
-
-
Constructor Summary
Constructors Constructor Description AbstractSamplingFeature(CodeWithAuthority featureIdentifier)constructorAbstractSamplingFeature(CodeWithAuthority featureIdentifier, String gmlId)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)Add related sampling featuresvoidaddParameter(NamedValue<?> namedValue)Add parametervoidaddRelatedSamplingFeature(SamplingFeatureComplex relatedSamplingFeature)Add related sampling featureStringgetFeatureType()Get feature typeorg.locationtech.jts.geom.GeometrygetGeometry()Get feature geometryStringgetGmlId()Get GML idList<NamedValue<?>>getParameters()Get parametersList<SamplingFeatureComplex>getRelatedSamplingFeatures()Get related sampling featuresList<AbstractFeature>getSampledFeatures()Get sampled feauresStringgetUrl()Get URLbooleanisEncode()Check whether feature should be encodedbooleanisSetGmlID()Check whether GML id is setbooleanisSetParameter()Check whether parameters are setbooleanisSetRelatedSamplingFeatures()Check whether related sampling features are setbooleanisSetSampledFeatures()Check whether sampled features are setvoidsetEncode(boolean encode)Set indicator if feature should be encodedvoidsetFeatureType(String featureType)Set feature typevoidsetGeometry(org.locationtech.jts.geom.Geometry geometry)Set feature geometry, checks whether srid is validvoidsetParameters(Collection<NamedValue<?>> parameters)Add parametersvoidsetRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)Set related sampling featuresvoidsetSampledFeatures(List<AbstractFeature> sampledFeatures)Set sampled featuresvoidsetUrl(String url)Set URLStringtoString()-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncoded
-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, equals, getDescription, getFirstName, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, hashCode, isReferenced, isSetDescription, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.gml.FeatureWith.FeatureWithFeatureType
isSetFeatureType
-
Methods inherited from interface org.n52.shetland.ogc.gml.FeatureWith.FeatureWithGeometry
isSetGeometry
-
Methods inherited from interface org.n52.shetland.ogc.gml.FeatureWith.FeatureWithUrl
isSetUrl
-
-
-
-
Constructor Detail
-
AbstractSamplingFeature
public AbstractSamplingFeature(CodeWithAuthority featureIdentifier)
constructor- Parameters:
featureIdentifier- identifier of sampling feature
-
AbstractSamplingFeature
public AbstractSamplingFeature(CodeWithAuthority featureIdentifier, String gmlId)
constructor- Parameters:
featureIdentifier- identifier of sampling featuregmlId- GML of this feature
-
-
Method Detail
-
isSetGmlID
public boolean isSetGmlID()
Description copied from class:AbstractGMLCheck whether GML id is set- Overrides:
isSetGmlIDin classAbstractGML- Returns:
trueif GML id is set
-
getGmlId
public String getGmlId()
Description copied from class:AbstractGMLGet GML id- Overrides:
getGmlIdin classAbstractGML- Returns:
- GML id
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
Description copied from interface:FeatureWith.FeatureWithGeometryGet feature geometry- Specified by:
getGeometryin interfaceFeatureWith.FeatureWithGeometry- Returns:
- Feature geometry
-
setGeometry
public void setGeometry(org.locationtech.jts.geom.Geometry geometry) throws InvalidSridExceptionDescription copied from interface:FeatureWith.FeatureWithGeometrySet feature geometry, checks whether srid is valid- Specified by:
setGeometryin interfaceFeatureWith.FeatureWithGeometry- Parameters:
geometry- Geometry to set- Throws:
InvalidSridException
-
getFeatureType
public String getFeatureType()
Description copied from interface:FeatureWith.FeatureWithFeatureTypeGet feature type- Specified by:
getFeatureTypein interfaceFeatureWith.FeatureWithFeatureType- Returns:
- Type of this feature
-
setFeatureType
public void setFeatureType(String featureType)
Description copied from interface:FeatureWith.FeatureWithFeatureTypeSet feature type- Specified by:
setFeatureTypein interfaceFeatureWith.FeatureWithFeatureType- Parameters:
featureType- Type of this feature
-
getUrl
public String getUrl()
Description copied from interface:FeatureWith.FeatureWithUrlGet URL- Specified by:
getUrlin interfaceFeatureWith.FeatureWithUrl- Returns:
- URL
-
setUrl
public void setUrl(String url)
Description copied from interface:FeatureWith.FeatureWithUrlSet URL- Specified by:
setUrlin interfaceFeatureWith.FeatureWithUrl- Parameters:
url- URL to set
-
setSampledFeatures
public void setSampledFeatures(List<AbstractFeature> sampledFeatures)
Set sampled features- Parameters:
sampledFeatures- Sampled fearure list
-
getSampledFeatures
public List<AbstractFeature> getSampledFeatures()
Get sampled feaures- Returns:
- Sampled feature list
-
isSetSampledFeatures
public boolean isSetSampledFeatures()
Check whether sampled features are set- Returns:
true, if sampled features are set
-
addParameter
public void addParameter(NamedValue<?> namedValue)
Add parameter- Parameters:
namedValue- Parameter ro add
-
setParameters
public void setParameters(Collection<NamedValue<?>> parameters)
Add parameters- Parameters:
parameters- Parameters to add
-
getParameters
public List<NamedValue<?>> getParameters()
Get parameters- Returns:
- Parameter list
-
isSetParameter
public boolean isSetParameter()
Description copied from interface:FeatureWith.FeatureWithEncodeCheck whether parameters are set- Specified by:
isSetParameterin interfaceFeatureWith.FeatureWithEncode- Returns:
true, if parameters are set
-
isEncode
public boolean isEncode()
Description copied from interface:FeatureWith.FeatureWithEncodeCheck whether feature should be encoded- Specified by:
isEncodein interfaceFeatureWith.FeatureWithEncode- Returns:
true, if feature should be encoded
-
setEncode
public void setEncode(boolean encode)
Set indicator if feature should be encoded- Parameters:
encode- Encoding indicator
-
addRelatedSamplingFeature
public void addRelatedSamplingFeature(SamplingFeatureComplex relatedSamplingFeature)
Add related sampling feature- Parameters:
relatedSamplingFeature- Related sampling feature to add
-
addAllRelatedSamplingFeatures
public void addAllRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)
Add related sampling features- Parameters:
relatedSamplingFeatures- Related sampling features to add
-
setRelatedSamplingFeatures
public void setRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)
Set related sampling features- Parameters:
relatedSamplingFeatures- Related sampling features to set
-
getRelatedSamplingFeatures
public List<SamplingFeatureComplex> getRelatedSamplingFeatures()
Get related sampling features- Returns:
- Related sampling features
-
isSetRelatedSamplingFeatures
public boolean isSetRelatedSamplingFeatures()
Check whether related sampling features are set- Returns:
true, if related sampling features are set
-
-