Package org.n52.iceland.i18n.metadata
Class AbstractI18NMetadata
java.lang.Object
org.n52.iceland.i18n.metadata.AbstractI18NMetadata
- Direct Known Subclasses:
I18NFeatureMetadata,I18NObservablePropertyMetadata,I18NOfferingMetadata,I18NProcedureMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionconstructorAbstractI18NMetadata(String id, MultilingualString name, MultilingualString description) constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe the identifier of this objectgetName()inthashCode()protected static MultilingualStringnewIfNull(MultilingualString string) Creates a newMultilingualStringif the supplied string isnull.toString()protected com.google.common.base.MoreObjects.ToStringHelper
-
Constructor Details
-
AbstractI18NMetadata
constructor- Parameters:
id- The identifier of this objectname- The multilingual name of this objectdescription- the multilingual description of this object
-
AbstractI18NMetadata
constructor- Parameters:
id- The identifier of this object
-
-
Method Details
-
getIdentifier
The the identifier of this object- Returns:
- The object identifier
-
getName
- Returns:
- the multilingual name of this object
-
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
-
toString
-
hashCode
public int hashCode() -
equals
-
getLocales
- Returns:
- a unmodifiable set of all
Locales present in this object.
-
newIfNull
Creates a newMultilingualStringif the supplied string isnull.- Parameters:
string- the string- Returns:
- either
stringor a newMultilingualString
-