public class ObjectIdDataElt extends SimpleDataElt
Constructor and Description |
---|
ObjectIdDataElt(java.lang.String name)
creates an empty objectid data element
|
ObjectIdDataElt(java.lang.String name,
ObjectIdInterface objectid) |
ObjectIdDataElt(java.lang.String name,
java.lang.String id) |
ObjectIdDataElt(java.lang.String name,
java.lang.String id,
java.lang.String objectid) |
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)
|
ObjectIdDataElt |
cloneElt()
makes a deep copy of the element
|
java.lang.String |
defaultTextRepresentation() |
boolean |
equals(java.lang.Object other) |
void |
forceContent(java.lang.String constraintvalue) |
java.lang.String |
getId() |
protected java.lang.Object |
getMessageArrayValue() |
protected MessageFieldSpec |
getMessageFieldSpec() |
java.lang.String |
getObjectId() |
void |
writePayload(MessageWriter writer)
writes the payload for network transport
|
getEltCreator, getPropertyname, setPropertyname, toString, WriteSpecToMessage, writeToMessage, writeToMessage
getType, readFromCML, writeReferenceToCML
changeName, cleanName, getName
public ObjectIdDataElt(java.lang.String name)
name
- name of the elementpublic ObjectIdDataElt(java.lang.String name, java.lang.String id, java.lang.String objectid)
name
- name of the elementid
- id of the individual (instance) objectobjectid
- type of object (id of the class of object)public ObjectIdDataElt(java.lang.String name, java.lang.String id)
name
- name of the elementid
- if of the invidicual (instance) objectpublic ObjectIdDataElt(java.lang.String name, ObjectIdInterface objectid)
name
- name of the elementobjectid
- a specific object with the interface of the Object Idpublic java.lang.String getId()
public java.lang.String getObjectId()
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 sendingpublic 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 java.lang.String defaultTextRepresentation()
defaultTextRepresentation
in class SimpleDataElt
public ObjectIdDataElt 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
protected java.lang.Object getMessageArrayValue()
getMessageArrayValue
in class SimpleDataElt