|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.moa.EnterpriseObjectBase
|
+--org.openeai.moa.XmlEnterpriseObjectImpl
|
+--org.openeai.moa.objects.resources.Datetime
A Class that wraps the Datetime element as specified in the OpenEAI protocol.
| Field Summary |
| Fields inherited from class org.openeai.moa.XmlEnterpriseObjectImpl |
ENTERPRISE_FIELDS, XML_LAYOUT_MANAGER |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
Datetime()
Constructor - get the current system time and populate this object appropriately. |
|
Datetime(java.util.Date aDate)
Constructor - use the Date passed in to populate this object appropriately. |
|
Datetime(org.jdom.Element eDatetime)
Constructor - use the element passed in to build the Datetime object. |
|
Datetime(java.lang.String type)
Constructor - set the Datetime 'type' to be that which is passed in and then instantiate a normal Datetime object. |
|
Datetime(java.lang.String type,
java.util.Date date)
Constructor - set the Datetime 'type' to be that which is passed in (for the same reasons as outlined in the String-only constructor) and then instantiate a Datetime object initial values indicative of the java.util.Date passed in. |
|
Datetime(java.lang.String type,
long time)
Constructor - set the Datetime 'type' to be that which is passed in (for the same reasons as outlined in the String-only constructor) and then instantiate a Datetime object initial values indicative of the long time in milliseconds passed in. |
|
| Method Summary | |
java.lang.Object |
clone()
Performs a recursive field for field copy of the current Object and returns the result. |
java.lang.String |
getDay()
|
java.lang.String |
getHour()
|
java.lang.String |
getMinute()
|
java.lang.String |
getMonth()
|
java.lang.String |
getSecond()
|
java.lang.String |
getSubSecond()
|
java.lang.String |
getTimezone()
|
java.lang.String |
getType()
Returns the type of Datetime element this is. |
java.lang.String |
getYear()
|
void |
setDay(java.lang.String day)
|
void |
setHour(java.lang.String hour)
|
void |
setMinute(java.lang.String minute)
|
void |
setMonth(java.lang.String month)
|
void |
setSecond(java.lang.String second)
|
void |
setSubSecond(java.lang.String subSecond)
|
void |
setTimezone(java.lang.String timezone)
|
void |
setYear(java.lang.String year)
|
long |
toLong()
Creates a Java Date object out of the current contents of the object and returns the 'long' value of that Date object. |
java.lang.String |
toString()
Creates a String object out of the current contents of the object and returns a concatenated string representing that information. |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Datetime(org.jdom.Element eDatetime)
throws EnterpriseLayoutException
public Datetime()
public Datetime(java.util.Date aDate)
public Datetime(java.lang.String type)
public Datetime(java.lang.String type,
java.util.Date date)
public Datetime(java.lang.String type,
long time)
| Method Detail |
public java.lang.String getType()
public java.lang.String getYear()
public void setYear(java.lang.String year)
public java.lang.String getMonth()
public void setMonth(java.lang.String month)
public java.lang.String getDay()
public void setDay(java.lang.String day)
public java.lang.String getHour()
public void setHour(java.lang.String hour)
public java.lang.String getMinute()
public void setMinute(java.lang.String minute)
public java.lang.String getSecond()
public void setSecond(java.lang.String second)
public java.lang.String getSubSecond()
public void setSubSecond(java.lang.String subSecond)
public java.lang.String getTimezone()
public void setTimezone(java.lang.String timezone)
public java.lang.String toString()
toString in interface XmlEnterpriseObjecttoString in class XmlEnterpriseObjectImpl
public long toLong()
throws InvalidFormatException
InvalidFormatException
public final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
XmlEnterpriseObject
clone in interface XmlEnterpriseObjectclone in class XmlEnterpriseObjectImpljava.lang.CloneNotSupportedException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||