/* * An XML document type. * Localname: graphic * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main * Java type: org.openxmlformats.schemas.drawingml.x2006.main.GraphicDocument * * Automatically generated - do not modify. */ package org.openxmlformats.schemas.drawingml.x2006.main.impl; /** * A document containing one graphic(@http://schemas.openxmlformats.org/drawingml/2006/main) element. * * This is a complex type. */ public class GraphicDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.GraphicDocument { public GraphicDocumentImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName GRAPHIC$0 = new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/main", "graphic"); /** * Gets the "graphic" element */ public org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject getGraphic() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject)get_store().find_element_user(GRAPHIC$0, 0); if (target == null) { return null; } return target; } } /** * Sets the "graphic" element */ public void setGraphic(org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject graphic) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject)get_store().find_element_user(GRAPHIC$0, 0); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject)get_store().add_element_user(GRAPHIC$0); } target.set(graphic); } } /** * Appends and returns a new empty "graphic" element */ public org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject addNewGraphic() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.CTGraphicalObject)get_store().add_element_user(GRAPHIC$0); return target; } } }