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

com.microsoft.schemas.office.visio.x2012.main.impl.PrimaryKeyTypeImpl 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:  PrimaryKey_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.PrimaryKeyType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML PrimaryKey_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class PrimaryKeyTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.PrimaryKeyType {
    private static final long serialVersionUID = 1L;
    
    public PrimaryKeyTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ROWKEYVALUE$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "RowKeyValue");
    private static final javax.xml.namespace.QName COLUMNNAMEID$2 = 
        new javax.xml.namespace.QName("", "ColumnNameID");
    
    
    /**
     * Gets a List of "RowKeyValue" elements
     */
    public java.util.List getRowKeyValueList() {
        final class RowKeyValueList extends java.util.AbstractList {
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType get(int i)
                { return PrimaryKeyTypeImpl.this.getRowKeyValueArray(i); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType set(int i, com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType o) {
                com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType old = PrimaryKeyTypeImpl.this.getRowKeyValueArray(i);
                PrimaryKeyTypeImpl.this.setRowKeyValueArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType o)
                { PrimaryKeyTypeImpl.this.insertNewRowKeyValue(i).set(o); }
            
            @Override
            public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType remove(int i) {
                com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType old = PrimaryKeyTypeImpl.this.getRowKeyValueArray(i);
                PrimaryKeyTypeImpl.this.removeRowKeyValue(i);
                return old;
            }
            
            @Override
            public int size()
                { return PrimaryKeyTypeImpl.this.sizeOfRowKeyValueArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new RowKeyValueList();
        }
    }
    
    /**
     * Gets array of all "RowKeyValue" elements
     */
    public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType[] getRowKeyValueArray() {
        return getXmlObjectArray(ROWKEYVALUE$0, new com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType[0]);
    }
    
    /**
     * Gets ith "RowKeyValue" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType getRowKeyValueArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType)get_store().find_element_user(ROWKEYVALUE$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "RowKeyValue" element
     */
    public int sizeOfRowKeyValueArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ROWKEYVALUE$0);
        }
    }
    
    /**
     * Sets array of all "RowKeyValue" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setRowKeyValueArray(com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType[] rowKeyValueArray) {
        check_orphaned();
        arraySetterHelper(rowKeyValueArray, ROWKEYVALUE$0);
    }
    
    /**
     * Sets ith "RowKeyValue" element
     */
    public void setRowKeyValueArray(int i, com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType rowKeyValue) {
        generatedSetterHelperImpl(rowKeyValue, ROWKEYVALUE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RowKeyValue" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType insertNewRowKeyValue(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType)get_store().insert_element_user(ROWKEYVALUE$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RowKeyValue" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType addNewRowKeyValue() {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.RowKeyValueType)get_store().add_element_user(ROWKEYVALUE$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "RowKeyValue" element
     */
    public void removeRowKeyValue(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ROWKEYVALUE$0, i);
        }
    }
    
    /**
     * Gets the "ColumnNameID" attribute
     */
    public java.lang.String getColumnNameID() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COLUMNNAMEID$2);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ColumnNameID" attribute
     */
    public org.apache.xmlbeans.XmlString xgetColumnNameID() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COLUMNNAMEID$2);
            return target;
        }
    }
    
    /**
     * Sets the "ColumnNameID" attribute
     */
    public void setColumnNameID(java.lang.String columnNameID) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COLUMNNAMEID$2);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COLUMNNAMEID$2);
            }
            target.setStringValue(columnNameID);
        }
    }
    
    /**
     * Sets (as xml) the "ColumnNameID" attribute
     */
    public void xsetColumnNameID(org.apache.xmlbeans.XmlString columnNameID) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COLUMNNAMEID$2);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(COLUMNNAMEID$2);
            }
            target.set(columnNameID);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy