com.microsoft.schemas.office.office.impl.CTColorMenuImpl Maven / Gradle / Ivy
/*
* XML Type: CT_ColorMenu
* Namespace: urn:schemas-microsoft-com:office:office
* Java type: com.microsoft.schemas.office.office.CTColorMenu
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.office.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML CT_ColorMenu(@urn:schemas-microsoft-com:office:office).
*
* This is a complex type.
*/
public class CTColorMenuImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.office.CTColorMenu {
private static final long serialVersionUID = 1L;
public CTColorMenuImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("urn:schemas-microsoft-com:vml", "ext"),
new QName("", "strokecolor"),
new QName("", "fillcolor"),
new QName("", "shadowcolor"),
new QName("", "extrusioncolor"),
};
/**
* Gets the "ext" attribute
*/
@Override
public com.microsoft.schemas.vml.STExt.Enum getExt() {
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 : (com.microsoft.schemas.vml.STExt.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "ext" attribute
*/
@Override
public com.microsoft.schemas.vml.STExt xgetExt() {
synchronized (monitor()) {
check_orphaned();
com.microsoft.schemas.vml.STExt target = null;
target = (com.microsoft.schemas.vml.STExt)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "ext" attribute
*/
@Override
public boolean isSetExt() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "ext" attribute
*/
@Override
public void setExt(com.microsoft.schemas.vml.STExt.Enum ext) {
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(ext);
}
}
/**
* Sets (as xml) the "ext" attribute
*/
@Override
public void xsetExt(com.microsoft.schemas.vml.STExt ext) {
synchronized (monitor()) {
check_orphaned();
com.microsoft.schemas.vml.STExt target = null;
target = (com.microsoft.schemas.vml.STExt)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (com.microsoft.schemas.vml.STExt)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(ext);
}
}
/**
* Unsets the "ext" attribute
*/
@Override
public void unsetExt() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
/**
* Gets the "strokecolor" attribute
*/
@Override
public java.lang.String getStrokecolor() {
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.getStringValue();
}
}
/**
* Gets (as xml) the "strokecolor" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType xgetStrokecolor() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* True if has "strokecolor" attribute
*/
@Override
public boolean isSetStrokecolor() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[1]) != null;
}
}
/**
* Sets the "strokecolor" attribute
*/
@Override
public void setStrokecolor(java.lang.String strokecolor) {
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.setStringValue(strokecolor);
}
}
/**
* Sets (as xml) the "strokecolor" attribute
*/
@Override
public void xsetStrokecolor(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType strokecolor) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(strokecolor);
}
}
/**
* Unsets the "strokecolor" attribute
*/
@Override
public void unsetStrokecolor() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[1]);
}
}
/**
* Gets the "fillcolor" attribute
*/
@Override
public java.lang.String getFillcolor() {
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 : target.getStringValue();
}
}
/**
* Gets (as xml) the "fillcolor" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType xgetFillcolor() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* True if has "fillcolor" attribute
*/
@Override
public boolean isSetFillcolor() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[2]) != null;
}
}
/**
* Sets the "fillcolor" attribute
*/
@Override
public void setFillcolor(java.lang.String fillcolor) {
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.setStringValue(fillcolor);
}
}
/**
* Sets (as xml) the "fillcolor" attribute
*/
@Override
public void xsetFillcolor(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType fillcolor) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(fillcolor);
}
}
/**
* Unsets the "fillcolor" attribute
*/
@Override
public void unsetFillcolor() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[2]);
}
}
/**
* Gets the "shadowcolor" attribute
*/
@Override
public java.lang.String getShadowcolor() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "shadowcolor" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType xgetShadowcolor() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[3]);
return target;
}
}
/**
* True if has "shadowcolor" attribute
*/
@Override
public boolean isSetShadowcolor() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[3]) != null;
}
}
/**
* Sets the "shadowcolor" attribute
*/
@Override
public void setShadowcolor(java.lang.String shadowcolor) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[3]);
}
target.setStringValue(shadowcolor);
}
}
/**
* Sets (as xml) the "shadowcolor" attribute
*/
@Override
public void xsetShadowcolor(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType shadowcolor) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[3]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().add_attribute_user(PROPERTY_QNAME[3]);
}
target.set(shadowcolor);
}
}
/**
* Unsets the "shadowcolor" attribute
*/
@Override
public void unsetShadowcolor() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[3]);
}
}
/**
* Gets the "extrusioncolor" attribute
*/
@Override
public java.lang.String getExtrusioncolor() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[4]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "extrusioncolor" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType xgetExtrusioncolor() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[4]);
return target;
}
}
/**
* True if has "extrusioncolor" attribute
*/
@Override
public boolean isSetExtrusioncolor() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[4]) != null;
}
}
/**
* Sets the "extrusioncolor" attribute
*/
@Override
public void setExtrusioncolor(java.lang.String extrusioncolor) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[4]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[4]);
}
target.setStringValue(extrusioncolor);
}
}
/**
* Sets (as xml) the "extrusioncolor" attribute
*/
@Override
public void xsetExtrusioncolor(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType extrusioncolor) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().find_attribute_user(PROPERTY_QNAME[4]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STColorType)get_store().add_attribute_user(PROPERTY_QNAME[4]);
}
target.set(extrusioncolor);
}
}
/**
* Unsets the "extrusioncolor" attribute
*/
@Override
public void unsetExtrusioncolor() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[4]);
}
}
}