org.openxmlformats.schemas.xpackage.x2006.relationships.impl.RelationshipDocumentImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.poi
Show all versions of org.apache.servicemix.bundles.poi
This OSGi bundle wraps poi, poi-contrib, poi-ooxml, poi-ooxml-schemas and poi-scratchpad ${pkgVersion} jar files.
/*
* 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;
}
}
}