public final class TermAttributes extends Object implements Serializable
<value%gt; element.| Modifier and Type | Field and Description |
|---|---|
static String |
ARTICLE |
static String |
CASE |
static String |
GENDER |
static String |
NO |
static String |
PLURAL |
static String |
POSITION |
static String |
POSSESSIVE |
static String |
STARTS |
static String |
YES |
| Constructor and Description |
|---|
TermAttributes(LanguageDeclension declension,
Attributes atts) |
TermAttributes(LanguageDeclension declension,
Attributes atts,
boolean useDefaults)
Initialize the TermAttributes with the given for the given declension and the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AdjectiveForm |
getAdjectiveForm() |
AdjectiveForm |
getAdjectiveForm(LanguageDeclension decl,
Noun n,
NounForm nounForm,
GrammaticalTerm nextLexicalElement) |
NounForm |
getApproximateNounForm() |
LanguageArticle |
getArticle() |
ArticleForm |
getArticleForm() |
ArticleForm |
getArticleForm(LanguageDeclension decl,
Noun n,
NounForm nounForm,
GrammaticalTerm nextLexicalElement) |
LanguageCase |
getCase() |
NounForm |
getExactNounForm() |
LanguageGender |
getGender() |
LanguageNumber |
getNumber() |
LanguagePosition |
getPosition() |
LanguagePossessive |
getPossessive() |
LanguageStartsWith |
getStartsWith() |
int |
hashCode() |
boolean |
isPlural() |
String |
toString() |
public static final String PLURAL
public static final String CASE
public static final String ARTICLE
public static final String POSSESSIVE
public static final String POSITION
public static final String GENDER
public static final String STARTS
public static final String YES
public static final String NO
public TermAttributes(LanguageDeclension declension, Attributes atts)
public TermAttributes(LanguageDeclension declension, Attributes atts, boolean useDefaults)
declension - the declension being parsedatts - the attributes being parseduseDefaults - if attributes are missing, should this object contain null, or contain the default valuespublic boolean isPlural()
public LanguageNumber getNumber()
public LanguageStartsWith getStartsWith()
public LanguageGender getGender()
public LanguageCase getCase()
public LanguagePossessive getPossessive()
public LanguageArticle getArticle()
public LanguagePosition getPosition()
public NounForm getExactNounForm()
public AdjectiveForm getAdjectiveForm()
public ArticleForm getArticleForm()
public NounForm getApproximateNounForm()
public AdjectiveForm getAdjectiveForm(LanguageDeclension decl, Noun n, NounForm nounForm, GrammaticalTerm nextLexicalElement)
decl - the declension for the languagen - the noun associated with the given adjectivenounForm - the form of the noun associated with this adjectivenextLexicalElement - the next lexical element that should be used to determine starts withpublic ArticleForm getArticleForm(LanguageDeclension decl, Noun n, NounForm nounForm, GrammaticalTerm nextLexicalElement)
decl - the declension for the languagen - the noun associated with the given articlenounForm - the form of the noun associated with this articlenextLexicalElement - the next lexical element that should be used to determine starts withCopyright (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.