|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.util.DateProxy
public class DateProxy
Serves as a proxy for the specification of a date.
The primary purpose is to support input date strings in standard Java yyyy-MM-dd format.
Field Summary | |
---|---|
static String |
DEFAULT_TIME_FORMAT
default time format used by class |
Constructor Summary | |
---|---|
DateProxy()
Default constructor. |
Method Summary | |
---|---|
Timestamp |
asFromTimestamp()
Returns a timestamp applicable for the from part of a date range query. |
Timestamp |
asFromTimestampExcl()
Returns an exclusive timestamp applicable for the from part of a date range query. |
Timestamp |
asToTimestamp()
Returns a timestamp applicable for the to part of a date range query. |
Timestamp |
asToTimestampExcl()
Returns an exclusive timestamp applicable for the to part of a date range query. |
static String |
formatDate(Timestamp date)
Formats a date as "yyyy-MM-dd". |
static String |
formatIso8601Timestamp(Timestamp timestamp)
Formats a timestamp as "yyyy-MM-dd'T'HH:mm:ssZ". |
String |
getDate()
Gets the input date string. |
boolean |
getIsValid()
Determines if the date is valid. |
boolean |
getWasInputStringInvalid()
Determines if the input date string was invalid. |
void |
setDate(String date)
Sets the input date string. |
String |
toString()
Returns a string representation this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String DEFAULT_TIME_FORMAT
Constructor Detail |
---|
public DateProxy()
Method Detail |
---|
public String getDate()
public void setDate(String date)
date
- the input date stringpublic boolean getIsValid()
public boolean getWasInputStringInvalid()
The input string is only considered invalid if it had non-zero length and failed to eveluate to a date.
public Timestamp asFromTimestamp()
public Timestamp asFromTimestampExcl()
public Timestamp asToTimestamp()
public Timestamp asToTimestampExcl()
public static String formatDate(Timestamp date)
date
- the date to format
public static String formatIso8601Timestamp(Timestamp timestamp)
timestamp
- the timestamp to format
public String toString()
toString
in class Object
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |