org.openxmlformats.schemas.drawingml.x2006.main.impl.CTLineEndPropertiesImpl Maven / Gradle / Ivy
/*
* XML Type: CT_LineEndProperties
* Namespace: http://schemas.openxmlformats.org/drawingml/2006/main
* Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTLineEndProperties
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.drawingml.x2006.main.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML CT_LineEndProperties(@http://schemas.openxmlformats.org/drawingml/2006/main).
*
* This is a complex type.
*/
public class CTLineEndPropertiesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.drawingml.x2006.main.CTLineEndProperties {
private static final long serialVersionUID = 1L;
public CTLineEndPropertiesImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "type"),
new QName("", "w"),
new QName("", "len"),
};
/**
* Gets the "type" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType.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]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(PROPERTY_QNAME[0]);
}
return (target == null) ? null : (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "type" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType xgetType() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType)get_default_attribute_value(PROPERTY_QNAME[0]);
}
return target;
}
}
/**
* True if has "type" attribute
*/
@Override
public boolean isSetType() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "type" attribute
*/
@Override
public void setType(org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType.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.main.STLineEndType type) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndType)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(type);
}
}
/**
* Unsets the "type" attribute
*/
@Override
public void unsetType() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
/**
* Gets the "w" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth.Enum getW() {
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 : (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "w" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth xgetW() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* True if has "w" attribute
*/
@Override
public boolean isSetW() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[1]) != null;
}
}
/**
* Sets the "w" attribute
*/
@Override
public void setW(org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth.Enum w) {
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.setEnumValue(w);
}
}
/**
* Sets (as xml) the "w" attribute
*/
@Override
public void xsetW(org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth w) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndWidth)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(w);
}
}
/**
* Unsets the "w" attribute
*/
@Override
public void unsetW() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[1]);
}
}
/**
* Gets the "len" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength.Enum getLen() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return (target == null) ? null : (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "len" attribute
*/
@Override
public org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength xgetLen() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* True if has "len" attribute
*/
@Override
public boolean isSetLen() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[2]) != null;
}
}
/**
* Sets the "len" attribute
*/
@Override
public void setLen(org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength.Enum len) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.setEnumValue(len);
}
}
/**
* Sets (as xml) the "len" attribute
*/
@Override
public void xsetLen(org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength len) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength target = null;
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.openxmlformats.schemas.drawingml.x2006.main.STLineEndLength)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(len);
}
}
/**
* Unsets the "len" attribute
*/
@Override
public void unsetLen() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[2]);
}
}
}