Package edu.fiu.jtlex.timeml.data
Interface ITimeMLText
- All Known Implementing Classes:
TimeMLText
public interface ITimeMLText
Text objects are a placeholder for pre-analyzed, parsed data.
These have objects that contain
Time Expressions
, Links
,
Instances
, Related Instances
, and the Raw Text Data (with and without TimeML Tags).- Since:
- jTLEX 1.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this text equals an object.Returns a set view of all the events.Returns a set view of all the instances.getLinks()
Returns a set view of all the links.Returns the article text with TimeML tags.getRelatedInstances
(ITimeMLEvent event) Returns the Instances related to the event passed.getText()
Returns the article text without TimeML tags.Returns a set view of all the TIMEXes.int
hashCode()
Generates a hash code for the text.
-
Method Details
-
getText
String getText()Returns the article text without TimeML tags.- Returns:
- the article text without TimeML tags.
- Since:
- jTLEX 1.0
-
getRawText
String getRawText()Returns the article text with TimeML tags. This is the original text file that was input.- Returns:
- the article text with TimeML tags.
- Since:
- jTLEX 1.0
-
getTimexes
Set<ITimeMLTimex> getTimexes()Returns a set view of all the TIMEXes.- Returns:
- a set view of all the TIMEXes.
- Since:
- jTLEX 1.0
-
getLinks
Set<ITimeMLLink> getLinks()Returns a set view of all the links.- Returns:
- a set view of all the links.
- Since:
- jTLEX 1.0
-
getInstances
Set<ITimeMLInstance> getInstances()Returns a set view of all the instances.- Returns:
- a set view of all the instances.
- Since:
- jTLEX 1.0
-
getEvents
Set<ITimeMLEvent> getEvents()Returns a set view of all the events.- Returns:
- a set view of all the events.
- Since:
- jTLEX 1.0
-
getRelatedInstances
Returns the Instances related to the event passed.- Parameters:
event
- the event in question.- Returns:
- the Instances related to the event passed.
- Since:
- jTLEX 1.0
-
hashCode
int hashCode()Generates a hash code for the text. -
equals
Checks if this text equals an object.- Overrides:
equals
in classObject
- Parameters:
o
- The object to compare against.- Returns:
- True if both texts are equal, i.e. same rawText, or else false.
- Throws:
NullPointerException
- If the object to compare against is false.- Since:
- jTLEX 1.0
-