public abstract class Article extends NounModifier
GrammaticalTerm.TermType| Modifier | Constructor and Description |
|---|---|
protected |
Article(ArticledDeclension declension,
String name,
LanguageArticle articleType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
defaultValidate(String name,
Set<? extends ArticleForm> requiredForms)
A "simple" method for validating required terms and validating that they exist.
|
abstract Map<? extends ArticleForm,String> |
getAllValues() |
LanguageArticle |
getArticleType() |
ArticledDeclension |
getDeclension()
Get the declension associated with the language.
|
String |
getDefaultValue() |
LanguagePosition |
getPosition() |
protected abstract String |
getString(ArticleForm form) |
String |
getString(LanguageNumber number,
LanguageGender gender,
LanguageStartsWith startsWith) |
String |
getString(ModifierForm form) |
protected GrammaticalTerm.TermType |
getTermType() |
protected abstract void |
setString(ArticleForm form,
String value)
Set the value of one of the forms of this adjective.
|
String |
toString() |
boolean |
validate(String name)
After all of the parsing has been done for a noun or modifier, "fix up"
any missing values needed.
|
getStartsWith, isCopiedFromDefaultgetNameprotected Article(ArticledDeclension declension, String name, LanguageArticle articleType)
public ArticledDeclension getDeclension()
GrammaticalTermgetDeclension in class GrammaticalTermpublic LanguageArticle getArticleType()
public abstract Map<? extends ArticleForm,String> getAllValues()
getAllValues in class NounModifierprotected abstract String getString(ArticleForm form)
public final String getString(ModifierForm form)
getString in class NounModifierform - the form to returnpublic String getDefaultValue()
getDefaultValue in class NounModifierpublic LanguagePosition getPosition()
getPosition in class NounModifierpublic String getString(LanguageNumber number, LanguageGender gender, LanguageStartsWith startsWith)
protected abstract void setString(ArticleForm form, String value)
form - the form to setvalue - the value to setpublic boolean validate(String name)
GrammaticalTermvalidate in class GrammaticalTermname - the name of the termpublic boolean defaultValidate(String name, Set<? extends ArticleForm> requiredForms)
requiredForms - the set of required forms for articles in this languageprotected GrammaticalTerm.TermType getTermType()
getTermType in class GrammaticalTermCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.