All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTObjectAnchorImpl Maven / Gradle / Ivy

Go to download

XmlBeans generated from the Ecma supplied xsds (since POI 5.0.0, the 5th edition is used): https://www.ecma-international.org/publications/standards/Ecma-376.htm

There is a newer version: 5.2.5
Show newest version
/*
 * XML Type:  CT_ObjectAnchor
 * Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
 * Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTObjectAnchor
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
/**
 * An XML CT_ObjectAnchor(@http://schemas.openxmlformats.org/spreadsheetml/2006/main).
 *
 * This is a complex type.
 */
public class CTObjectAnchorImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.spreadsheetml.x2006.main.CTObjectAnchor {
    private static final long serialVersionUID = 1L;
    
    public CTObjectAnchorImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FROM$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing", "from");
    private static final javax.xml.namespace.QName TO$2 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing", "to");
    private static final javax.xml.namespace.QName MOVEWITHCELLS$4 = 
        new javax.xml.namespace.QName("", "moveWithCells");
    private static final javax.xml.namespace.QName SIZEWITHCELLS$6 = 
        new javax.xml.namespace.QName("", "sizeWithCells");
    
    
    /**
     * Gets the "from" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker getFrom() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker)get_store().find_element_user(FROM$0, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "from" element
     */
    public void setFrom(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker from) {
        generatedSetterHelperImpl(from, FROM$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "from" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker addNewFrom() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker)get_store().add_element_user(FROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "to" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker getTo() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker)get_store().find_element_user(TO$2, 0);
            if (target == null) {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "to" element
     */
    public void setTo(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker to) {
        generatedSetterHelperImpl(to, TO$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "to" element
     */
    public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker addNewTo() {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker target = null;
            target = (org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker)get_store().add_element_user(TO$2);
            return target;
        }
    }
    
    /**
     * Gets the "moveWithCells" attribute
     */
    public boolean getMoveWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MOVEWITHCELLS$4);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(MOVEWITHCELLS$4);
            }
            if (target == null) {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "moveWithCells" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetMoveWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(MOVEWITHCELLS$4);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(MOVEWITHCELLS$4);
            }
            return target;
        }
    }
    
    /**
     * True if has "moveWithCells" attribute
     */
    public boolean isSetMoveWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(MOVEWITHCELLS$4) != null;
        }
    }
    
    /**
     * Sets the "moveWithCells" attribute
     */
    public void setMoveWithCells(boolean moveWithCells) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MOVEWITHCELLS$4);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MOVEWITHCELLS$4);
            }
            target.setBooleanValue(moveWithCells);
        }
    }
    
    /**
     * Sets (as xml) the "moveWithCells" attribute
     */
    public void xsetMoveWithCells(org.apache.xmlbeans.XmlBoolean moveWithCells) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(MOVEWITHCELLS$4);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(MOVEWITHCELLS$4);
            }
            target.set(moveWithCells);
        }
    }
    
    /**
     * Unsets the "moveWithCells" attribute
     */
    public void unsetMoveWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(MOVEWITHCELLS$4);
        }
    }
    
    /**
     * Gets the "sizeWithCells" attribute
     */
    public boolean getSizeWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SIZEWITHCELLS$6);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SIZEWITHCELLS$6);
            }
            if (target == null) {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "sizeWithCells" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetSizeWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SIZEWITHCELLS$6);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SIZEWITHCELLS$6);
            }
            return target;
        }
    }
    
    /**
     * True if has "sizeWithCells" attribute
     */
    public boolean isSetSizeWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(SIZEWITHCELLS$6) != null;
        }
    }
    
    /**
     * Sets the "sizeWithCells" attribute
     */
    public void setSizeWithCells(boolean sizeWithCells) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SIZEWITHCELLS$6);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SIZEWITHCELLS$6);
            }
            target.setBooleanValue(sizeWithCells);
        }
    }
    
    /**
     * Sets (as xml) the "sizeWithCells" attribute
     */
    public void xsetSizeWithCells(org.apache.xmlbeans.XmlBoolean sizeWithCells) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SIZEWITHCELLS$6);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SIZEWITHCELLS$6);
            }
            target.set(sizeWithCells);
        }
    }
    
    /**
     * Unsets the "sizeWithCells" attribute
     */
    public void unsetSizeWithCells() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(SIZEWITHCELLS$6);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy