public abstract class Time extends Object implements Comparable<Time>, Serializable
Modifier and Type | Field and Description |
---|---|
private String |
gmlId
GML id
|
private Time.NilReason |
nilReason
nil reason
|
private String |
reference
Reference
|
private static long |
serialVersionUID
serial numbeer
|
private Time.TimeFormat |
timeFormat
Time format
|
Constructor and Description |
---|
Time()
default constructor
|
Time(String gmlId)
constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getGmlId()
Get GML id.
|
Time.NilReason |
getNilReason()
Get the nil reason
|
String |
getReference()
Get reference
|
Time.TimeFormat |
getTimeFormat()
Get time format
|
boolean |
isEmpty()
Check if time is empty
|
boolean |
isNilReasonEqualTo(Enum value)
Check if set nil reason equals to
|
boolean |
isReferenced()
Check whether GML id contains document reference indicator
|
boolean |
isSetGmlId()
Check whether GML id is set
|
boolean |
isSetNilReason()
Check if nil reason is set
|
boolean |
isSetReference()
Check reference is set
|
boolean |
isSetTimeFormat()
Check whether time format is set
|
protected org.joda.time.DateTime |
resolveDateTime(org.joda.time.DateTime dateTime,
Time.TimeIndeterminateValue indeterminateValue)
Resolve date time from dateTime or from indertminateValue
|
void |
setGmlId(String gmlId)
Set GML id
|
void |
setNilReason(Time.NilReason nilReason)
Set nil reason
|
void |
setReference(String reference)
Set reference
|
void |
setTimeFormat(Time.TimeFormat timeFormat)
Set time format
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
private static final long serialVersionUID
private String gmlId
private Time.TimeFormat timeFormat
private String reference
private Time.NilReason nilReason
public Time()
public Time(String gmlId)
gmlId
- GML idpublic void setGmlId(String gmlId)
gmlId
- Id to setpublic String getGmlId()
Constants.NUMBER_SIGN_STRING
(document reference indicator) is removedpublic boolean isSetGmlId()
true
, if GML id is setpublic boolean isReferenced()
true
, if GML id contains document reference
indicatorpublic Time.TimeFormat getTimeFormat()
public void setTimeFormat(Time.TimeFormat timeFormat)
timeFormat
- Time format to setpublic boolean isSetTimeFormat()
true
, if time format is setpublic String getReference()
public void setReference(String reference)
reference
- Reference to setpublic boolean isSetReference()
true
, if reference is setpublic Time.NilReason getNilReason()
public void setNilReason(Time.NilReason nilReason)
nilReason
- Nil reason to setpublic boolean isSetNilReason()
true
, if nil reason is setpublic boolean isNilReasonEqualTo(Enum value)
value
- whose it shall comply withtrue
, if nil reason equals queriedprotected org.joda.time.DateTime resolveDateTime(org.joda.time.DateTime dateTime, Time.TimeIndeterminateValue indeterminateValue)
dateTime
- DateTime to checkindeterminateValue
- IndeterminateValue to checkTime.TimeIndeterminateValue.now
public boolean isEmpty()
true
if not set nil reason and not set referenceCopyright © 2012-2015 52north.org. All Rights Reserved.