Relative Class Reference

Inheritance diagram for Relative:
Collaboration diagram for Relative:

List of all members.

Public Types

enum  Person { FIRST, SECOND, THIRD }

Public Methods

 Relative ()
String getCase ()
String getGender ()
String getNumber ()
boolean matchesCase (IsCaseAware other)
boolean matchesGender (HasGender other)
boolean matchesNumber (HasNumber other)
Person getPerson ()
void setPerson (Person p)
boolean matchesPerson (HasPerson other)
HierarchicalPartOfSpeech cloneCategory ()
boolean hasFeature (String name, String value)
Map< String, String > getFeatures ()
void setBaseForm (String baseForm)
void setAdditionalInformation (String additionalInformation)
String toString ()
void setOriginalTag (String posTag)
long calcTypeId ()
String getPartOfSpeechTag ()
String getAdditionalInformation ()
Set< String > getSubCategories ()
void addCategory (String subCategory)
String getCategory ()
void setCategory (String category)
String getLabel ()
void setLabel (String label)
long getId ()
void setId (long id)

Protected Methods

void addFeature (String name, String value)
boolean hasFeature (String name)
String getFeature (String name)

Protected Attributes

Set< String > subCategories

Static Protected Attributes

static final String CASE = "case"
static final String GENDER = "gender"
static final String NUMBER = "number"
static final String BASE_FORM = "BASE_FORM"
static final String ORIGINAL_TAG = "ORIGINAL_TAG"
static final String ADDITIONAL_INFORMATION = "ADDITIONAL_INFORMATION"

Member Enumeration Documentation

enum Person [inherited]
Enumerator:
FIRST 
SECOND 
THIRD 

Constructors

Relative ( )

Method Details

void addCategory ( String  subCategory) [inherited]
void addFeature ( String  name,
String  value 
) [protected, inherited]
long calcTypeId ( ) [inherited]

Reimplemented from HierarchicalCategory.

HierarchicalPartOfSpeech cloneCategory ( ) [inherited]
String getAdditionalInformation ( ) [inherited]

Implements IPartOfSpeech.

String getCase ( )

Get a string representation of the case for this object

Returns:
a string representing the case of the object, e.g. "nominative"

Implements IsCaseAware.

String getCategory ( ) [inherited]

Returns the category-string of this category. Note that this value is not further restricted, and different implementations might return different strings.

Returns:
the category string

Implements ISingleValueCategory.

String getFeature ( String  name) [protected, inherited]
Map<String, String> getFeatures ( ) [inherited]
String getGender ( )

Implements HasGender.

long getId ( ) [inherited]

Returns the Id of this DataObject. Might return 0, if the object hasn't been inserted into database yet.

Returns:
id

Implements DataObject.

Reimplemented in Tweet, and TwitterEntity.

String getLabel ( ) [inherited]

Returns the label of this token, which can be any kind of string (except null), mainly used for display-reasons only. Note: Components MUST NOT assume that any kind of label (like 'word' or else) is returned by this method.

Implements ILabeledElement.

Reimplemented in TEIDramaSpeaker, TEIDramaSpeechAct, TEIDramaStage, JodaDateTime, JodaInterval, JodaPeriod, Timex, Tweet, and TwitterEntity.

String getNumber ( )

Implements HasNumber.

String getPartOfSpeechTag ( ) [inherited]

Implements IPartOfSpeech.

Person getPerson ( ) [inherited]

Implements HasPerson.

Set<String> getSubCategories ( ) [inherited]

Returns the sub-category strings of this category. Note that these values are not further restricted, and different implementations might return different strings.

Returns:
the sub-category strings

Implements IHierarchicalCategory.

boolean hasFeature ( String  name,
String  value 
) [inherited]
boolean hasFeature ( String  name) [protected, inherited]
boolean matchesCase ( IsCaseAware  other)

Checks two objects that either have a case or assign a case for equality in respect to their case property.

Parameters:
other
Returns:
true iff the cases match or both objects don't have a case set.

Implements IsCaseAware.

boolean matchesGender ( HasGender  other)

Checks two objects for equality in gender.

Parameters:
other
Returns:
true iff the gender is equal between the two objects.

Implements HasGender.

boolean matchesNumber ( HasNumber  other)

Checks two objects for equality in number.

Parameters:
other
Returns:
true iff the number is equal between the two objects.

Implements HasNumber.

boolean matchesPerson ( HasPerson  other) [inherited]

Checks two objects for equality in person.

Parameters:
other
Returns:
true iff the Person enum is equal between the two objects.

Implements HasPerson.

void setAdditionalInformation ( String  additionalInformation) [inherited]
void setBaseForm ( String  baseForm) [inherited]
void setCategory ( String  category) [inherited]
void setId ( long  id) [inherited]

Set the Id of this DataObject.

Parameters:
id

Implements DataObject.

Reimplemented in Tweet, and TwitterEntity.

void setLabel ( String  label) [inherited]
void setOriginalTag ( String  posTag) [inherited]
void setPerson ( Person  p) [inherited]
String toString ( ) [inherited]

Reimplemented from HierarchicalCategory.


Field Details

final String ADDITIONAL_INFORMATION = "ADDITIONAL_INFORMATION" [static, protected, inherited]
final String BASE_FORM = "BASE_FORM" [static, protected, inherited]
final String CASE = "case" [static, protected]
final String GENDER = "gender" [static, protected]
final String NUMBER = "number" [static, protected]
final String ORIGINAL_TAG = "ORIGINAL_TAG" [static, protected, inherited]
Set<String> subCategories [protected, inherited]