Package com.contentful.java.cda
Class CDALocale
- java.lang.Object
-
- com.contentful.java.cda.CDAResource
-
- com.contentful.java.cda.CDALocale
-
- All Implemented Interfaces:
java.io.Serializable
public class CDALocale extends CDAResource
Represents a single locale.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CDALocale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringcode()java.lang.StringfallbackLocaleCode()booleanisDefaultLocale()java.lang.Stringname()java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cda.CDAResource
attrs, getAttribute, id, type
-
-
-
-
Method Detail
-
code
public java.lang.String code()
- Returns:
- code of this locale. ('en-US' or similar).
-
name
public java.lang.String name()
- Returns:
- human readable name of this locale.
-
fallbackLocaleCode
public java.lang.String fallbackLocaleCode()
- Returns:
- the code of a locale to be used for falling back.
-
isDefaultLocale
public boolean isDefaultLocale()
- Returns:
- true if this is the default locale.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCDAResource- Returns:
- a human readable string, representing the object.
-
-