public abstract class TermRefTag extends Object implements Serializable
param element.| Modifier and Type | Field and Description |
|---|---|
static char |
SEP |
| Constructor and Description |
|---|
TermRefTag(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected abstract boolean |
equalsValue(TermRefTag obj)
Abstract method to force subclasses to correctly implement equals
|
abstract GrammaticalForm |
getForm(LanguageDictionary dictionary,
boolean overrideForms) |
abstract String |
getKey() |
String |
getName() |
protected abstract GrammaticalTerm.TermType |
getType() |
int |
hashCode() |
boolean |
isAdjective() |
boolean |
isArticle() |
boolean |
isDynamic() |
boolean |
isModifier() |
boolean |
isNoun() |
String |
toString() |
abstract String |
toString(LanguageDictionary dictionary,
boolean overrideForms,
Renameable... entities)
Format this reference into a user-readable format based on the given dictionary
and dynamic entities
|
public static final char SEP
public TermRefTag(String name)
public String getName()
public abstract String getKey()
protected abstract boolean equalsValue(TermRefTag obj)
obj - the other object being compared.public boolean isNoun()
public boolean isArticle()
public boolean isAdjective()
public boolean isModifier()
protected abstract GrammaticalTerm.TermType getType()
public abstract GrammaticalForm getForm(LanguageDictionary dictionary, boolean overrideForms)
public boolean isDynamic()
public abstract String toString(LanguageDictionary dictionary, boolean overrideForms, Renameable... entities)
dictionary - the dictionary of language particles.entities - the set of dynamic renameable entitiesoverrideForms - if the form contained inside this term ref might be a different language than the dictionary provided.
In this case, the implementation must try to find the closest term to the one stored with this term ref.Copyright (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.