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
ConstructorsConstructorDescriptionAbstractFeature(String identifier) AbstractFeature(CodeWithAuthority featureIdentifier) constructorAbstractFeature(CodeWithAuthority featureIdentifier, String gmlId) constructor -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(FeatureOfInterestVisitor<X> visitor) voidcopyTo(AbstractFeature copyOf) getXml()booleanbooleanbooleanisSetXml()setDefaultElementEncoding(String defaultEncoding) voidMethods 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 Details
-
AbstractFeature
-
AbstractFeature
constructor- Parameters:
featureIdentifier- Feature identifier
-
AbstractFeature
constructor- Parameters:
featureIdentifier- Feature identifiergmlId- GML id
-
-
Method Details
-
copyTo
-
setDefaultElementEncoding
- Specified by:
setDefaultElementEncodingin interfaceHasDefaultEncoding<AbstractFeature>
-
getDefaultElementEncoding
- Specified by:
getDefaultElementEncodingin interfaceHasDefaultEncoding<AbstractFeature>
-
isSetDefaultElementEncoding
public boolean isSetDefaultElementEncoding()- Specified by:
isSetDefaultElementEncodingin interfaceHasDefaultEncoding<AbstractFeature>
-
getXml
- Returns:
- the xml
-
setXml
- Parameters:
xml- the xml to set
-
isSetXml
public boolean isSetXml() -
isEncoded
public boolean isEncoded() -
wasEncoded
public void wasEncoded() -
accept
- Throws:
OwsExceptionReport
-