org.openxmlformats.schemas.xpackage.x2006.contentTypes.impl.DefaultDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Default
* Namespace: http://schemas.openxmlformats.org/package/2006/content-types
* Java type: org.openxmlformats.schemas.xpackage.x2006.contentTypes.DefaultDocument
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.xpackage.x2006.contentTypes.impl;
/**
* A document containing one Default(@http://schemas.openxmlformats.org/package/2006/content-types) element.
*
* This is a complex type.
*/
public class DefaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.xpackage.x2006.contentTypes.DefaultDocument
{
public DefaultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DEFAULT$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/package/2006/content-types", "Default");
/**
* Gets the "Default" element
*/
public org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault getDefault()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault target = null;
target = (org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault)get_store().find_element_user(DEFAULT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Default" element
*/
public void setDefault(org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault xdefault)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault target = null;
target = (org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault)get_store().find_element_user(DEFAULT$0, 0);
if (target == null)
{
target = (org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault)get_store().add_element_user(DEFAULT$0);
}
target.set(xdefault);
}
}
/**
* Appends and returns a new empty "Default" element
*/
public org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault addNewDefault()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault target = null;
target = (org.openxmlformats.schemas.xpackage.x2006.contentTypes.CTDefault)get_store().add_element_user(DEFAULT$0);
return target;
}
}
}