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
ConstructorsConstructorDescriptionAbstractSamplingFeature(CodeWithAuthority featureIdentifier) constructorAbstractSamplingFeature(CodeWithAuthority featureIdentifier, String gmlId) constructor -
Method Summary
Modifier and TypeMethodDescriptionaddAllRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures) Add related sampling featuresaddParameter(NamedValue<?> namedValue) Add parameteraddRelatedSamplingFeature(SamplingFeatureComplex relatedSamplingFeature) Add related sampling featureGet feature typeorg.locationtech.jts.geom.GeometryGet feature geometrygetGmlId()Get GML idList<NamedValue<?>> Get parametersGet related sampling featuresGet sampled feauresgetUrl()Get URLbooleanisEncode()Check whether feature should be encodedbooleanCheck whether GML id is setbooleanCheck whether parameters are setbooleanCheck whether related sampling features are setbooleanCheck whether sampled features are setsetEncode(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 validsetParameters(Collection<NamedValue<?>> parameters) Add parameterssetRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures) Set related sampling featuressetSampledFeatures(List<AbstractFeature> sampledFeatures) Set sampled featuresvoidSet URLtoString()Methods inherited from class org.n52.shetland.ogc.gml.AbstractFeature
accept, copyTo, getDefaultElementEncoding, getXml, isEncoded, isSetDefaultElementEncoding, isSetXml, setDefaultElementEncoding, setXml, wasEncodedMethods 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, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.n52.shetland.ogc.gml.FeatureWith.FeatureWithFeatureType
isSetFeatureTypeMethods inherited from interface org.n52.shetland.ogc.gml.FeatureWith.FeatureWithGeometry
isSetGeometryMethods inherited from interface org.n52.shetland.ogc.gml.FeatureWith.FeatureWithUrl
isSetUrl
-
Constructor Details
-
AbstractSamplingFeature
constructor- Parameters:
featureIdentifier- identifier of sampling feature
-
AbstractSamplingFeature
constructor- Parameters:
featureIdentifier- identifier of sampling featuregmlId- GML of this feature
-
-
Method Details
-
isSetGmlID
public boolean isSetGmlID()Description copied from class:AbstractGMLCheck whether GML id is set- Overrides:
isSetGmlIDin classAbstractGML- Returns:
trueif GML id is set
-
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
Description 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
Description copied from interface:FeatureWith.FeatureWithFeatureTypeGet feature type- Specified by:
getFeatureTypein interfaceFeatureWith.FeatureWithFeatureType- Returns:
- Type of this feature
-
setFeatureType
Description copied from interface:FeatureWith.FeatureWithFeatureTypeSet feature type- Specified by:
setFeatureTypein interfaceFeatureWith.FeatureWithFeatureType- Parameters:
featureType- Type of this feature
-
getUrl
Description copied from interface:FeatureWith.FeatureWithUrlGet URL- Specified by:
getUrlin interfaceFeatureWith.FeatureWithUrl- Returns:
- URL
-
setUrl
Description copied from interface:FeatureWith.FeatureWithUrlSet URL- Specified by:
setUrlin interfaceFeatureWith.FeatureWithUrl- Parameters:
url- URL to set
-
setSampledFeatures
Set sampled features- Parameters:
sampledFeatures- Sampled fearure list- Returns:
- this
-
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
Add parameter- Parameters:
namedValue- Parameter ro add- Returns:
- this
-
setParameters
Add parameters- Parameters:
parameters- Parameters to add- Returns:
- this
-
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
Set indicator if feature should be encoded- Parameters:
encode- Encoding indicator- Returns:
- this
-
addRelatedSamplingFeature
public AbstractSamplingFeature addRelatedSamplingFeature(SamplingFeatureComplex relatedSamplingFeature) Add related sampling feature- Parameters:
relatedSamplingFeature- Related sampling feature to add- Returns:
- this
-
addAllRelatedSamplingFeatures
public AbstractSamplingFeature addAllRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures) Add related sampling features- Parameters:
relatedSamplingFeatures- Related sampling features to add- Returns:
- this
-
setRelatedSamplingFeatures
public AbstractSamplingFeature setRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures) Set related sampling features- Parameters:
relatedSamplingFeatures- Related sampling features to set- Returns:
- this
-
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
-
toString
-