public class TimePosition extends Object
Modifier and Type | Field and Description |
---|---|
private Time.TimeIndeterminateValue |
indeterminateValue
Indeterminate value of time position
|
private org.joda.time.DateTime |
time
Date time of time position
|
private Time.TimeFormat |
timeFormat
Time format
|
Constructor and Description |
---|
TimePosition(org.joda.time.DateTime time)
constructor
|
TimePosition(org.joda.time.DateTime time,
Time.TimeFormat timeFormat)
constructor
|
TimePosition(Time.TimeIndeterminateValue indeterminateValue)
constructor
|
Modifier and Type | Method and Description |
---|---|
Time.TimeIndeterminateValue |
getIndeterminateValue()
Get time position indeterminate value
|
org.joda.time.DateTime |
getTime()
Get time position time
|
Time.TimeFormat |
getTimeFormat()
Get time position time format
|
boolean |
isSetIndeterminateValue()
Check if indeterminateValue is set
|
boolean |
isSetTime()
Check if time value is set
|
boolean |
isSetTimeFormat()
Check if time format is set
|
void |
setIndeterminateValue(Time.TimeIndeterminateValue indeterminateValue)
Set time position indeterminat value
|
void |
setTime(org.joda.time.DateTime time)
Set time position time
|
void |
setTimeFormat(Time.TimeFormat timeFormat)
Set time position time format
|
String |
toString() |
private org.joda.time.DateTime time
private Time.TimeIndeterminateValue indeterminateValue
private Time.TimeFormat timeFormat
public TimePosition(org.joda.time.DateTime time)
time
- Time postion timepublic TimePosition(Time.TimeIndeterminateValue indeterminateValue)
indeterminateValue
- Indeterminate value of time positionpublic TimePosition(org.joda.time.DateTime time, Time.TimeFormat timeFormat)
time
- Time position timetimeFormat
- Time formatpublic org.joda.time.DateTime getTime()
public void setTime(org.joda.time.DateTime time)
time
- the time to setpublic Time.TimeIndeterminateValue getIndeterminateValue()
public Time.TimeFormat getTimeFormat()
public void setTimeFormat(Time.TimeFormat timeFormat)
timeFormat
- the timeFormat to setpublic void setIndeterminateValue(Time.TimeIndeterminateValue indeterminateValue)
indeterminateValue
- the indeterminateValue to setpublic boolean isSetTime()
public boolean isSetIndeterminateValue()
public boolean isSetTimeFormat()
Copyright © 2012-2015 52north.org. All Rights Reserved.