public StringBuilder toString()

in messages/src/main/java/com/epam/deltix/timebase/messages/schema/SchemaChangeMessage.java [373:443]


  public StringBuilder toString(StringBuilder str) {
    str.append("{ \"$type\":  \"SchemaChangeMessage\"");
    if (hasPreviousState()) {
      str.append(", \"previousState\": [");
      if (getPreviousState().size() > 0) {
        if (getPreviousState().get(0) == null) {
          str.append("null");
        } else {
          getPreviousState().get(0).toString(str);
        }
      }
      for (int i = 1; i < getPreviousState().size(); ++i) {
        str.append(", ");
        if (getPreviousState().get(i) == null) {
          str.append("null");
        } else {
          getPreviousState().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasNewState()) {
      str.append(", \"newState\": [");
      if (getNewState().size() > 0) {
        if (getNewState().get(0) == null) {
          str.append("null");
        } else {
          getNewState().get(0).toString(str);
        }
      }
      for (int i = 1; i < getNewState().size(); ++i) {
        str.append(", ");
        if (getNewState().get(i) == null) {
          str.append("null");
        } else {
          getNewState().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasDescriptorChangeActions()) {
      str.append(", \"descriptorChangeActions\": [");
      if (getDescriptorChangeActions().size() > 0) {
        if (getDescriptorChangeActions().get(0) == null) {
          str.append("null");
        } else {
          getDescriptorChangeActions().get(0).toString(str);
        }
      }
      for (int i = 1; i < getDescriptorChangeActions().size(); ++i) {
        str.append(", ");
        if (getDescriptorChangeActions().get(i) == null) {
          str.append("null");
        } else {
          getDescriptorChangeActions().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasVersion()) {
      str.append(", \"version\": ").append(getVersion());
    }
    if (hasTimeStampMs()) {
      str.append(", \"timeStampMs\": \"").append(getTimeStampMs()).append("\"");
    }
    if (hasSymbol()) {
      str.append(", \"symbol\": \"").append(getSymbol()).append("\"");
    }
    str.append("}");
    return str;
  }