com.microsoft.schemas.office.spreadsheetml.x2018.threadedcomments.impl.CTMentionImpl Maven / Gradle / Ivy
/*
* XML Type: CT_Mention
* Namespace: http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments
* Java type: com.microsoft.schemas.office.spreadsheetml.x2018.threadedcomments.CTMention
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.spreadsheetml.x2018.threadedcomments.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;
/**
* An XML CT_Mention(@http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments).
*
* This is a complex type.
*/
public class CTMentionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.spreadsheetml.x2018.threadedcomments.CTMention {
private static final long serialVersionUID = 1L;
public CTMentionImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "mentionpersonId"),
new QName("", "mentionId"),
new QName("", "startIndex"),
new QName("", "length"),
};
/**
* Gets the "mentionpersonId" attribute
*/
@Override
public java.lang.String getMentionpersonId() {
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 : target.getStringValue();
}
}
/**
* Gets (as xml) the "mentionpersonId" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid xgetMentionpersonId() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Sets the "mentionpersonId" attribute
*/
@Override
public void setMentionpersonId(java.lang.String mentionpersonId) {
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.setStringValue(mentionpersonId);
}
}
/**
* Sets (as xml) the "mentionpersonId" attribute
*/
@Override
public void xsetMentionpersonId(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid mentionpersonId) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(mentionpersonId);
}
}
/**
* Gets the "mentionId" attribute
*/
@Override
public java.lang.String getMentionId() {
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 "mentionId" attribute
*/
@Override
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid xgetMentionId() {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Sets the "mentionId" attribute
*/
@Override
public void setMentionId(java.lang.String mentionId) {
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(mentionId);
}
}
/**
* Sets (as xml) the "mentionId" attribute
*/
@Override
public void xsetMentionId(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid mentionId) {
synchronized (monitor()) {
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STGuid)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(mentionId);
}
}
/**
* Gets the "startIndex" attribute
*/
@Override
public long getStartIndex() {
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) ? 0L : target.getLongValue();
}
}
/**
* Gets (as xml) the "startIndex" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedInt xgetStartIndex() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* Sets the "startIndex" attribute
*/
@Override
public void setStartIndex(long startIndex) {
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.setLongValue(startIndex);
}
}
/**
* Sets (as xml) the "startIndex" attribute
*/
@Override
public void xsetStartIndex(org.apache.xmlbeans.XmlUnsignedInt startIndex) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(startIndex);
}
}
/**
* Gets the "length" attribute
*/
@Override
public long getLength() {
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 "length" attribute
*/
@Override
public org.apache.xmlbeans.XmlUnsignedInt xgetLength() {
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 "length" attribute
*/
@Override
public void setLength(long length) {
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(length);
}
}
/**
* Sets (as xml) the "length" attribute
*/
@Override
public void xsetLength(org.apache.xmlbeans.XmlUnsignedInt length) {
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(length);
}
}
}