/** * Sets the value for <b>data</b> () * * <p> * <b>Definition:</b> * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 * </p> */ public AttachmentDt setData( byte[] theBytes) { myData = new Base64BinaryDt(theBytes); return this; }
/** * Gets the value(s) for <b>data</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 * </p> */ public byte[] getData() { return getDataElement().getValue(); }
/** * Constructor */ @SimpleSetter public Base64BinaryDt(@SimpleSetter.Parameter(name = "theBytes") byte[] theBytes) { setValue(theBytes); }
public Binary setContentAsBase64(String theContent) { myContent.setValueAsString(theContent); return this; }
public String getContentAsBase64() { return myContent.getValueAsString(); }
@Override public boolean isEmpty() { return (myContent.isEmpty()) && ElementUtil.isEmpty(myContentType); }
@Override public Binary setContentAsBase64(String theContent) { getContentElement().setValueAsString(theContent); return this; }
@Override public String getContentAsBase64() { return getContentElement().getValueAsString(); }
/** * Sets the value for <b>hash</b> () * * <p> * <b>Definition:</b> * The calculated hash of the data using SHA-1. Represented using base64 * </p> */ public AttachmentDt setHash( byte[] theBytes) { myHash = new Base64BinaryDt(theBytes); return this; }
/** * Gets the value(s) for <b>blob</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The base64 encoding of the Signature content * </p> */ public byte[] getBlob() { return getBlobElement().getValue(); }
public Binary setContent(byte[] theContent) { myContent.setValue(theContent); return this; }
/** * Sets the value for <b>blob</b> () * * <p> * <b>Definition:</b> * The base64 encoding of the Signature content * </p> */ public SignatureDt setBlob( byte[] theBytes) { myBlob = new Base64BinaryDt(theBytes); return this; }
/** * Gets the value(s) for <b>value</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * * </p> */ public byte[] getValue() { return getValueElement().getValue(); }
/** * Constructor */ @SimpleSetter public Base64BinaryDt(@SimpleSetter.Parameter(name = "theBytes") byte[] theBytes) { setValue(theBytes); }
/** * Sets the value for <b>value</b> () * * <p> * <b>Definition:</b> * * </p> */ public ObjectDetail setValue( byte[] theBytes) { myValue = new Base64BinaryDt(theBytes); return this; }
/** * Gets the value(s) for <b>hash</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The calculated hash of the data using SHA-1. Represented using base64 * </p> */ public byte[] getHash() { return getHashElement().getValue(); }
/** * Sets the value for <b>query</b> () * * <p> * <b>Definition:</b> * The actual query for a query-type participant object * </p> */ public ObjectElement setQuery( byte[] theBytes) { myQuery = new Base64BinaryDt(theBytes); return this; }
/** * Gets the value(s) for <b>query</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The actual query for a query-type participant object * </p> */ public byte[] getQuery() { return getQueryElement().getValue(); }
/** * Gets the value(s) for <b>hash</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The calculated hash of the data using SHA-1. Represented using base64 * </p> */ public Base64BinaryDt getHashElement() { if (myHash == null) { myHash = new Base64BinaryDt(); } return myHash; }
public byte[] getContent() { return myContent.getValue(); }