Package org.n52.shetland.ogc.gml
Class AbstractFeature
- java.lang.Object
-
- org.n52.shetland.ogc.gml.AbstractGML
-
- org.n52.shetland.ogc.gml.AbstractFeature
-
- All Implemented Interfaces:
HasDefaultEncoding<AbstractFeature>
- Direct Known Subclasses:
AbstractEReportingHeader,AbstractMonitoringObject,AbstractObservationProcess,AbstractPhenomenon,AbstractSamplingFeature,AbstractSensorML,AbstractSWES,EfAbstractMonitoringObject,EnvironmentalMonitoringActivity,FeatureCollection,GmlAbstractGeometry,OmObservation,OmObservationConstellation,OperationalActivityPeriod,Process,ProfileValue,SosOffering,SosProcedureDescription,TrajectoryValue
public abstract class AbstractFeature extends AbstractGML implements HasDefaultEncoding<AbstractFeature>
Abstract class for encoding the feature of interest. Necessary because different feature types should be supported. The database or another feature source (e.g. WFS) should provide information about the application schema.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractFeature(String identifier)AbstractFeature(CodeWithAuthority featureIdentifier)constructorAbstractFeature(CodeWithAuthority featureIdentifier, String gmlId)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xaccept(FeatureOfInterestVisitor<X> visitor)voidcopyTo(AbstractFeature copyOf)StringgetDefaultElementEncoding()StringgetXml()booleanisEncoded()booleanisSetDefaultElementEncoding()booleanisSetXml()AbstractFeaturesetDefaultElementEncoding(String defaultEncoding)AbstractFeaturesetXml(String xml)voidwasEncoded()-
Methods inherited from class org.n52.shetland.ogc.gml.AbstractGML
addMetaDataProperty, addMetaDataProperty, addName, addName, addName, copyTo, equals, getDescription, getFirstName, getGmlId, getHumanReadableIdentifier, getHumanReadableIdentifierCodeWithAuthority, getIdentifier, getIdentifierCodeWithAuthority, getMetaDataProperty, getName, getOriginalIdentifier, getOriginalIdentifierCodeWithAuthority, hashCode, isReferenced, isSetDescription, isSetGmlID, isSetHumanReadableIdentifier, isSetIdentifier, isSetMetaDataProperty, isSetName, isSetOriginalIdentifier, setDescription, setGmlId, setHumanReadableIdentifier, setHumanReadableIdentifier, setHumanReadableIdentifierAsIdentifier, setIdentifier, setIdentifier, setMetaDataProperty, setName, setName
-
-
-
-
Constructor Detail
-
AbstractFeature
public AbstractFeature(String identifier)
-
AbstractFeature
public AbstractFeature(CodeWithAuthority featureIdentifier)
constructor- Parameters:
featureIdentifier- Feature identifier
-
AbstractFeature
public AbstractFeature(CodeWithAuthority featureIdentifier, String gmlId)
constructor- Parameters:
featureIdentifier- Feature identifiergmlId- GML id
-
-
Method Detail
-
copyTo
public void copyTo(AbstractFeature copyOf)
-
setDefaultElementEncoding
public AbstractFeature setDefaultElementEncoding(String defaultEncoding)
- Specified by:
setDefaultElementEncodingin interfaceHasDefaultEncoding<AbstractFeature>
-
getDefaultElementEncoding
public String getDefaultElementEncoding()
- Specified by:
getDefaultElementEncodingin interfaceHasDefaultEncoding<AbstractFeature>
-
isSetDefaultElementEncoding
public boolean isSetDefaultElementEncoding()
- Specified by:
isSetDefaultElementEncodingin interfaceHasDefaultEncoding<AbstractFeature>
-
getXml
public String getXml()
- Returns:
- the xml
-
setXml
public AbstractFeature setXml(String xml)
- Parameters:
xml- the xml to set
-
isSetXml
public boolean isSetXml()
-
isEncoded
public boolean isEncoded()
-
wasEncoded
public void wasEncoded()
-
accept
public <X> X accept(FeatureOfInterestVisitor<X> visitor) throws OwsExceptionReport
- Throws:
OwsExceptionReport
-
-