org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl.IntDocumentImpl 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
/*
* An XML document type.
* Localname: int
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
* Java type: org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.IntDocument
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl;
/**
* A document containing one int(@http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes) element.
*
* This is a complex type.
*/
public class IntDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.IntDocument
{
public IntDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName INT$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", "int");
/**
* Gets the "int" element
*/
public int getInt()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INT$0, 0);
if (target == null)
{
return 0;
}
return target.getIntValue();
}
}
/**
* Gets (as xml) the "int" element
*/
public org.apache.xmlbeans.XmlInt xgetInt()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(INT$0, 0);
return target;
}
}
/**
* Sets the "int" element
*/
public void setInt(int xint)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INT$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INT$0);
}
target.setIntValue(xint);
}
}
/**
* Sets (as xml) the "int" element
*/
public void xsetInt(org.apache.xmlbeans.XmlInt xint)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(INT$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(INT$0);
}
target.set(xint);
}
}
}