Class NameValue

java.lang.Object
org.apache.sis.internal.jaxb.gco.NameValue
Direct Known Subclasses:
NameValue.Local, NameValue.Scoped

public class NameValue extends Object
A generalized type to be used for a term, keyword or name. The following schema fragment specifies the expected content contained within this class. NameValuesĀ are used for:
  • org.opengis.util.GenericName
  • LocalName
  • ScopedName
NameValues are not used for MemberName and TypeName. The two later use a quite different XML structure, with an aName element instead of a XML value.
Since:
0.5
Version:
0.5
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    The NameValue as a gco:LocalName.
    static final class 
    The NameValue as a gco:ScopedName.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) String
    Dictionary, thesaurus, classification scheme, authority, or pattern for the term, or null if none.
    (package private) String
    The term.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Invoked by reflection by JAXB on unmarshalling.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opengis.util.GenericName
    Returns the name from the current value.
    final void
    setName(org.opengis.util.GenericName name)
    Sets the value from the given name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      String value
      The term.
    • codeSpace

      String codeSpace
      Dictionary, thesaurus, classification scheme, authority, or pattern for the term, or null if none.
  • Constructor Details

    • NameValue

      public NameValue()
      Invoked by reflection by JAXB on unmarshalling.
  • Method Details

    • setName

      public final void setName(org.opengis.util.GenericName name)
      Sets the value from the given name.
      Parameters:
      name - the name to marshal.
    • getName

      public org.opengis.util.GenericName getName()
      Returns the name from the current value.
      Returns:
      the unmarshalled name.