public void setFieldValue(_Fields field, Object value) { switch (field) { case TYPE: if (value == null) { unsetType(); } else { setType((OffsetType) value); } break; case FIRST: if (value == null) { unsetFirst(); } else { setFirst((Long) value); } break; case LENGTH: if (value == null) { unsetLength(); } else { setLength((Integer) value); } break; case XPATH: if (value == null) { unsetXpath(); } else { setXpath((String) value); } break; case CONTENT_FORM: if (value == null) { unsetContent_form(); } else { setContent_form((String) value); } break; case VALUE: if (value == null) { unsetValue(); } else { setValue((ByteBuffer) value); } break; } }
/** bytes specified by this offset extracted from the original; just to assist in debugging */ public Offset setValue(byte[] value) { setValue(value == null ? (ByteBuffer) null : ByteBuffer.wrap(value)); return this; }
/** bytes specified by this offset extracted from the original; just to assist in debugging */ public byte[] getValue() { setValue(org.apache.thrift.TBaseHelper.rightSize(value)); return value == null ? null : value.array(); }