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

com.microsoft.schemas.office.visio.x2012.main.impl.TriggerTypeImpl 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:  Trigger_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.TriggerType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Trigger_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class TriggerTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.TriggerType
{
    private static final long serialVersionUID = 1L;
    
    public TriggerTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName REFBY$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "RefBy");
    private static final javax.xml.namespace.QName N$2 = 
        new javax.xml.namespace.QName("", "N");
    
    
    /**
     * Gets a List of "RefBy" elements
     */
    public java.util.List getRefByList()
    {
        final class RefByList extends java.util.AbstractList
        {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefByType get(int i)
                { return TriggerTypeImpl.this.getRefByArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefByType set(int i, com.microsoft.schemas.office.visio.x2012.main.RefByType o)
            {
                com.microsoft.schemas.office.visio.x2012.main.RefByType old = TriggerTypeImpl.this.getRefByArray(i);
                TriggerTypeImpl.this.setRefByArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.RefByType o)
                { TriggerTypeImpl.this.insertNewRefBy(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RefByType remove(int i)
            {
                com.microsoft.schemas.office.visio.x2012.main.RefByType old = TriggerTypeImpl.this.getRefByArray(i);
                TriggerTypeImpl.this.removeRefBy(i);
                return old;
            }
            
            @Override
            public int size()
                { return TriggerTypeImpl.this.sizeOfRefByArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new RefByList();
        }
    }
    
    /**
     * Gets array of all "RefBy" elements
     * @deprecated
     */
    @Deprecated
    public com.microsoft.schemas.office.visio.x2012.main.RefByType[] getRefByArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(REFBY$0, targetList);
            com.microsoft.schemas.office.visio.x2012.main.RefByType[] result = new com.microsoft.schemas.office.visio.x2012.main.RefByType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "RefBy" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefByType getRefByArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefByType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefByType)get_store().find_element_user(REFBY$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "RefBy" element
     */
    public int sizeOfRefByArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REFBY$0);
        }
    }
    
    /**
     * Sets array of all "RefBy" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setRefByArray(com.microsoft.schemas.office.visio.x2012.main.RefByType[] refByArray)
    {
        check_orphaned();
        arraySetterHelper(refByArray, REFBY$0);
    }
    
    /**
     * Sets ith "RefBy" element
     */
    public void setRefByArray(int i, com.microsoft.schemas.office.visio.x2012.main.RefByType refBy)
    {
        generatedSetterHelperImpl(refBy, REFBY$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RefBy" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefByType insertNewRefBy(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefByType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefByType)get_store().insert_element_user(REFBY$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RefBy" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RefByType addNewRefBy()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RefByType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RefByType)get_store().add_element_user(REFBY$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "RefBy" element
     */
    public void removeRefBy(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REFBY$0, i);
        }
    }
    
    /**
     * Gets the "N" attribute
     */
    public java.lang.String getN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$2);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "N" attribute
     */
    public org.apache.xmlbeans.XmlString xgetN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(N$2);
            return target;
        }
    }
    
    /**
     * Sets the "N" attribute
     */
    public void setN(java.lang.String n)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(N$2);
            }
            target.setStringValue(n);
        }
    }
    
    /**
     * Sets (as xml) the "N" attribute
     */
    public void xsetN(org.apache.xmlbeans.XmlString n)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(N$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(N$2);
            }
            target.set(n);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy