public final class DateTimeImpl extends DateTime implements SimpleValue, Sizeable, Objects
Constructor and Description |
---|
DateTimeImpl() |
DateTimeImpl(Calendar calendar) |
DateTimeImpl(Config config) |
DateTimeImpl(Config config,
long utcTime,
boolean doOffset) |
DateTimeImpl(Date date) |
DateTimeImpl(long utcTime,
boolean doOffset) |
DateTimeImpl(PageContext pc) |
DateTimeImpl(PageContext pc,
long utcTime,
boolean doOffset) |
Modifier and Type | Method and Description |
---|---|
static long |
addOffset(Config config,
long utcTime) |
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] args)
calls a method of the object
|
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments
|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value
|
boolean |
castToBooleanValue()
cast the castable value to a boolean value
|
DateTime |
castToDateTime()
cast the castable value to a date time object
|
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object
|
double |
castToDoubleValue()
cast the castable value to a double value
|
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value
|
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception
|
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable
|
String |
castToString(TimeZone tz) |
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(String str) |
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection
|
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property
|
Object |
set(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object
|
Object |
setEL(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object
|
long |
sizeOf()
return the size of the object
|
double |
toDoubleValue() |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
String |
toString() |
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
public DateTimeImpl(PageContext pc)
public DateTimeImpl(Config config)
public DateTimeImpl()
public DateTimeImpl(PageContext pc, long utcTime, boolean doOffset)
public DateTimeImpl(Config config, long utcTime, boolean doOffset)
public DateTimeImpl(long utcTime, boolean doOffset)
public DateTimeImpl(Date date)
public DateTimeImpl(Calendar calendar)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public String castToString()
Castable
castToString
in interface Castable
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public String castToString(TimeZone tz)
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
ExpressionException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue()
Castable
castToDoubleValue
in interface Castable
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public DateTime castToDateTime()
Castable
castToDateTime
in interface Castable
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic double toDoubleValue()
toDoubleValue
in class DateTime
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public long sizeOf()
Sizeable
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the PropertyPageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insertPageException
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
public Object call(PageContext pc, Collection.Key methodName, Object[] args) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callargs
- arguments to call method withPageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the methodPageException
Copyright © 2015 Lucee