edu.stanford.nlp.time
Class SUTime.PartialTime
java.lang.Object
edu.stanford.nlp.time.SUTime.Temporal
edu.stanford.nlp.time.SUTime.Time
edu.stanford.nlp.time.SUTime.PartialTime
- All Implemented Interfaces:
- FuzzyInterval.FuzzyComparable<SUTime.Time>, HasInterval<SUTime.Time>, java.lang.Cloneable, java.lang.Comparable<SUTime.Time>
- Direct Known Subclasses:
- SUTime.CompositePartialTime, SUTime.IsoDate, SUTime.IsoDateTime, SUTime.IsoTime
- Enclosing class:
- SUTime
public static class SUTime.PartialTime
- extends SUTime.Time
| Methods inherited from class edu.stanford.nlp.time.SUTime.Time |
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getTime, getTimexType, intersect, intersect, isComparable, makeComposite, max, min, offset, subtract |
| Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal |
addMod, addModApprox, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, toISOString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SUTime.PartialTime
public SUTime.PartialTime(SUTime.Time t,
org.joda.time.Partial p)
SUTime.PartialTime
public SUTime.PartialTime(SUTime.PartialTime pt)
SUTime.PartialTime
public SUTime.PartialTime(org.joda.time.Partial base)
SUTime.PartialTime
public SUTime.PartialTime()
setTimeZone
public SUTime.PartialTime setTimeZone(org.joda.time.DateTimeZone tz)
- Overrides:
setTimeZone in class SUTime.Temporal
getJodaTimeInstant
public org.joda.time.Instant getJodaTimeInstant()
- Overrides:
getJodaTimeInstant in class SUTime.Time
getJodaTimePartial
public org.joda.time.Partial getJodaTimePartial()
- Overrides:
getJodaTimePartial in class SUTime.Time
hasTime
public boolean hasTime()
- Overrides:
hasTime in class SUTime.Time
appendDateFormats
protected boolean appendDateFormats(org.joda.time.format.DateTimeFormatterBuilder builder,
int flags)
appendTimeFormats
protected boolean appendTimeFormats(org.joda.time.format.DateTimeFormatterBuilder builder,
int flags)
getFormatter
protected org.joda.time.format.DateTimeFormatter getFormatter(int flags)
isGrounded
public boolean isGrounded()
- Overrides:
isGrounded in class SUTime.Time
getDuration
public SUTime.Duration getDuration()
- Overrides:
getDuration in class SUTime.Time
getRange
public SUTime.Range getRange(int flags,
SUTime.Duration inputGranularity)
- Overrides:
getRange in class SUTime.Time
withStandardFields
protected void withStandardFields()
padMoreSpecificFields
public SUTime.PartialTime padMoreSpecificFields(SUTime.Duration granularity)
toFormattedString
public java.lang.String toFormattedString(int flags)
- Overrides:
toFormattedString in class SUTime.Temporal
resolve
public SUTime.Time resolve(SUTime.Time ref,
int flags)
- Overrides:
resolve in class SUTime.Time
isCompatible
public boolean isCompatible(SUTime.PartialTime time)
getPeriod
public SUTime.Duration getPeriod()
- Overrides:
getPeriod in class SUTime.Temporal
toList
public java.util.List<SUTime.Temporal> toList()
intersect
public SUTime.Time intersect(SUTime.Time t)
- Overrides:
intersect in class SUTime.Time
addSupported
protected SUTime.PartialTime addSupported(org.joda.time.Period p,
int scalar)
addUnsupported
protected SUTime.PartialTime addUnsupported(org.joda.time.Period p,
int scalar)
add
public SUTime.Time add(SUTime.Duration offset)
- Specified by:
add in class SUTime.Time
Stanford NLP Group