com.microsoft.schemas.office.visio.x2012.main.impl.ConnectTypeImpl Maven / Gradle / Ivy
/*
* XML Type: Connect_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.ConnectType
*
* 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 Connect_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class ConnectTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.ConnectType {
private static final long serialVersionUID = 1L;
public ConnectTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "FromSheet"),
new QName("", "FromCell"),
new QName("", "FromPart"),
new QName("", "ToSheet"),
new QName("", "ToCell"),
new QName("", "ToPart"),
};
/**
* Gets the "FromSheet" attribute
*/
@Override
public long getFromSheet() {
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 "FromSheet" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedInt xgetFromSheet() {
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 "FromSheet" attribute
*/
@Override
public void setFromSheet(long fromSheet) {
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(fromSheet);
}
}
/**
* Sets (as xml) the "FromSheet" attribute
*/
@Override
public void xsetFromSheet(org.apache.xmlbeans.XmlUnsignedInt fromSheet) {
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(fromSheet);
}
}
/**
* Gets the "FromCell" attribute
*/
@Override
public java.lang.String getFromCell() {
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 "FromCell" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetFromCell() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* True if has "FromCell" attribute
*/
@Override
public boolean isSetFromCell() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[1]) != null;
}
}
/**
* Sets the "FromCell" attribute
*/
@Override
public void setFromCell(java.lang.String fromCell) {
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(fromCell);
}
}
/**
* Sets (as xml) the "FromCell" attribute
*/
@Override
public void xsetFromCell(org.apache.xmlbeans.XmlString fromCell) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(fromCell);
}
}
/**
* Unsets the "FromCell" attribute
*/
@Override
public void unsetFromCell() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[1]);
}
}
/**
* Gets the "FromPart" attribute
*/
@Override
public int getFromPart() {
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 "FromPart" attribute
*/
@Override
public org.apache.xmlbeans.XmlInt xgetFromPart() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* True if has "FromPart" attribute
*/
@Override
public boolean isSetFromPart() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[2]) != null;
}
}
/**
* Sets the "FromPart" attribute
*/
@Override
public void setFromPart(int fromPart) {
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(fromPart);
}
}
/**
* Sets (as xml) the "FromPart" attribute
*/
@Override
public void xsetFromPart(org.apache.xmlbeans.XmlInt fromPart) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(fromPart);
}
}
/**
* Unsets the "FromPart" attribute
*/
@Override
public void unsetFromPart() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[2]);
}
}
/**
* Gets the "ToSheet" attribute
*/
@Override
public long getToSheet() {
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) ? 0L : target.getLongValue();
}
}
/**
* Gets (as xml) the "ToSheet" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedInt xgetToSheet() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(PROPERTY_QNAME[3]);
return target;
}
}
/**
* Sets the "ToSheet" attribute
*/
@Override
public void setToSheet(long toSheet) {
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.setLongValue(toSheet);
}
}
/**
* Sets (as xml) the "ToSheet" attribute
*/
@Override
public void xsetToSheet(org.apache.xmlbeans.XmlUnsignedInt toSheet) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(PROPERTY_QNAME[3]);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(PROPERTY_QNAME[3]);
}
target.set(toSheet);
}
}
/**
* Gets the "ToCell" attribute
*/
@Override
public java.lang.String getToCell() {
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 "ToCell" attribute
*/
@Override
public org.apache.xmlbeans.XmlString xgetToCell() {
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;
}
}
/**
* True if has "ToCell" attribute
*/
@Override
public boolean isSetToCell() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[4]) != null;
}
}
/**
* Sets the "ToCell" attribute
*/
@Override
public void setToCell(java.lang.String toCell) {
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(toCell);
}
}
/**
* Sets (as xml) the "ToCell" attribute
*/
@Override
public void xsetToCell(org.apache.xmlbeans.XmlString toCell) {
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(toCell);
}
}
/**
* Unsets the "ToCell" attribute
*/
@Override
public void unsetToCell() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[4]);
}
}
/**
* Gets the "ToPart" attribute
*/
@Override
public int getToPart() {
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) ? 0 : target.getIntValue();
}
}
/**
* Gets (as xml) the "ToPart" attribute
*/
@Override
public org.apache.xmlbeans.XmlInt xgetToPart() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(PROPERTY_QNAME[5]);
return target;
}
}
/**
* True if has "ToPart" attribute
*/
@Override
public boolean isSetToPart() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[5]) != null;
}
}
/**
* Sets the "ToPart" attribute
*/
@Override
public void setToPart(int toPart) {
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.setIntValue(toPart);
}
}
/**
* Sets (as xml) the "ToPart" attribute
*/
@Override
public void xsetToPart(org.apache.xmlbeans.XmlInt toPart) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(PROPERTY_QNAME[5]);
if (target == null) {
target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(PROPERTY_QNAME[5]);
}
target.set(toPart);
}
}
/**
* Unsets the "ToPart" attribute
*/
@Override
public void unsetToPart() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[5]);
}
}
}