edu.stanford.nlp.time
Class SUTime.IsoDate

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
              extended by edu.stanford.nlp.time.SUTime.IsoDate
All Implemented Interfaces:
FuzzyInterval.FuzzyComparable<SUTime.Time>, HasInterval<SUTime.Time>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SUTime.Time>
Enclosing class:
SUTime

public static class SUTime.IsoDate
extends SUTime.PartialTime

See Also:
Serialized Form

Field Summary
 int day
          Day of Month
 int era
          Era: BC is era 0, AD is era 1, Unknown is -1
 int month
          Month of Year
 int year
          Year of Era
 
Fields inherited from class edu.stanford.nlp.time.SUTime.Temporal
approx, mod, timeLabel
 
Fields inherited from interface edu.stanford.nlp.util.HasInterval
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
 
Constructor Summary
SUTime.IsoDate(int y, int m, int d)
           
SUTime.IsoDate(java.lang.Number y, java.lang.Number m, java.lang.Number d)
           
SUTime.IsoDate(java.lang.Number y, java.lang.Number m, java.lang.Number d, java.lang.Number era, java.lang.Boolean yearEraAdjustNeeded)
           
SUTime.IsoDate(java.lang.String y, java.lang.String m, java.lang.String d)
           
SUTime.IsoDate(SUTime.StandardTemporalType temporalType, int y, int m, int d)
           
 
Method Summary
 int getDay()
           
 int getMonth()
           
 int getYear()
           
 void setDate(int y, int m, int d)
           
 void setDay(int d)
           
 void setMonth(int m)
           
 void setYear(int y)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.nlp.time.SUTime.PartialTime
add, addSupported, addUnsupported, appendDateFormats, appendTimeFormats, getDuration, getFormatter, getJodaTimeInstant, getJodaTimePartial, getPeriod, getRange, hasTime, intersect, isCompatible, isGrounded, padMoreSpecificFields, resolve, setTimeZone, toFormattedString, toList, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

era

public int era
Era: BC is era 0, AD is era 1, Unknown is -1


year

public int year
Year of Era


month

public int month
Month of Year


day

public int day
Day of Month

Constructor Detail

SUTime.IsoDate

public SUTime.IsoDate(int y,
                      int m,
                      int d)

SUTime.IsoDate

public SUTime.IsoDate(SUTime.StandardTemporalType temporalType,
                      int y,
                      int m,
                      int d)

SUTime.IsoDate

public SUTime.IsoDate(java.lang.Number y,
                      java.lang.Number m,
                      java.lang.Number d)

SUTime.IsoDate

public SUTime.IsoDate(java.lang.Number y,
                      java.lang.Number m,
                      java.lang.Number d,
                      java.lang.Number era,
                      java.lang.Boolean yearEraAdjustNeeded)

SUTime.IsoDate

public SUTime.IsoDate(java.lang.String y,
                      java.lang.String m,
                      java.lang.String d)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class SUTime.Temporal

getYear

public int getYear()

setYear

public void setYear(int y)

getMonth

public int getMonth()

setMonth

public void setMonth(int m)

getDay

public int getDay()

setDay

public void setDay(int d)

setDate

public void setDate(int y,
                    int m,
                    int d)


Stanford NLP Group