/* * XML Type: CT_PositivePercentage * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main * Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTPositivePercentage * * Automatically generated - do not modify. */ package org.openxmlformats.schemas.drawingml.x2006.main.impl; /** * An XML CT_PositivePercentage(@http://schemas.openxmlformats.org/drawingml/2006/main). * * This is a complex type. */ public class CTPositivePercentageImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTPositivePercentage { public CTPositivePercentageImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName VAL$0 = new javax.xml.namespace.QName("", "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.drawingml.x2006.main.STPositivePercentage xgetVal() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPositivePercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPositivePercentage)get_store().find_attribute_user(VAL$0); return target; } } /** * 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.drawingml.x2006.main.STPositivePercentage val) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.drawingml.x2006.main.STPositivePercentage target = null; target = (org.openxmlformats.schemas.drawingml.x2006.main.STPositivePercentage)get_store().find_attribute_user(VAL$0); if (target == null) { target = (org.openxmlformats.schemas.drawingml.x2006.main.STPositivePercentage)get_store().add_attribute_user(VAL$0); } target.set(val); } } }