org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl.I4DocumentImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds (since POI 5.0.0, the 5th edition is used):
https://www.ecma-international.org/publications/standards/Ecma-376.htm
/*
* An XML document type.
* Localname: i4
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
* Java type: org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.I4Document
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl;
/**
* A document containing one i4(@http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes) element.
*
* This is a complex type.
*/
public class I4DocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.I4Document {
private static final long serialVersionUID = 1L;
public I4DocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName I4$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", "i4");
/**
* Gets the "i4" element
*/
public int getI4() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(I4$0, 0);
if (target == null) {
return 0;
}
return target.getIntValue();
}
}
/**
* Gets (as xml) the "i4" element
*/
public org.apache.xmlbeans.XmlInt xgetI4() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(I4$0, 0);
return target;
}
}
/**
* Sets the "i4" element
*/
public void setI4(int i4) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(I4$0, 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(I4$0);
}
target.setIntValue(i4);
}
}
/**
* Sets (as xml) the "i4" element
*/
public void xsetI4(org.apache.xmlbeans.XmlInt i4) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(I4$0, 0);
if (target == null) {
target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(I4$0);
}
target.set(i4);
}
}
}