com.microsoft.schemas.office.visio.x2012.main.impl.PageContentsTypeImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip
/*
* XML Type: PageContents_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.PageContentsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML PageContents_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class PageContentsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.PageContentsType
{
public PageContentsTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SHAPES$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Shapes");
private static final javax.xml.namespace.QName CONNECTS$2 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Connects");
/**
* Gets the "Shapes" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ShapesType getShapes()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ShapesType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ShapesType)get_store().find_element_user(SHAPES$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "Shapes" element
*/
public boolean isSetShapes()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SHAPES$0) != 0;
}
}
/**
* Sets the "Shapes" element
*/
public void setShapes(com.microsoft.schemas.office.visio.x2012.main.ShapesType shapes)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ShapesType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ShapesType)get_store().find_element_user(SHAPES$0, 0);
if (target == null)
{
target = (com.microsoft.schemas.office.visio.x2012.main.ShapesType)get_store().add_element_user(SHAPES$0);
}
target.set(shapes);
}
}
/**
* Appends and returns a new empty "Shapes" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ShapesType addNewShapes()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ShapesType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ShapesType)get_store().add_element_user(SHAPES$0);
return target;
}
}
/**
* Unsets the "Shapes" element
*/
public void unsetShapes()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SHAPES$0, 0);
}
}
/**
* Gets the "Connects" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ConnectsType getConnects()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectsType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectsType)get_store().find_element_user(CONNECTS$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "Connects" element
*/
public boolean isSetConnects()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONNECTS$2) != 0;
}
}
/**
* Sets the "Connects" element
*/
public void setConnects(com.microsoft.schemas.office.visio.x2012.main.ConnectsType connects)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectsType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectsType)get_store().find_element_user(CONNECTS$2, 0);
if (target == null)
{
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectsType)get_store().add_element_user(CONNECTS$2);
}
target.set(connects);
}
}
/**
* Appends and returns a new empty "Connects" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ConnectsType addNewConnects()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectsType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectsType)get_store().add_element_user(CONNECTS$2);
return target;
}
}
/**
* Unsets the "Connects" element
*/
public void unsetConnects()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONNECTS$2, 0);
}
}
}