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

com.microsoft.schemas.office.visio.x2012.main.impl.TextTypeImpl Maven / Gradle / Ivy

/*
 * XML Type:  Text_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.TextType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Text_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class TextTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.TextType {
    private static final long serialVersionUID = 1L;
    
    public TextTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CP$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "cp");
    private static final javax.xml.namespace.QName PP$2 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "pp");
    private static final javax.xml.namespace.QName TP$4 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "tp");
    private static final javax.xml.namespace.QName FLD$6 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "fld");
    
    
    /**
     * Gets a List of "cp" elements
     */
    public java.util.List getCpList() {
        final class CpList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CpType get(int i)
                { return TextTypeImpl.this.getCpArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CpType set(int i, com.microsoft.schemas.office.visio.x2012.main.CpType o) {
                com.microsoft.schemas.office.visio.x2012.main.CpType old = TextTypeImpl.this.getCpArray(i);
                TextTypeImpl.this.setCpArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CpType o)
                { TextTypeImpl.this.insertNewCp(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.CpType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.CpType old = TextTypeImpl.this.getCpArray(i);
                TextTypeImpl.this.removeCp(i);
                return old;
            }
            
            @Override
            public int size()
                { return TextTypeImpl.this.sizeOfCpArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CpList();
        }
    }
    
    /**
     * Gets array of all "cp" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.CpType[] getCpArray() {
        return getXmlObjectArray(CP$0, new com.microsoft.schemas.office.visio.x2012.main.CpType[0]);
    }
    
    /**
     * Gets ith "cp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CpType getCpArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CpType)get_store().find_element_user(CP$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "cp" element
     */
    public int sizeOfCpArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CP$0);
        }
    }
    
    /**
     * Sets array of all "cp" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setCpArray(com.microsoft.schemas.office.visio.x2012.main.CpType[] cpArray) {
        check_orphaned();
        arraySetterHelper(cpArray, CP$0);
    }
    
    /**
     * Sets ith "cp" element
     */
    public void setCpArray(int i, com.microsoft.schemas.office.visio.x2012.main.CpType cp) {
        generatedSetterHelperImpl(cp, CP$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "cp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CpType insertNewCp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CpType)get_store().insert_element_user(CP$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "cp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CpType addNewCp() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CpType)get_store().add_element_user(CP$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "cp" element
     */
    public void removeCp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CP$0, i);
        }
    }
    
    /**
     * Gets a List of "pp" elements
     */
    public java.util.List getPpList() {
        final class PpList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.PpType get(int i)
                { return TextTypeImpl.this.getPpArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.PpType set(int i, com.microsoft.schemas.office.visio.x2012.main.PpType o) {
                com.microsoft.schemas.office.visio.x2012.main.PpType old = TextTypeImpl.this.getPpArray(i);
                TextTypeImpl.this.setPpArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.PpType o)
                { TextTypeImpl.this.insertNewPp(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.PpType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.PpType old = TextTypeImpl.this.getPpArray(i);
                TextTypeImpl.this.removePp(i);
                return old;
            }
            
            @Override
            public int size()
                { return TextTypeImpl.this.sizeOfPpArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new PpList();
        }
    }
    
    /**
     * Gets array of all "pp" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.PpType[] getPpArray() {
        return getXmlObjectArray(PP$2, new com.microsoft.schemas.office.visio.x2012.main.PpType[0]);
    }
    
    /**
     * Gets ith "pp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.PpType getPpArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.PpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.PpType)get_store().find_element_user(PP$2, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "pp" element
     */
    public int sizeOfPpArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PP$2);
        }
    }
    
    /**
     * Sets array of all "pp" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setPpArray(com.microsoft.schemas.office.visio.x2012.main.PpType[] ppArray) {
        check_orphaned();
        arraySetterHelper(ppArray, PP$2);
    }
    
    /**
     * Sets ith "pp" element
     */
    public void setPpArray(int i, com.microsoft.schemas.office.visio.x2012.main.PpType pp) {
        generatedSetterHelperImpl(pp, PP$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "pp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.PpType insertNewPp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.PpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.PpType)get_store().insert_element_user(PP$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "pp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.PpType addNewPp() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.PpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.PpType)get_store().add_element_user(PP$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "pp" element
     */
    public void removePp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PP$2, i);
        }
    }
    
    /**
     * Gets a List of "tp" elements
     */
    public java.util.List getTpList() {
        final class TpList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.TpType get(int i)
                { return TextTypeImpl.this.getTpArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.TpType set(int i, com.microsoft.schemas.office.visio.x2012.main.TpType o) {
                com.microsoft.schemas.office.visio.x2012.main.TpType old = TextTypeImpl.this.getTpArray(i);
                TextTypeImpl.this.setTpArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.TpType o)
                { TextTypeImpl.this.insertNewTp(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.TpType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.TpType old = TextTypeImpl.this.getTpArray(i);
                TextTypeImpl.this.removeTp(i);
                return old;
            }
            
            @Override
            public int size()
                { return TextTypeImpl.this.sizeOfTpArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new TpList();
        }
    }
    
    /**
     * Gets array of all "tp" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.TpType[] getTpArray() {
        return getXmlObjectArray(TP$4, new com.microsoft.schemas.office.visio.x2012.main.TpType[0]);
    }
    
    /**
     * Gets ith "tp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.TpType getTpArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.TpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.TpType)get_store().find_element_user(TP$4, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "tp" element
     */
    public int sizeOfTpArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TP$4);
        }
    }
    
    /**
     * Sets array of all "tp" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setTpArray(com.microsoft.schemas.office.visio.x2012.main.TpType[] tpArray) {
        check_orphaned();
        arraySetterHelper(tpArray, TP$4);
    }
    
    /**
     * Sets ith "tp" element
     */
    public void setTpArray(int i, com.microsoft.schemas.office.visio.x2012.main.TpType tp) {
        generatedSetterHelperImpl(tp, TP$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "tp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.TpType insertNewTp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.TpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.TpType)get_store().insert_element_user(TP$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "tp" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.TpType addNewTp() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.TpType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.TpType)get_store().add_element_user(TP$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "tp" element
     */
    public void removeTp(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TP$4, i);
        }
    }
    
    /**
     * Gets a List of "fld" elements
     */
    public java.util.List getFldList() {
        final class FldList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FldType get(int i)
                { return TextTypeImpl.this.getFldArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FldType set(int i, com.microsoft.schemas.office.visio.x2012.main.FldType o) {
                com.microsoft.schemas.office.visio.x2012.main.FldType old = TextTypeImpl.this.getFldArray(i);
                TextTypeImpl.this.setFldArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.FldType o)
                { TextTypeImpl.this.insertNewFld(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.FldType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.FldType old = TextTypeImpl.this.getFldArray(i);
                TextTypeImpl.this.removeFld(i);
                return old;
            }
            
            @Override
            public int size()
                { return TextTypeImpl.this.sizeOfFldArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new FldList();
        }
    }
    
    /**
     * Gets array of all "fld" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.FldType[] getFldArray() {
        return getXmlObjectArray(FLD$6, new com.microsoft.schemas.office.visio.x2012.main.FldType[0]);
    }
    
    /**
     * Gets ith "fld" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FldType getFldArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FldType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FldType)get_store().find_element_user(FLD$6, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "fld" element
     */
    public int sizeOfFldArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FLD$6);
        }
    }
    
    /**
     * Sets array of all "fld" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setFldArray(com.microsoft.schemas.office.visio.x2012.main.FldType[] fldArray) {
        check_orphaned();
        arraySetterHelper(fldArray, FLD$6);
    }
    
    /**
     * Sets ith "fld" element
     */
    public void setFldArray(int i, com.microsoft.schemas.office.visio.x2012.main.FldType fld) {
        generatedSetterHelperImpl(fld, FLD$6, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "fld" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FldType insertNewFld(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FldType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FldType)get_store().insert_element_user(FLD$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "fld" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.FldType addNewFld() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.FldType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.FldType)get_store().add_element_user(FLD$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "fld" element
     */
    public void removeFld(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FLD$6, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy