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 Details

    • AbstractGML

      public AbstractGML()
    • AbstractGML

      public AbstractGML(String identifier)
    • AbstractGML

      public AbstractGML(CodeWithAuthority identifier)
    • AbstractGML

      public AbstractGML(CodeWithAuthority identifier, String gmlId)
      constructor
      Parameters:
      identifier - identifier
      gmlId - GML id
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getIdentifier

      public String getIdentifier()
      Get the string identifier of this abstract feature
      Returns:
      Identifier of this abstract feature
    • getIdentifierCodeWithAuthority

      public CodeWithAuthority getIdentifierCodeWithAuthority()
      Get CodeWithAuthority identifier 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, else false
    • 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()
      Get CodeWithAuthority human 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()
      Get CodeWithAuthority original identifier of this abstract feature
      Returns:
      Returns the original identifier of this abstract feature .
    • getName

      public List<CodeType> getName()
      Get feature names
      Returns:
      Feature names
    • setName

      public AbstractGML setName(Collection<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 add
      codespace - 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:
      true if 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:
      true if 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:
      true if GML id is set
    • isReferenced

      public boolean isReferenced()
      Check whether feature is still contained in XML document by sign #.
      Returns:
      true if feature is still contained in XML document
    • getMetaDataProperty

      public List<AbstractMetaData> getMetaDataProperty()
      Returns:
      the metaDataProperty
    • setMetaDataProperty

      public AbstractGML setMetaDataProperty(List<AbstractMetaData> metaDataProperty)
      Parameters:
      metaDataProperty - the metaDataProperty to set
      Returns:
      this
    • addMetaDataProperty

      public AbstractGML addMetaDataProperty(List<AbstractMetaData> metaDataProperty)
      Parameters:
      metaDataProperty - the metaDataProperty to add
      Returns:
      this
    • addMetaDataProperty

      public AbstractGML addMetaDataProperty(AbstractMetaData metaDataProperty)
      Parameters:
      metaDataProperty - the metaDataProperty to add
      Returns:
      this
    • isSetMetaDataProperty

      public boolean isSetMetaDataProperty()
      Returns:
      true, if metaData property is set, else false
    • copyTo

      public void copyTo(AbstractGML copyOf)
      Copies values of this AbstractGML to the committed AbstractGML
      Parameters:
      copyOf - AbstractGML to set values