org.openxmlformats.schemas.drawingml.x2006.diagram.impl.CTParameterImpl Maven / Gradle / Ivy
/*
* XML Type: CT_Parameter
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/diagram
* Java type: org.openxmlformats.schemas.drawingml.x2006.diagram.CTParameter
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.diagram.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML CT_Parameter(@http://schemas.openxmlformats.org/drawingml/2006/diagram).
*
* This is a complex type.
*/
public class CTParameterImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.diagram.CTParameter {
private static final long serialVersionUID = 1L;
public CTParameterImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "type"),
new QName("", "val"),
};
/**
* Gets the "type" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId.Enum getType() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return (target == null) ? null : (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "type" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId xgetType() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Sets the "type" attribute
*/
@Override
public void setType(org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId.Enum type) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.setEnumValue(type);
}
}
/**
* Sets (as xml) the "type" attribute
*/
@Override
public void xsetType(org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId type) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterId)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(type);
}
}
/**
* Gets the "val" attribute
*/
@Override
public java.lang.Object getVal() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return (target == null) ? null : target.getObjectValue();
}
}
/**
* Gets (as xml) the "val" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal xgetVal() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Sets the "val" attribute
*/
@Override
public void setVal(java.lang.Object val) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.setObjectValue(val);
}
}
/**
* Sets (as xml) the "val" attribute
*/
@Override
public void xsetVal(org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal val) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.openxmlformats.schemas.drawingml.x2006.diagram.STParameterVal)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(val);
}
}
}