org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl.I2DocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: i2
* Namespace: http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
* Java type: org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.I2Document
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* A document containing one i2(@http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes) element.
*
* This is a complex type.
*/
public class I2DocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.I2Document {
private static final long serialVersionUID = 1L;
public I2DocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes", "i2"),
};
/**
* Gets the "i2" element
*/
@Override
public short getI2() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? 0 : target.getShortValue();
}
}
/**
* Gets (as xml) the "i2" element
*/
@Override
public org.apache.xmlbeans.XmlShort xgetI2() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlShort target = null;
target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return target;
}
}
/**
* Sets the "i2" element
*/
@Override
public void setI2(short i2) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
}
target.setShortValue(i2);
}
}
/**
* Sets (as xml) the "i2" element
*/
@Override
public void xsetI2(org.apache.xmlbeans.XmlShort i2) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlShort target = null;
target = (org.apache.xmlbeans.XmlShort)get_store().find_element_user(PROPERTY_QNAME[0], 0);
if (target == null) {
target = (org.apache.xmlbeans.XmlShort)get_store().add_element_user(PROPERTY_QNAME[0]);
}
target.set(i2);
}
}
}