|
|||||||||||
| 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.Date
A Class that wraps the Date 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 | |
Date(java.lang.String type)
Constructor for a Date of a specific type. |
|
| 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()
Returns the day component of this date. |
java.lang.String |
getMonth()
Returns the month component of this date. |
java.lang.String |
getType()
Returns the type for this date. |
java.lang.String |
getYear()
Returns the year component of this date. |
void |
setDay(java.lang.String day)
Sets the day component of this date. |
void |
setMonth(java.lang.String month)
Sets the month component of this date. |
void |
setYear(java.lang.String year)
Sets the year component of this date. |
java.util.Date |
toDate()
Returns the state of this date object as a new java.util.Date instance. |
java.lang.String |
toString()
Returns a string representation of this date. |
| 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 Date(java.lang.String type)
type - the type of the date (e.g., TerminationDate)| Method Detail |
public java.lang.String getType()
public java.lang.String getDay()
public void setDay(java.lang.String day)
throws EnterpriseFieldException
day - the new value of the day component for this date
EnterpriseFieldExceptionpublic java.lang.String getMonth()
public void setMonth(java.lang.String month)
throws EnterpriseFieldException
month - the new month component for this date
EnterpriseFieldExceptionpublic java.lang.String getYear()
public void setYear(java.lang.String year)
throws EnterpriseFieldException
year - the new year component for this date
EnterpriseFieldExceptionpublic java.lang.String toString()
toString in interface XmlEnterpriseObjecttoString in class XmlEnterpriseObjectImpl
public java.util.Date toDate()
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 | ||||||||||