00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 package org.openmobileis.synchro.openmsp.protocol;
00027
00028 import org.openmobileis.common.util.collection.Array;
00029 import org.openmobileis.synchro.openmsp.OpenMSPException;
00030
00039 public class AtomicMessage extends ContainerMessage {
00044 final static long serialVersionUID = 1L;
00045
00046 protected AtomicMessage(Element element) {
00047 content = element;
00048 children = new Array(0);
00049 }
00050
00051 public void add (ContainerMessage message) throws OpenMSPException {
00052 throw new OpenMSPException("Attemp to add a set of commands to an atomic message");
00053 }
00054
00055 public void add (Element elt) throws OpenMSPException {
00056 throw new OpenMSPException("Attemp to add a set of commands to an atomic message");
00057 }
00058
00059 protected void encode (StringBuffer buffer) {
00060 content.writeBeginTag(buffer);
00061 content.writeContent(buffer);
00062 content.writeEndTag(buffer);
00063 }
00064
00065
00066 }