Ejemplo n.º 1
0
 @Override
 public Object unmarshalObject(final AOByteBuffer buf) {
   super.unmarshalObject(buf);
   final byte flag_bits0 = buf.getByte();
   if ((flag_bits0 & 0x1) != 0x0) {
     this.type = buf.getString();
   }
   if ((flag_bits0 & 0x2) != 0x0) {
     this.agentName = buf.getString();
   }
   return this;
 }
Ejemplo n.º 2
0
 @Override
 public Object unmarshalObject(final AOByteBuffer buf) {
   super.unmarshalObject(buf);
   final byte flag_bits0 = buf.getByte();
   if ((flag_bits0 & 0x1) != 0x0) {
     this.namespace = (Namespace) MarshallingRuntime.unmarshalObject(buf);
   }
   return this;
 }
Ejemplo n.º 3
0
 @Override
 public void marshalObject(final AOByteBuffer buf) {
   super.marshalObject(buf);
   byte flag_bits = 0;
   if (this.type != null && this.type != "") {
     flag_bits = 1;
   }
   if (this.agentName != null && this.agentName != "") {
     flag_bits |= 0x2;
   }
   buf.putByte(flag_bits);
   if (this.type != null && this.type != "") {
     buf.putString(this.type);
   }
   if (this.agentName != null && this.agentName != "") {
     buf.putString(this.agentName);
   }
 }
Ejemplo n.º 4
0
 @Override
 public void marshalObject(final AOByteBuffer buf) {
   super.marshalObject(buf);
   byte flag_bits = 0;
   if (this.namespace != null) {
     flag_bits = 1;
   }
   buf.putByte(flag_bits);
   if (this.namespace != null) {
     MarshallingRuntime.marshalObject(buf, (Object) this.namespace);
   }
 }