public class Helpers
extends java.lang.Object
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
declaredActionTendencyVocabulary(org.w3c.dom.Node emotion)
For a given emotion element, provide the declared action tendency vocabulary's URI,
if any, or the empty string.
|
static java.lang.String |
declaredAppraisalVocabulary(org.w3c.dom.Node emotion)
For a given emotion element, provide the declared appraisal vocabulary's URI,
if any, or the empty string.
|
static java.lang.String |
declaredCategoryVocabulary(org.w3c.dom.Node emotion)
For a given emotion element, provide the declared category vocabulary's URI,
if any, or the empty string.
|
static java.lang.String |
declaredDimensionVocabulary(org.w3c.dom.Node emotion)
For a given emotion element, provide the declared dimension vocabulary's URI,
if any, or the empty string.
|
static boolean |
expressedThrough(org.w3c.dom.Node emotionNode,
java.lang.String modality,
boolean defaultValue)
Determine whether the given emotion element is expressed through the given modality.
|
public static java.lang.String declaredCategoryVocabulary(org.w3c.dom.Node emotion)
emotion - an emotion nodepublic static java.lang.String declaredDimensionVocabulary(org.w3c.dom.Node emotion)
emotion - an emotion nodepublic static java.lang.String declaredAppraisalVocabulary(org.w3c.dom.Node emotion)
emotion - an emotion nodepublic static java.lang.String declaredActionTendencyVocabulary(org.w3c.dom.Node emotion)
emotion - an emotion nodepublic static boolean expressedThrough(org.w3c.dom.Node emotionNode,
java.lang.String modality,
boolean defaultValue)
emotionNode - emotion element in questionmodality - name of a single modalitydefaultValue - whether to assume no expressed-through attribute means that the result should be 'true'.