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

org.openxmlformats.schemas.xpackage.x2006.relationships.impl.RelationshipDocumentImpl 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: Relationship
 * Namespace: http://schemas.openxmlformats.org/package/2006/relationships
 * Java type: org.openxmlformats.schemas.xpackage.x2006.relationships.RelationshipDocument
 *
 * Automatically generated - do not modify.
 */
package org.openxmlformats.schemas.xpackage.x2006.relationships.impl;
/**
 * A document containing one Relationship(@http://schemas.openxmlformats.org/package/2006/relationships) element.
 *
 * This is a complex type.
 */
public class RelationshipDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.xpackage.x2006.relationships.RelationshipDocument
{
    
    public RelationshipDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RELATIONSHIP$0 = 
        new javax.xml.namespace.QName("http://schemas.openxmlformats.org/package/2006/relationships", "Relationship");
    
    
    /**
     * Gets the "Relationship" element
     */
    public org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship getRelationship()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship target = null;
            target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship)get_store().find_element_user(RELATIONSHIP$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Relationship" element
     */
    public void setRelationship(org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship relationship)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship target = null;
            target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship)get_store().find_element_user(RELATIONSHIP$0, 0);
            if (target == null)
            {
                target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship)get_store().add_element_user(RELATIONSHIP$0);
            }
            target.set(relationship);
        }
    }
    
    /**
     * Appends and returns a new empty "Relationship" element
     */
    public org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship addNewRelationship()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship target = null;
            target = (org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship)get_store().add_element_user(RELATIONSHIP$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy