Class Identification

  • All Implemented Interfaces:
    Serializable, CharSequence

    public class Identification
    extends Object
    implements CharSequence, Serializable
    Author:
    Martin Desruisseaux, Daniele Romagnoli, GeoSolutions
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Identification​(String name)
      Creates an identification from the specified object name.
      Identification​(String name, String remarks, String alias, String identifier)
      Creates an identification from the specified object name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char charAt​(int index)
      Returns the name character at the specified index.
      boolean equals​(Object object)
      Compares the specified object with this identification for equality.
      String getAlias()  
      String getIdentifier()  
      String getName()  
      String getRemarks()  
      int hashCode()
      Returns a hash value for this identification.
      int length()
      Returns the name length.
      CharSequence subSequence​(int start, int end)
      Returns a subsequence of this identification.
      String toString()  
      • Methods inherited from class Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface CharSequence

        chars, codePoints
    • Constructor Detail

      • Identification

        public Identification​(String name,
                              String remarks,
                              String alias,
                              String identifier)
        Creates an identification from the specified object name.
      • Identification

        public Identification​(String name)
        Creates an identification from the specified object name.
    • Method Detail

      • length

        public int length()
        Returns the name length.
        Specified by:
        length in interface CharSequence
      • charAt

        public char charAt​(int index)
        Returns the name character at the specified index.
        Specified by:
        charAt in interface CharSequence
      • subSequence

        public CharSequence subSequence​(int start,
                                        int end)
        Returns a subsequence of this identification. The new identification will contains a substring of the name, but the #type will be unchanged.
        Specified by:
        subSequence in interface CharSequence
      • hashCode

        public int hashCode()
        Returns a hash value for this identification.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object object)
        Compares the specified object with this identification for equality.
        Overrides:
        equals in class Object
      • getName

        public String getName()
      • getRemarks

        public String getRemarks()
      • getAlias

        public String getAlias()
      • getIdentifier

        public String getIdentifier()
      • toString

        public String toString()
        Specified by:
        toString in interface CharSequence
        Overrides:
        toString in class Object