|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.temporal.object.DefaultDuration
org.geotools.temporal.object.DefaultPeriodDuration
public class DefaultPeriodDuration
Uses the format specified by ISO 8601 for exchanging information about the duration of a period.
Constructor Summary | |
---|---|
DefaultPeriodDuration(org.opengis.util.InternationalString years,
org.opengis.util.InternationalString months,
org.opengis.util.InternationalString week,
org.opengis.util.InternationalString days,
org.opengis.util.InternationalString hours,
org.opengis.util.InternationalString minutes,
org.opengis.util.InternationalString seconds)
Creates a new instances of PeriodDuration. |
|
DefaultPeriodDuration(long durationInMilliSeconds)
Creates a new instance of PeriodDuration from a long value passed in parameter. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
org.opengis.util.InternationalString |
getDays()
A positive integer, followed by the character "D", which indicated the number of days in the period. |
org.opengis.util.InternationalString |
getDesignator()
A mandatory element which designates that the returned string represents the duration of a period. |
org.opengis.util.InternationalString |
getHours()
A positive integer, followed by the character "H", which indicated the number of hours in the period. |
org.opengis.util.InternationalString |
getMinutes()
A positive integer, followed by the character "M", which indicated the number of minutes in the period. |
org.opengis.util.InternationalString |
getMonths()
A positive integer, followed by the character "M", which indicated the number of months in the period. |
org.opengis.util.InternationalString |
getSeconds()
A positive integer, followed by the character "S", which indicated the number of seconds in the period. |
org.opengis.util.InternationalString |
getTimeIndicator()
Included whenever the sequence includes values for units less than a day. |
long |
getTimeInMillis()
Returns a duration in long. |
org.opengis.util.InternationalString |
getWeek()
|
org.opengis.util.InternationalString |
getYears()
A positive integer, followed by the character "Y", which indicated the number of years in the period. |
int |
hashCode()
|
void |
setDays(org.opengis.util.InternationalString days)
|
void |
setHours(org.opengis.util.InternationalString hours)
|
void |
setMinutes(org.opengis.util.InternationalString minutes)
|
void |
setMonths(org.opengis.util.InternationalString months)
|
void |
setSeconds(org.opengis.util.InternationalString seconds)
|
void |
setWeek(org.opengis.util.InternationalString week)
|
void |
setYears(org.opengis.util.InternationalString years)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultPeriodDuration(org.opengis.util.InternationalString years, org.opengis.util.InternationalString months, org.opengis.util.InternationalString week, org.opengis.util.InternationalString days, org.opengis.util.InternationalString hours, org.opengis.util.InternationalString minutes, org.opengis.util.InternationalString seconds)
years
- months
- weeks
- days
- hours
- minutes
- seconds
- public DefaultPeriodDuration(long durationInMilliSeconds)
durationInMilliSeconds
- Method Detail |
---|
public org.opengis.util.InternationalString getDesignator()
getDesignator
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getYears()
getYears
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getMonths()
getMonths
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getDays()
getDays
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getTimeIndicator()
getTimeIndicator
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getHours()
getHours
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getMinutes()
getMinutes
in interface org.opengis.temporal.PeriodDuration
public org.opengis.util.InternationalString getSeconds()
getSeconds
in interface org.opengis.temporal.PeriodDuration
public void setYears(org.opengis.util.InternationalString years)
public void setMonths(org.opengis.util.InternationalString months)
public void setDays(org.opengis.util.InternationalString days)
public void setHours(org.opengis.util.InternationalString hours)
public void setMinutes(org.opengis.util.InternationalString minutes)
public void setSeconds(org.opengis.util.InternationalString seconds)
public org.opengis.util.InternationalString getWeek()
public void setWeek(org.opengis.util.InternationalString week)
public long getTimeInMillis()
getTimeInMillis
in class DefaultDuration
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |