Class AbstractI18NMetadata

java.lang.Object
org.n52.iceland.i18n.metadata.AbstractI18NMetadata
Direct Known Subclasses:
I18NFeatureMetadata, I18NObservablePropertyMetadata, I18NOfferingMetadata, I18NProcedureMetadata

public abstract class AbstractI18NMetadata extends Object
  • Constructor Details

    • AbstractI18NMetadata

      public AbstractI18NMetadata(String id, MultilingualString name, MultilingualString description)
      constructor
      Parameters:
      id - The identifier of this object
      name - The multilingual name of this object
      description - the multilingual description of this object
    • AbstractI18NMetadata

      public AbstractI18NMetadata(String id)
      constructor
      Parameters:
      id - The identifier of this object
  • Method Details

    • getIdentifier

      public String getIdentifier()
      The the identifier of this object
      Returns:
      The object identifier
    • getName

      public MultilingualString getName()
      Returns:
      the multilingual name of this object
    • getDescription

      public MultilingualString getDescription()
      Returns:
      the multilingual description of this object
    • toStringHelper

      protected com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
      Returns:
      a MoreObjects.ToStringHelper filled with the state of this class
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

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

      public Set<Locale> getLocales()
      Returns:
      a unmodifiable set of all Locales present in this object.
    • newIfNull

      protected static MultilingualString newIfNull(MultilingualString string)
      Creates a new MultilingualString if the supplied string is null.
      Parameters:
      string - the string
      Returns:
      either string or a new MultilingualString