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

com.microsoft.schemas.office.visio.x2012.main.impl.FaceNamesTypeImpl 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!
/*
 * XML Type:  FaceNames_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.FaceNamesType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML FaceNames_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class FaceNamesTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.FaceNamesType
{
    private static final long serialVersionUID = 1L;
    
    public FaceNamesTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FACENAME$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "FaceName");
    
    
    /**
     * Gets a List of "FaceName" elements
     */
    public java.util.List getFaceNameList()
    {
        final class FaceNameList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FaceNameType get(int i)
                { return FaceNamesTypeImpl.this.getFaceNameArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FaceNameType set(int i, com.microsoft.schemas.office.visio.x2012.main.FaceNameType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.FaceNameType old = FaceNamesTypeImpl.this.getFaceNameArray(i);
                FaceNamesTypeImpl.this.setFaceNameArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.FaceNameType o)
                { FaceNamesTypeImpl.this.insertNewFaceName(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FaceNameType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.FaceNameType old = FaceNamesTypeImpl.this.getFaceNameArray(i);
                FaceNamesTypeImpl.this.removeFaceName(i);
                return old;
            }
            
            @Override
            public int size()
                { return FaceNamesTypeImpl.this.sizeOfFaceNameArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new FaceNameList();
        }
    }
    
    /**
     * Gets array of all "FaceName" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.FaceNameType[] getFaceNameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(FACENAME$0, targetList);
            com.microsoft.schemas.office.visio.x2012.main.FaceNameType[] result = new com.microsoft.schemas.office.visio.x2012.main.FaceNameType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "FaceName" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FaceNameType getFaceNameArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().find_element_user(FACENAME$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "FaceName" element
     */
    public int sizeOfFaceNameArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FACENAME$0);
        }
    }
    
    /**
     * Sets array of all "FaceName" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setFaceNameArray(com.microsoft.schemas.office.visio.x2012.main.FaceNameType[] faceNameArray)
    {
        check_orphaned();
        arraySetterHelper(faceNameArray, FACENAME$0);
    }
    
    /**
     * Sets ith "FaceName" element
     */
    public void setFaceNameArray(int i, com.microsoft.schemas.office.visio.x2012.main.FaceNameType faceName)
    {
        generatedSetterHelperImpl(faceName, FACENAME$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "FaceName" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FaceNameType insertNewFaceName(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().insert_element_user(FACENAME$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "FaceName" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FaceNameType addNewFaceName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().add_element_user(FACENAME$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "FaceName" element
     */
    public void removeFaceName(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FACENAME$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy