org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTTextScaleImpl 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: CT_TextScale
* Namespace: http://schemas.openxmlformats.org/wordprocessingml/2006/main
* Java type: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTextScale
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.wordprocessingml.x2006.main.impl;
/**
* An XML CT_TextScale(@http://schemas.openxmlformats.org/wordprocessingml/2006/main).
*
* This is a complex type.
*/
public class CTTextScaleImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTextScale
{
public CTTextScaleImpl(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");
/**
* Gets the "val" attribute
*/
public int 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 0;
}
return target.getIntValue();
}
}
/**
* Gets (as xml) the "val" attribute
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale xgetVal()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale)get_store().find_attribute_user(VAL$0);
return target;
}
}
/**
* True if has "val" attribute
*/
public boolean isSetVal()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(VAL$0) != null;
}
}
/**
* Sets the "val" attribute
*/
public void setVal(int 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.setIntValue(val);
}
}
/**
* Sets (as xml) the "val" attribute
*/
public void xsetVal(org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale val)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale)get_store().find_attribute_user(VAL$0);
if (target == null)
{
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.STTextScale)get_store().add_attribute_user(VAL$0);
}
target.set(val);
}
}
/**
* Unsets the "val" attribute
*/
public void unsetVal()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(VAL$0);
}
}
}