org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTNumFmtImpl Maven / Gradle / Ivy
/*
* XML Type: CT_NumFmt
* Namespace: http://schemas.openxmlformats.org/wordprocessingml/2006/main
* Java type: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTNumFmt
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.wordprocessingml.x2006.main.impl;
/**
* An XML CT_NumFmt(@http://schemas.openxmlformats.org/wordprocessingml/2006/main).
*
* This is a complex type.
*/
public class CTNumFmtImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.wordprocessingml.x2006.main.CTNumFmt {
private static final long serialVersionUID = 1L;
public CTNumFmtImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName VAL$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "val");
private static final javax.xml.namespace.QName FORMAT$2 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "format");
/**
* Gets the "val" attribute
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat.Enum getVal() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VAL$0);
if (target == null) {
return null;
}
return (org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "val" attribute
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat xgetVal() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat)get_store().find_attribute_user(VAL$0);
return target;
}
}
/**
* Sets the "val" attribute
*/
public void setVal(org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat.Enum val) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VAL$0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VAL$0);
}
target.setEnumValue(val);
}
}
/**
* Sets (as xml) the "val" attribute
*/
public void xsetVal(org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat val) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat)get_store().find_attribute_user(VAL$0);
if (target == null) {
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.STNumberFormat)get_store().add_attribute_user(VAL$0);
}
target.set(val);
}
}
/**
* Gets the "format" attribute
*/
public java.lang.String getFormat() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMAT$2);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "format" attribute
*/
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString xgetFormat() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString)get_store().find_attribute_user(FORMAT$2);
return target;
}
}
/**
* True if has "format" attribute
*/
public boolean isSetFormat() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(FORMAT$2) != null;
}
}
/**
* Sets the "format" attribute
*/
public void setFormat(java.lang.String format) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMAT$2);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMAT$2);
}
target.setStringValue(format);
}
}
/**
* Sets (as xml) the "format" attribute
*/
public void xsetFormat(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString format) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString)get_store().find_attribute_user(FORMAT$2);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STString)get_store().add_attribute_user(FORMAT$2);
}
target.set(format);
}
}
/**
* Unsets the "format" attribute
*/
public void unsetFormat() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(FORMAT$2);
}
}
}