com.microsoft.schemas.office.visio.x2012.main.impl.EventItemTypeImpl Maven / Gradle / Ivy
/*
* XML Type: EventItem_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.EventItemType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
/**
* An XML EventItem_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class EventItemTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.EventItemType {
private static final long serialVersionUID = 1L;
public EventItemTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "ID"),
new QName("", "Action"),
new QName("", "EventCode"),
new QName("", "Enabled"),
new QName("", "Target"),
new QName("", "TargetArgs"),
};
/**
* Gets the "ID" attribute
*/
@Override
public long getID() {
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) ? 0L : target.getLongValue();
}
}
/**
* Gets (as xml) the "ID" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedInt xgetID() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Sets the "ID" attribute
*/
@Override
public void setID(long id) {
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.setLongValue(id);
}
}
/**
* Sets (as xml) the "ID" attribute
*/
@Override
public void xsetID(org.apache.xmlbeans.XmlUnsignedInt id) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(id);
}
}
/**
* Gets the "Action" attribute
*/
@Override
public int getAction() {
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) ? 0 : target.getIntValue();
}
}
/**
* Gets (as xml) the "Action" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedShort xgetAction() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedShort target = null;
target = (org.apache.xmlbeans.XmlUnsignedShort)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Sets the "Action" attribute
*/
@Override
public void setAction(int action) {
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.setIntValue(action);
}
}
/**
* Sets (as xml) the "Action" attribute
*/
@Override
public void xsetAction(org.apache.xmlbeans.XmlUnsignedShort action) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedShort target = null;
target = (org.apache.xmlbeans.XmlUnsignedShort)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedShort)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(action);
}
}
/**
* Gets the "EventCode" attribute
*/
@Override
public int getEventCode() {
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) ? 0 : target.getIntValue();
}
}
/**
* Gets (as xml) the "EventCode" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedShort xgetEventCode() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedShort target = null;
target = (org.apache.xmlbeans.XmlUnsignedShort)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* Sets the "EventCode" attribute
*/
@Override
public void setEventCode(int eventCode) {
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.setIntValue(eventCode);
}
}
/**
* Sets (as xml) the "EventCode" attribute
*/
@Override
public void xsetEventCode(org.apache.xmlbeans.XmlUnsignedShort eventCode) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedShort target = null;
target = (org.apache.xmlbeans.XmlUnsignedShort)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedShort)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(eventCode);
}
}
/**
* Gets the "Enabled" attribute
*/
@Override
public boolean getEnabled() {
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) ? false : target.getBooleanValue();
}
}
/**
* Gets (as xml) the "Enabled" attribute
*/
@Override
public org.apache.xmlbeans.XmlBoolean xgetEnabled() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[3]);
return target;
}
}
/**
* True if has "Enabled" attribute
*/
@Override
public boolean isSetEnabled() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[3]) != null;
}
}
/**
* Sets the "Enabled" attribute
*/
@Override
public void setEnabled(boolean enabled) {
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.setBooleanValue(enabled);
}
}
/**
* Sets (as xml) the "Enabled" attribute
*/
@Override
public void xsetEnabled(org.apache.xmlbeans.XmlBoolean enabled) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(PROPERTY_QNAME[3]);
if (target == null) {
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(PROPERTY_QNAME[3]);
}
target.set(enabled);
}
}
/**
* Unsets the "Enabled" attribute
*/
@Override
public void unsetEnabled() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[3]);
}
}
/**
* Gets the "Target" attribute
*/
@Override
public java.lang.String getTarget() {
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 "Target" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetTarget() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[4]);
return target;
}
}
/**
* Sets the "Target" attribute
*/
@Override
public void setTarget(java.lang.String targetValue) {
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(targetValue);
}
}
/**
* Sets (as xml) the "Target" attribute
*/
@Override
public void xsetTarget(org.apache.xmlbeans.XmlString targetValue) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[4]);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[4]);
}
target.set(targetValue);
}
}
/**
* Gets the "TargetArgs" attribute
*/
@Override
public java.lang.String getTargetArgs() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[5]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "TargetArgs" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetTargetArgs() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[5]);
return target;
}
}
/**
* Sets the "TargetArgs" attribute
*/
@Override
public void setTargetArgs(java.lang.String targetArgs) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[5]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[5]);
}
target.setStringValue(targetArgs);
}
}
/**
* Sets (as xml) the "TargetArgs" attribute
*/
@Override
public void xsetTargetArgs(org.apache.xmlbeans.XmlString targetArgs) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[5]);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[5]);
}
target.set(targetArgs);
}
}
}