Package edu.fiu.jtlex.data
Interface ITimex
- All Superinterfaces:
INode
- All Known Implementing Classes:
Timex
public interface ITimex extends INode
Represents the TIME tag.
This assumes usage of TimeML TIMEX3 standards;
"Since the details of the tag set that TimeML uses to annotate temporal
expressions differ in detail both from the TIMEX tag in STAG (Sheffield
Temporal Annotation Guidelines) and the TIMEX2 tag in TIDES,
we here use the tag name TIMEX3 for temporal expressions."
-TimeML Annotation
Guidelines Version 1.2.1
- Author:
- ceber003
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classITimex.FunctionInDocumentAn enum that represents the seven different functions an object may belong to.
Function may belong to: CREATION_TIMEMODIFICATION_TIME PUBLICATION_TIMERELEASE_TIMERECEPTION_TIME EXPIRATION_TIMENONEstatic classITimex.TimexModAn enum that represents the twelve different Mod states an object may belong to.static classITimex.TimexTypeAn enum that represents the four different types an object may belong to.
Timex may belong to: DATETIME DURATIONSET type -
Method Summary
Modifier and Type Method Description voidaddInLink(ILink link)Add a link to the set of IN links from this node.voidaddOutLink(ILink link)Add a link to the set of OUT links from this node.intgetAnchorTimeId()Returns the integer part of the anchortimeId.java.lang.StringgetAnchorTimeIdStr()Returns the string part of the anchortimeId.intgetBeginPoint()Returns the integer part of the beginpointId.java.lang.StringgetBeginPointStr()Returns the string part of the beginpointId.intgetEndPoint()Returns the integer part of the endpointId.java.lang.StringgetEndPointStr()Returns the string part of the endpointId.java.lang.StringgetFreq()Returns frequency String portion.ITimex.FunctionInDocumentgetFunction()Returns the function to which the object belongs.java.util.Set<ILink>getInLinks()Returns the set of TimeML links which come to this node.ITimex.TimexModgetMod()Returns the mod to which the object belongs.java.util.Set<ILink>getOutLinks()Returns the set of TimeML links which come from this node.java.lang.StringgetPhrase()Returns the phrase from the text annotated as timex.java.lang.StringgetQuant()Returns the quantity to which the object belongs.booleangetTemporalFunction()Returns the inary attribute which expresses that the value of the temporal expression needs to be determined via evaluation of a temporal function.java.lang.StringgetValue()Returns the string representation of the value.voidremoveInLink(ILink link)Removes a TimeML link from the set of links that end in this node.voidremoveOutLink(ILink link)Removes a TimeML link from the set of links that start in this node.
-
Method Details
-
getValue
java.lang.String getValue()Returns the string representation of the value. The value of the the timex tag determines what the actual amount of time for the date, time, duration, and set types.- Returns:
- the string representation of the value. May not be null.
-
getMod
ITimex.TimexMod getMod()Returns the mod to which the object belongs. This value is optional.- Returns:
- the mod to which the object belongs.
May be
null. - See Also:
ITimex.TimexMod
-
getTemporalFunction
boolean getTemporalFunction()Returns the inary attribute which expresses that the value of the temporal expression needs to be determined via evaluation of a temporal function.- Returns:
- the inary attribute which expresses that the value of the temporal expression needs to be determined via evaluation of a temporal function.
-
getAnchorTimeId
int getAnchorTimeId()Returns the integer part of the anchortimeId. Each anchortime has to be identified by a unique ID number. This value is optional.- Returns:
- the integer part of the anchortimeId. May not be negative
-
getAnchorTimeIdStr
java.lang.String getAnchorTimeIdStr()Returns the string part of the anchortimeId. Each anchortime has to be identified by a unique ID number. This value is optional.- Returns:
- the string part of the anchortimeId. May not be null.
-
getFunction
ITimex.FunctionInDocument getFunction()Returns the function to which the object belongs. Function in document can be one of seven values. If it is not specified then it will be set as 'NONE' by default.- Returns:
- the function to which the object belongs.
May be
null.
-
getBeginPoint
int getBeginPoint()Returns the integer part of the beginpointId. Beginpoint is only used if the expression is anchored to another timex expression. Each beginpoint has to be identified by a unique ID number. If only endpoint is provided may create an empty timex to fill in.- Returns:
- the integer part of the beginpointId. May not be negative
-
getBeginPointStr
java.lang.String getBeginPointStr()Returns the string part of the beginpointId. Beginpoint is only used if the expression is anchored to another timex expression. Each beginpoint has to be identified by a unique ID number. If only endpoint is provided may create an empty timex to fill in.- Returns:
- the string part of the beginpointId.
May not be
null.
-
getEndPoint
int getEndPoint()Returns the integer part of the endpointId. Endpoint is only used if the expression is anchored to another timex expression. Each endpoint has to be identified by a unique ID number. If only beginpoint is provided may create an empty timex to fill in.- Returns:
- the integer part of the endpointId. May not be negative.
-
getEndPointStr
java.lang.String getEndPointStr()Returns the string part of the endpointId. Endpoint is only used if the expression is anchored to another timex expression. Each endpoint has to be identified by a unique ID number. If only beginpoint is provided may create an empty timex to fill in.- Returns:
- the string part of the endpointId.
May not be
null.
-
getQuant
java.lang.String getQuant()Returns the quantity to which the object belongs. The quant value is only used if the timex type is 'SET'.- Returns:
- the quantity to which the object belongs.
May be
null.
-
getFreq
java.lang.String getFreq()Returns frequency String portion. The frequency value is only used if the timex type is 'SET'. The integer value determines the number of time the frequency takes. i.e: 2 Weeks, 3 Months, 1 Day, etc.- Returns:
- frequency String portion.
May be
null.
-
getPhrase
java.lang.String getPhrase()Returns the phrase from the text annotated as timex.- Returns:
- the phrase from the text annotated as timex.
May be
null.
-
addOutLink
Add a link to the set of OUT links from this node.- Specified by:
addOutLinkin interfaceINode- Parameters:
link- : A new OUT link from this node.
-
addInLink
Add a link to the set of IN links from this node. -
getOutLinks
java.util.Set<ILink> getOutLinks()Returns the set of TimeML links which come from this node.- Specified by:
getOutLinksin interfaceINode- Returns:
- the set of TimeML links which come from this node.
-
getInLinks
java.util.Set<ILink> getInLinks()Returns the set of TimeML links which come to this node.- Specified by:
getInLinksin interfaceINode- Returns:
- the set of TimeML links which come to this node.
-
removeOutLink
Removes a TimeML link from the set of links that start in this node.- Specified by:
removeOutLinkin interfaceINode- Parameters:
link- a new OUT link to remove from the set of outgoing links.
-
removeInLink
Removes a TimeML link from the set of links that end in this node.- Specified by:
removeInLinkin interfaceINode- Parameters:
link- a new In link to remove from the set of incoming links.
-