public class SamplingFeature extends AbstractFeature
Modifier and Type | Field and Description |
---|---|
private boolean |
encode
Should this feature be encoded in response
|
private String |
featureType
Type of this feature
|
private com.vividsolutions.jts.geom.Geometry |
geometry
Feature geometry
|
private List<NamedValue<?>> |
parameters
Parameters
|
private Collection<SamplingFeatureComplex> |
relatedSamplingFeatures
Related sampling features
|
private List<AbstractFeature> |
sampledFeatures
Sampled features, domain feature
|
private static long |
serialVersionUID
serial number
|
private String |
url
URL to feature representation, e.g. to a WFS
|
private String |
xmlDescription
XML document representing this feature
|
Constructor and Description |
---|
SamplingFeature(CodeWithAuthority featureIdentifier)
constructor
|
SamplingFeature(CodeWithAuthority featureIdentifier,
String gmlId)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAllRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)
Add related sampling features
|
void |
addParameter(NamedValue<?> namedValue)
Add parameter
|
void |
addRelatedSamplingFeature(SamplingFeatureComplex relatedSamplingFeature)
Add related sampling feature
|
String |
getFeatureType()
Get feature type
|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Get feature geometry
|
List<NamedValue<?>> |
getParameters()
Get parameters
|
List<SamplingFeatureComplex> |
getRelatedSamplingFeatures()
Get related sampling features
|
List<AbstractFeature> |
getSampledFeatures()
Get sampled feaures
|
String |
getUrl()
Get URL
|
String |
getXmlDescription()
Get XML representation of this feature
|
boolean |
isEncode()
Check whether feature should be encoded
|
boolean |
isSetFeatureType()
Check whether feature type is set
|
boolean |
isSetGeometry()
Check whether geometry is set
|
boolean |
isSetParameter()
Check whether parameters are set
|
boolean |
isSetRelatedSamplingFeatures()
Check whether related sampling features are set
|
boolean |
isSetSampledFeatures()
Check whether sampled features are set
|
boolean |
isSetUrl()
Check whether URL is set
|
boolean |
isSetXmlDescription()
Check whether XML representation of this feature is set
|
void |
setEncode(boolean encode)
Set indicator if feature should be encoded
|
void |
setFeatureType(String featureType)
Set feature type
|
void |
setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Set feature geometry, checks whether srid is valid
|
void |
setParameters(List<NamedValue<?>> parameters)
Add parameters
|
void |
setRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)
Set related sampling features
|
void |
setSampledFeatures(List<AbstractFeature> sampledFeatures)
Set sampled features
|
void |
setUrl(String url)
Set URL
|
void |
setXmlDescription(String xmlDescription)
Set XML representation of this feature
|
String |
toString() |
addName, addName, equals, getDescription, getFirstName, getGmlId, getIdentifier, getName, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetIdentifier, isSetNames, setDescription, setGmlId, setIdentifier, setIdentifier, setName
private static final long serialVersionUID
private String xmlDescription
private com.vividsolutions.jts.geom.Geometry geometry
private String featureType
private String url
private final List<AbstractFeature> sampledFeatures
private final List<NamedValue<?>> parameters
private boolean encode
private Collection<SamplingFeatureComplex> relatedSamplingFeatures
public SamplingFeature(CodeWithAuthority featureIdentifier)
featureIdentifier
- identifier of sampling featurepublic SamplingFeature(CodeWithAuthority featureIdentifier, String gmlId)
featureIdentifier
- identifier of sampling featuregmlId
- GML of this featurepublic String getXmlDescription()
public boolean isSetXmlDescription()
true
, if XML representation of this feature is setpublic void setXmlDescription(String xmlDescription)
xmlDescription
- XML representation of this feature to setpublic com.vividsolutions.jts.geom.Geometry getGeometry()
public void setGeometry(com.vividsolutions.jts.geom.Geometry geometry) throws InvalidSridException
geometry
- Geometry to setInvalidSridException
- If srid is invalidpublic boolean isSetGeometry()
true
, if geometry is setpublic String getFeatureType()
public void setFeatureType(String featureType)
featureType
- Type of this featurepublic boolean isSetFeatureType()
true
, if feature type is setpublic String getUrl()
public void setUrl(String url)
url
- URL to setpublic boolean isSetUrl()
true
, if URL is setpublic void setSampledFeatures(List<AbstractFeature> sampledFeatures)
sampledFeatures
- Sampled fearure listpublic List<AbstractFeature> getSampledFeatures()
public boolean isSetSampledFeatures()
true
, if sampled features are setpublic void addParameter(NamedValue<?> namedValue)
namedValue
- Parameter ro addpublic void setParameters(List<NamedValue<?>> parameters)
parameters
- Parameters to addpublic List<NamedValue<?>> getParameters()
public boolean isSetParameter()
true
, if parameters are setpublic boolean isEncode()
true
, if feature should be encodedpublic void setEncode(boolean encode)
encode
- Encoding indicatorpublic void addRelatedSamplingFeature(SamplingFeatureComplex relatedSamplingFeature)
relatedSamplingFeature
- Related sampling feature to addpublic void addAllRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)
relatedSamplingFeatures
- Related sampling features to addpublic void setRelatedSamplingFeatures(Collection<SamplingFeatureComplex> relatedSamplingFeatures)
relatedSamplingFeatures
- Related sampling features to setpublic List<SamplingFeatureComplex> getRelatedSamplingFeatures()
public boolean isSetRelatedSamplingFeatures()
true
, if related sampling features are setCopyright © 2012-2014 52north.org. All Rights Reserved.