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

schemasMicrosoftComVml.impl.ShapeDocumentImpl 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

There is a newer version: 1.4
Show newest version
/*
 * An XML document type.
 * Localname: shape
 * Namespace: urn:schemas-microsoft-com:vml
 * Java type: schemasMicrosoftComVml.ShapeDocument
 *
 * Automatically generated - do not modify.
 */
package schemasMicrosoftComVml.impl;
/**
 * A document containing one shape(@urn:schemas-microsoft-com:vml) element.
 *
 * This is a complex type.
 */
public class ShapeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements schemasMicrosoftComVml.ShapeDocument
{
    
    public ShapeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SHAPE$0 = 
        new javax.xml.namespace.QName("urn:schemas-microsoft-com:vml", "shape");
    
    
    /**
     * Gets the "shape" element
     */
    public schemasMicrosoftComVml.CTShape getShape()
    {
        synchronized (monitor())
        {
            check_orphaned();
            schemasMicrosoftComVml.CTShape target = null;
            target = (schemasMicrosoftComVml.CTShape)get_store().find_element_user(SHAPE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "shape" element
     */
    public void setShape(schemasMicrosoftComVml.CTShape shape)
    {
        synchronized (monitor())
        {
            check_orphaned();
            schemasMicrosoftComVml.CTShape target = null;
            target = (schemasMicrosoftComVml.CTShape)get_store().find_element_user(SHAPE$0, 0);
            if (target == null)
            {
                target = (schemasMicrosoftComVml.CTShape)get_store().add_element_user(SHAPE$0);
            }
            target.set(shape);
        }
    }
    
    /**
     * Appends and returns a new empty "shape" element
     */
    public schemasMicrosoftComVml.CTShape addNewShape()
    {
        synchronized (monitor())
        {
            check_orphaned();
            schemasMicrosoftComVml.CTShape target = null;
            target = (schemasMicrosoftComVml.CTShape)get_store().add_element_user(SHAPE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy