Package com.sodius.oslc.server.core.nls
Enum Class Article
- All Implemented Interfaces:
Serializable,Comparable<Article>,java.lang.constant.Constable
Defines an article that can be combined with a
Term in sentences.
This can for example render "the project" or "a project" depending on the chosen article.- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionObtains a subject like like"the project"in English or"le projet"in French.Obtains a subject like like"a project"in English or"un projet"in French.Obtains a subject like like"the project"in English or"du projet"in French. -
Method Summary
Modifier and TypeMethodDescriptioncapitalizedPlural(Term term) Returns the capitalized plural value for this article combined with the given term forpreferred locales.capitalizedSingular(Term term) Returns the capitalized singular value for this article combined with the given term forpreferred locales.Returns the plural value for this article combined with the given term forpreferred locales.Returns the singular value for this article combined with the given term forpreferred locales.static ArticleReturns the enum constant of this class with the specified name.static Article[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFINITE
Obtains a subject like like"the project"in English or"le projet"in French. -
INDEFINITE
Obtains a subject like like"a project"in English or"un projet"in French. -
PARTITIVE
Obtains a subject like like"the project"in English or"du projet"in French.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
singular
Returns the singular value for this article combined with the given term forpreferred locales.- Parameters:
term- the term to combine with this article- Returns:
- the singular value for preferred locales, e.g.
"the project"
-
capitalizedSingular
Returns the capitalized singular value for this article combined with the given term forpreferred locales.- Parameters:
term- the term to combine with this article- Returns:
- the capitalized singular value for preferred locales, e.g.
"The project"
-
plural
Returns the plural value for this article combined with the given term forpreferred locales.- Parameters:
term- the term to combine with this article- Returns:
- the plural value for preferred locales, e.g.
"the projects"
-
capitalizedPlural
Returns the capitalized plural value for this article combined with the given term forpreferred locales.- Parameters:
term- the term to combine with this article- Returns:
- the capitalized plural value for preferred locales, e.g.
"The projects"
-