public void writeTo(Output output, BitToUserHandshake message) throws IOException {
    if (message.rpcVersion != 0) output.writeInt32(2, message.rpcVersion, false);

    if (message.status != null) output.writeEnum(3, message.status.number, false);

    if (message.errorId != null) output.writeString(4, message.errorId, false);

    if (message.errorMessage != null) output.writeString(5, message.errorMessage, false);
  }
Exemple #2
0
        public void writeTo(Output output, DVTEXT message) throws IOException {
          if (message.value == null) throw new UninitializedMessageException(message);
          output.writeString(1, message.value, false);

          if (message.hyperlink != null)
            output.writeObject(2, message.hyperlink, DVURI.getSchema(), false);

          if (message.formatting != null) output.writeString(3, message.formatting, false);

          if (message.mappings != null) {
            for (TERMMAPPING mappings : message.mappings) {
              if (mappings != null) output.writeObject(4, mappings, TERMMAPPING.getSchema(), true);
            }
          }

          if (message.language != null)
            output.writeObject(5, message.language, CODEPHRASE.getSchema(), false);

          if (message.encoding != null)
            output.writeObject(6, message.encoding, CODEPHRASE.getSchema(), false);
        }
 public void writeTo(Output output, OBJECTVERSIONID message) throws IOException {
   if (message.value == null) throw new UninitializedMessageException(message);
   output.writeString(1, message.value, false);
 }