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

org.openxmlformats.schemas.xpackage.x2006.relationships.impl.RelationshipsDocumentImpl Maven / Gradle / Ivy

Go to download

This OSGi bundle wraps poi, poi-contrib, poi-ooxml, poi-ooxml-schemas and poi-scratchpad ${pkgVersion} jar files.

There is a newer version: 5.2.3_1
Show newest version
/*
 * An XML document type.
 * Localname: Relationships
 * Namespace: http://schemas.openxmlformats.org/package/2006/relationships
 * Java type: org.openxmlformats.schemas.xpackage.x2006.relationships.RelationshipsDocument
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.xpackage.x2006.relationships.impl;
/**
 * A document containing one Relationships(@http://schemas.openxmlformats.org/package/2006/relationships) element.
 *
 * This is a complex type.
 */
public class RelationshipsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.xpackage.x2006.relationships.RelationshipsDocument
{
    
    public RelationshipsDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RELATIONSHIPS$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/package/2006/relationships", "Relationships");
    
    
    /**
     * Gets the "Relationships" element
     */
    public org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships getRelationships()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships target = null;
            target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships)get_store().find_element_user(RELATIONSHIPS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Relationships" element
     */
    public void setRelationships(org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships relationships)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships target = null;
            target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships)get_store().find_element_user(RELATIONSHIPS$0, 0);
            if (target == null)
            {
                target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships)get_store().add_element_user(RELATIONSHIPS$0);
            }
            target.set(relationships);
        }
    }
    
    /**
     * Appends and returns a new empty "Relationships" element
     */
    public org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships addNewRelationships()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships target = null;
            target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationships)get_store().add_element_user(RELATIONSHIPS$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy