org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl.BlobDocumentImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip
The newest version!
/*
* An XML document type.
* Localname: blob
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
* Java type: org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.BlobDocument
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl;
/**
* A document containing one blob(@http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes) element.
*
* This is a complex type.
*/
public class BlobDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.BlobDocument
{
private static final long serialVersionUID = 1L;
public BlobDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName BLOB$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", "blob");
/**
* Gets the "blob" element
*/
public byte[] getBlob()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BLOB$0, 0);
if (target == null)
{
return null;
}
return target.getByteArrayValue();
}
}
/**
* Gets (as xml) the "blob" element
*/
public org.apache.xmlbeans.XmlBase64Binary xgetBlob()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBase64Binary target = null;
target = (org.apache.xmlbeans.XmlBase64Binary)get_store().find_element_user(BLOB$0, 0);
return target;
}
}
/**
* Sets the "blob" element
*/
public void setBlob(byte[] blob)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BLOB$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BLOB$0);
}
target.setByteArrayValue(blob);
}
}
/**
* Sets (as xml) the "blob" element
*/
public void xsetBlob(org.apache.xmlbeans.XmlBase64Binary blob)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBase64Binary target = null;
target = (org.apache.xmlbeans.XmlBase64Binary)get_store().find_element_user(BLOB$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBase64Binary)get_store().add_element_user(BLOB$0);
}
target.set(blob);
}
}
}