INumerical Interface Reference

Inheritance diagram for INumerical:
Collaboration diagram for INumerical:

List of all members.

Detailed Description

An INumerical is an IWord which represents a number. The method INumerical#getNumericalValue() can be called to access the number as Number (if supported)



class  Helper

Public Methods

String getLabel ()
void setId (long id)

Package Functions

Number getNumericalValue ()
long getId ()

Method Details

long getId ( ) [package, inherited]
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.

Implemented in LabeledAnnotation, TerminalNode< T >, TEIDramaSpeaker, TEIDramaSpeechAct, TEIDramaStage, JodaDateTime, JodaInterval, JodaPeriod, Timex, Tweet, and TwitterEntity.

Number getNumericalValue ( ) [package]

Returns the Number represented by this token. Can return null, if the number couldn't be parsed or if this feature is not supported by the component which produced this token.


Implemented in Numerical, and Numerical.