Package org.n52.shetland.ogc.gml
Class AbstractGML
- java.lang.Object
-
- org.n52.shetland.ogc.gml.AbstractGML
-
- Direct Known Subclasses:
AbstractFeature,AbstractGeometry,AnyDomainLink,DefinitionBase,DocumentCitation,Hierarchy,NetworkFacility
public abstract class AbstractGML extends Object
Class represents an AbstractGML object- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractGML()AbstractGML(String identifier)AbstractGML(CodeWithAuthority identifier)AbstractGML(CodeWithAuthority identifier, String gmlId)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMetaDataProperty(List<AbstractMetaData> metaDataProperty)voidaddMetaDataProperty(AbstractMetaData metaDataProperty)AbstractGMLaddName(String name)Add a feature nameAbstractGMLaddName(String name, URI codespace)Add a feature nameAbstractGMLaddName(CodeType name)Adds the name to the name listvoidcopyTo(AbstractGML copyOf)Copies values of thisAbstractGMLto the committedAbstractGMLbooleanequals(Object o)StringgetDescription()Get feature descriptionCodeTypegetFirstName()Get first feature name or null if feature has no namesStringgetGmlId()Get GML idStringgetHumanReadableIdentifier()Get the string human readable identifier of this abstract featureCodeWithAuthoritygetHumanReadableIdentifierCodeWithAuthority()GetCodeWithAuthorityhuman readable identifier of this abstract featureStringgetIdentifier()Get the string identifier of this abstract featureCodeWithAuthoritygetIdentifierCodeWithAuthority()GetCodeWithAuthorityidentifier of this abstract featureList<AbstractMetaData>getMetaDataProperty()List<CodeType>getName()Get feature namesStringgetOriginalIdentifier()Get the original string identifier of this abstract featureCodeWithAuthoritygetOriginalIdentifierCodeWithAuthority()GetCodeWithAuthorityoriginal identifier of this abstract featureinthashCode()booleanisReferenced()Check whether feature is still contained in XML document by sign#.booleanisSetDescription()Check whether feature has a descriptionbooleanisSetGmlID()Check whether GML id is setbooleanisSetHumanReadableIdentifier()booleanisSetIdentifier()booleanisSetMetaDataProperty()booleanisSetName()Check whether feature has a namesbooleanisSetOriginalIdentifier()AbstractGMLsetDescription(String description)Set feature descriptionvoidsetGmlId(String gmlId)Set GML idAbstractGMLsetHumanReadableIdentifier(String humanReadableIdentifier)Set human readable identifierAbstractGMLsetHumanReadableIdentifier(CodeWithAuthority humanReadableIdentifier)Set human readable identifierAbstractGMLsetHumanReadableIdentifierAsIdentifier()Set the human readable identifier as identifier and saves the identifier as original identifierAbstractGMLsetIdentifier(String identifier)Set identifierAbstractGMLsetIdentifier(CodeWithAuthority identifier)Set identifiervoidsetMetaDataProperty(List<AbstractMetaData> metaDataProperty)AbstractGMLsetName(List<CodeType> name)Add feature names, clears the name listAbstractGMLsetName(CodeType name)Set the name, clears the name list
-
-
-
Constructor Detail
-
AbstractGML
public AbstractGML()
-
AbstractGML
public AbstractGML(String identifier)
-
AbstractGML
public AbstractGML(CodeWithAuthority identifier)
-
AbstractGML
public AbstractGML(CodeWithAuthority identifier, String gmlId)
constructor- Parameters:
identifier- identifiergmlId- GML id
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Get the string identifier of this abstract feature- Returns:
- Identifier of this abstract feature
-
getIdentifierCodeWithAuthority
public CodeWithAuthority getIdentifierCodeWithAuthority()
GetCodeWithAuthorityidentifier of this abstract feature- Returns:
- Returns the identifier of this abstract feature .
-
setIdentifier
public AbstractGML setIdentifier(CodeWithAuthority identifier)
Set identifier- Parameters:
identifier- the identifier to set- Returns:
- this
-
setIdentifier
public AbstractGML setIdentifier(String identifier)
Set identifier- Parameters:
identifier- the identifier to set- Returns:
- this
-
isSetIdentifier
public boolean isSetIdentifier()
- Returns:
true, if identifier is set and value is not an empty string, elsefalse
-
getHumanReadableIdentifier
public String getHumanReadableIdentifier()
Get the string human readable identifier of this abstract feature- Returns:
- Human readable identifier of this abstract feature
-
getHumanReadableIdentifierCodeWithAuthority
public CodeWithAuthority getHumanReadableIdentifierCodeWithAuthority()
GetCodeWithAuthorityhuman readable identifier of this abstract feature- Returns:
- Returns the human readable identifier of this abstract feature .
-
setHumanReadableIdentifier
public AbstractGML setHumanReadableIdentifier(CodeWithAuthority humanReadableIdentifier)
Set human readable identifier- Parameters:
humanReadableIdentifier- the human readable identifier to set- Returns:
- this
-
setHumanReadableIdentifier
public AbstractGML setHumanReadableIdentifier(String humanReadableIdentifier)
Set human readable identifier- Parameters:
humanReadableIdentifier- the human readable identifier to set- Returns:
- this
-
isSetHumanReadableIdentifier
public boolean isSetHumanReadableIdentifier()
- Returns:
- true, if human readable identifier is set and value is
not an empty string,
else false
-
setHumanReadableIdentifierAsIdentifier
public AbstractGML setHumanReadableIdentifierAsIdentifier()
Set the human readable identifier as identifier and saves the identifier as original identifier- Returns:
- this
-
isSetOriginalIdentifier
public boolean isSetOriginalIdentifier()
- Returns:
true, if the original identifier is set
-
getOriginalIdentifier
public String getOriginalIdentifier()
Get the original string identifier of this abstract feature- Returns:
- Original identifier of this abstract feature
-
getOriginalIdentifierCodeWithAuthority
public CodeWithAuthority getOriginalIdentifierCodeWithAuthority()
GetCodeWithAuthorityoriginal identifier of this abstract feature- Returns:
- Returns the original identifier of this abstract feature .
-
setName
public AbstractGML setName(List<CodeType> name)
Add feature names, clears the name list- Parameters:
name- Feature names to ad- Returns:
this
-
setName
public AbstractGML setName(CodeType name)
Set the name, clears the name list- Parameters:
name- Name to set- Returns:
this
-
addName
public AbstractGML addName(CodeType name)
Adds the name to the name list- Parameters:
name- Name to add- Returns:
this
-
addName
public AbstractGML addName(String name)
Add a feature name- Parameters:
name- Feature name to add- Returns:
this
-
addName
public AbstractGML addName(String name, URI codespace) throws URISyntaxException
Add a feature name- Parameters:
name- Feature name to addcodespace- Codespace of the feature name- Returns:
this- Throws:
URISyntaxException- if the code space is not a valid URI
-
isSetName
public boolean isSetName()
Check whether feature has a names- Returns:
trueif feature has names
-
getFirstName
public CodeType getFirstName()
Get first feature name or null if feature has no names- Returns:
- First feature name or null if feature has no names
-
getDescription
public String getDescription()
Get feature description- Returns:
- Feature description
-
setDescription
public AbstractGML setDescription(String description)
Set feature description- Parameters:
description- Feature description to set- Returns:
- this
-
isSetDescription
public boolean isSetDescription()
Check whether feature has a description- Returns:
trueif feature a description
-
getGmlId
public String getGmlId()
Get GML id- Returns:
- GML id
-
setGmlId
public void setGmlId(String gmlId)
Set GML id- Parameters:
gmlId- GML id to set
-
isSetGmlID
public boolean isSetGmlID()
Check whether GML id is set- Returns:
trueif GML id is set
-
isReferenced
public boolean isReferenced()
Check whether feature is still contained in XML document by sign#.- Returns:
trueif feature is still contained in XML document
-
getMetaDataProperty
public List<AbstractMetaData> getMetaDataProperty()
- Returns:
- the metaDataProperty
-
setMetaDataProperty
public void setMetaDataProperty(List<AbstractMetaData> metaDataProperty)
- Parameters:
metaDataProperty- the metaDataProperty to set
-
addMetaDataProperty
public void addMetaDataProperty(List<AbstractMetaData> metaDataProperty)
- Parameters:
metaDataProperty- the metaDataProperty to add
-
addMetaDataProperty
public void addMetaDataProperty(AbstractMetaData metaDataProperty)
- Parameters:
metaDataProperty- the metaDataProperty to add
-
isSetMetaDataProperty
public boolean isSetMetaDataProperty()
- Returns:
true, if metaData property is set, elsefalse
-
copyTo
public void copyTo(AbstractGML copyOf)
Copies values of thisAbstractGMLto the committedAbstractGML- Parameters:
copyOf-AbstractGMLto set values
-
-