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
Class represents an AbstractGML object
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractGML(String identifier) AbstractGML(CodeWithAuthority identifier) AbstractGML(CodeWithAuthority identifier, String gmlId) constructor -
Method Summary
Modifier and TypeMethodDescriptionaddMetaDataProperty(List<AbstractMetaData> metaDataProperty) addMetaDataProperty(AbstractMetaData metaDataProperty) Add a feature nameAdd a feature nameAdds the name to the name listvoidcopyTo(AbstractGML copyOf) Copies values of thisAbstractGMLto the committedAbstractGMLbooleanGet feature descriptionGet first feature name or null if feature has no namesgetGmlId()Get GML idGet the string human readable identifier of this abstract featureGetCodeWithAuthorityhuman readable identifier of this abstract featureGet the string identifier of this abstract featureGetCodeWithAuthorityidentifier of this abstract featuregetName()Get feature namesGet the original string identifier of this abstract featureGetCodeWithAuthorityoriginal identifier of this abstract featureinthashCode()booleanCheck whether feature is still contained in XML document by sign#.booleanCheck whether feature has a descriptionbooleanCheck whether GML id is setbooleanbooleanbooleanbooleanCheck whether feature has a namesbooleansetDescription(String description) Set feature descriptionvoidSet GML idsetHumanReadableIdentifier(String humanReadableIdentifier) Set human readable identifiersetHumanReadableIdentifier(CodeWithAuthority humanReadableIdentifier) Set human readable identifierSet the human readable identifier as identifier and saves the identifier as original identifiersetIdentifier(String identifier) Set identifiersetIdentifier(CodeWithAuthority identifier) Set identifiersetMetaDataProperty(List<AbstractMetaData> metaDataProperty) setName(Collection<CodeType> name) Add feature names, clears the name listSet the name, clears the name list
-
Constructor Details
-
AbstractGML
public AbstractGML() -
AbstractGML
-
AbstractGML
-
AbstractGML
constructor- Parameters:
identifier- identifiergmlId- GML id
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getIdentifier
Get the string identifier of this abstract feature- Returns:
- Identifier of this abstract feature
-
getIdentifierCodeWithAuthority
GetCodeWithAuthorityidentifier of this abstract feature- Returns:
- Returns the identifier of this abstract feature .
-
setIdentifier
Set identifier- Parameters:
identifier- the identifier to set- Returns:
- this
-
setIdentifier
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
Get the string human readable identifier of this abstract feature- Returns:
- Human readable identifier of this abstract feature
-
getHumanReadableIdentifierCodeWithAuthority
GetCodeWithAuthorityhuman readable identifier of this abstract feature- Returns:
- Returns the human readable identifier of this abstract feature .
-
setHumanReadableIdentifier
Set human readable identifier- Parameters:
humanReadableIdentifier- the human readable identifier to set- Returns:
- this
-
setHumanReadableIdentifier
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
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
Get the original string identifier of this abstract feature- Returns:
- Original identifier of this abstract feature
-
getOriginalIdentifierCodeWithAuthority
GetCodeWithAuthorityoriginal identifier of this abstract feature- Returns:
- Returns the original identifier of this abstract feature .
-
getName
Get feature names- Returns:
- Feature names
-
setName
Add feature names, clears the name list- Parameters:
name- Feature names to ad- Returns:
this
-
setName
Set the name, clears the name list- Parameters:
name- Name to set- Returns:
this
-
addName
Adds the name to the name list- Parameters:
name- Name to add- Returns:
this
-
addName
Add a feature name- Parameters:
name- Feature name to add- Returns:
this
-
addName
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
Get first feature name or null if feature has no names- Returns:
- First feature name or null if feature has no names
-
getDescription
Get feature description- Returns:
- Feature description
-
setDescription
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
Get GML id- Returns:
- GML id
-
setGmlId
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
- Returns:
- the metaDataProperty
-
setMetaDataProperty
- Parameters:
metaDataProperty- the metaDataProperty to set- Returns:
- this
-
addMetaDataProperty
- Parameters:
metaDataProperty- the metaDataProperty to add- Returns:
- this
-
addMetaDataProperty
- Parameters:
metaDataProperty- the metaDataProperty to add- Returns:
- this
-
isSetMetaDataProperty
public boolean isSetMetaDataProperty()- Returns:
true, if metaData property is set, elsefalse
-
copyTo
Copies values of thisAbstractGMLto the committedAbstractGML- Parameters:
copyOf-AbstractGMLto set values
-