Package org.n52.iceland.i18n.metadata
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 Summary
Constructors Constructor Description AbstractI18NMetadata(String id)constructorAbstractI18NMetadata(String id, MultilingualString name, MultilingualString description)constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MultilingualStringgetDescription()StringgetIdentifier()The the identifier of this objectSet<Locale>getLocales()MultilingualStringgetName()inthashCode()protected static MultilingualStringnewIfNull(MultilingualString string)Creates a newMultilingualStringif the supplied string isnull.StringtoString()protected com.google.common.base.MoreObjects.ToStringHelpertoStringHelper()
-
-
-
Constructor Detail
-
AbstractI18NMetadata
public AbstractI18NMetadata(String id, MultilingualString name, MultilingualString description)
constructor- Parameters:
id- The identifier of this objectname- The multilingual name of this objectdescription- the multilingual description of this object
-
AbstractI18NMetadata
public AbstractI18NMetadata(String id)
constructor- Parameters:
id- The identifier of this object
-
-
Method Detail
-
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.ToStringHelperfilled with the state of this class
-
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 newMultilingualStringif the supplied string isnull.- Parameters:
string- the string- Returns:
- either
stringor a newMultilingualString
-
-