/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getText() != null) sb.append("Text: ").append(getText()).append(","); if (getHtml() != null) sb.append("Html: ").append(getHtml()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Body == false) return false; Body other = (Body) obj; if (other.getText() == null ^ this.getText() == null) return false; if (other.getText() != null && other.getText().equals(this.getText()) == false) return false; if (other.getHtml() == null ^ this.getHtml() == null) return false; if (other.getHtml() != null && other.getHtml().equals(this.getHtml()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getText() != null) sb.append("Text: " + getText() + ","); if (getHtml() != null) sb.append("Html: " + getHtml()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Body == false) return false; Body other = (Body) obj; if (other.getText() == null ^ this.getText() == null) return false; if (other.getText() != null && other.getText().equals(this.getText()) == false) return false; if (other.getHtml() == null ^ this.getHtml() == null) return false; if (other.getHtml() != null && other.getHtml().equals(this.getHtml()) == false) return false; return true; } }
Content html = body.getHtml(); if (html != null) {
public void marshall(Body _body, Request<?> request, String _prefix) { String prefix; if (_body.getText() != null) { prefix = _prefix + "Text"; Content text = _body.getText(); ContentStaxMarshaller.getInstance().marshall(text, request, prefix + "."); } if (_body.getHtml() != null) { prefix = _prefix + "Html"; Content html = _body.getHtml(); ContentStaxMarshaller.getInstance().marshall(html, request, prefix + "."); } }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getText() != null) sb.append("Text: ").append(getText()).append(","); if (getHtml() != null) sb.append("Html: ").append(getHtml()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Body == false) return false; Body other = (Body) obj; if (other.getText() == null ^ this.getText() == null) return false; if (other.getText() != null && other.getText().equals(this.getText()) == false) return false; if (other.getHtml() == null ^ this.getHtml() == null) return false; if (other.getHtml() != null && other.getHtml().equals(this.getHtml()) == false) return false; return true; }
Content html = body.getHtml(); if (html != null) {