edu.stanford.nlp.time
Class SUTime.PartialTime

java.lang.Object
  extended by edu.stanford.nlp.time.SUTime.Temporal
      extended by edu.stanford.nlp.time.SUTime.Time
          extended by 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


Field Summary
 
Fields inherited from class edu.stanford.nlp.time.SUTime.Temporal
approx, mod, timeLabel
 
Fields inherited from interface edu.stanford.nlp.util.HasInterval
CONTAINS_FIRST_COMPARATOR, CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_COMPARATOR, NESTED_FIRST_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
 
Constructor Summary
SUTime.PartialTime()
           
SUTime.PartialTime(org.joda.time.Partial base)
           
SUTime.PartialTime(SUTime.PartialTime pt)
           
SUTime.PartialTime(SUTime.Time t, org.joda.time.Partial p)
           
 
Method Summary
 SUTime.Time add(SUTime.Duration offset)
           
protected  SUTime.PartialTime addSupported(org.joda.time.Period p, int scalar)
           
protected  SUTime.PartialTime addUnsupported(org.joda.time.Period p, int scalar)
           
protected  boolean appendDateFormats(org.joda.time.format.DateTimeFormatterBuilder builder, int flags)
           
protected  boolean appendTimeFormats(org.joda.time.format.DateTimeFormatterBuilder builder, int flags)
           
 SUTime.Duration getDuration()
           
protected  org.joda.time.format.DateTimeFormatter getFormatter(int flags)
           
 org.joda.time.Instant getJodaTimeInstant()
           
 org.joda.time.Partial getJodaTimePartial()
           
 SUTime.Duration getPeriod()
           
 SUTime.Range getRange(int flags, SUTime.Duration inputGranularity)
           
 boolean hasTime()
           
 SUTime.Time intersect(SUTime.Time t)
           
 boolean isCompatible(SUTime.PartialTime time)
           
 boolean isGrounded()
           
 SUTime.PartialTime padMoreSpecificFields(SUTime.Duration granularity)
           
 SUTime.Time resolve(SUTime.Time ref, int flags)
           
 SUTime.PartialTime setTimeZone(org.joda.time.DateTimeZone tz)
           
 java.lang.String toFormattedString(int flags)
           
 java.util.List<SUTime.Temporal> toList()
           
protected  void withStandardFields()
           
 
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
 

Constructor Detail

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()
Method Detail

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