public class DateDataElt extends SimpleDataElt
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
dateformat |
Constructor and Description |
---|
DateDataElt(java.lang.String name) |
DateDataElt(java.lang.String name,
java.util.Date payload) |
Modifier and Type | Method and Description |
---|---|
void |
addPayload(MessageReader reader)
for each element, should read and add content for all elements between the
"TYP" field (excluded) and the "DELT" structure end (also excluded)
|
DateDataElt |
cloneElt()
makes a deep copy of the element
|
java.lang.String |
defaultTextRepresentation() |
boolean |
equals(java.lang.Object other) |
void |
forceContent(java.lang.String constraintvalue) |
protected java.lang.Object |
getMessageArrayValue() |
protected MessageFieldSpec |
getMessageFieldSpec() |
java.util.Date |
getPayload() |
void |
updatePayload(java.util.Date date) |
void |
writePayload(MessageWriter writer)
writes the payload for network transport
|
getEltCreator, getPropertyname, setPropertyname, toString, WriteSpecToMessage, writeToMessage, writeToMessage
getType, readFromCML, writeReferenceToCML
changeName, cleanName, getName
public DateDataElt(java.lang.String name)
name
- name of the elementpublic DateDataElt(java.lang.String name, java.util.Date payload)
name
- name of the elementpayload
- date payloadpublic java.util.Date getPayload()
public void writePayload(MessageWriter writer) throws java.io.IOException
SimpleDataElt
writePayload
in class SimpleDataElt
writer
- writerjava.io.IOException
- if anything wrongs happens in the message sendingprotected java.lang.Object getMessageArrayValue()
getMessageArrayValue
in class SimpleDataElt
public void addPayload(MessageReader reader) throws OLcRemoteException, java.io.IOException
DataElt
addPayload
in class SimpleDataElt
reader
- readerOLcRemoteException
- if anything happened to the other partyjava.io.IOException
- if any communication error happenspublic void updatePayload(java.util.Date date)
public java.lang.String defaultTextRepresentation()
defaultTextRepresentation
in class SimpleDataElt
public DateDataElt cloneElt()
SimpleDataElt
cloneElt
in class SimpleDataElt
public void forceContent(java.lang.String constraintvalue)
forceContent
in class SimpleDataElt
constraintvalue
- force the content in payload. May not be implemented
for all the typesprotected MessageFieldSpec getMessageFieldSpec()
getMessageFieldSpec
in class SimpleDataElt