org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTCommentImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip
/*
* XML Type: CT_Comment
* Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
* Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
/**
* An XML CT_Comment(@http://schemas.openxmlformats.org/spreadsheetml/2006/main).
*
* This is a complex type.
*/
public class CTCommentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.spreadsheetml.x2006.main.CTComment
{
public CTCommentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TEXT$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "text");
private static final javax.xml.namespace.QName REF$2 =
new javax.xml.namespace.QName("", "ref");
private static final javax.xml.namespace.QName AUTHORID$4 =
new javax.xml.namespace.QName("", "authorId");
private static final javax.xml.namespace.QName GUID$6 =
new javax.xml.namespace.QName("", "guid");
/**
* Gets the "text" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst getText()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst)get_store().find_element_user(TEXT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "text" element
*/
public void setText(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst text)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst)get_store().find_element_user(TEXT$0, 0);
if (target == null)
{
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst)get_store().add_element_user(TEXT$0);
}
target.set(text);
}
}
/**
* Appends and returns a new empty "text" element
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst addNewText()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst)get_store().add_element_user(TEXT$0);
return target;
}
}
/**
* Gets the "ref" attribute
*/
public java.lang.String getRef()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REF$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "ref" attribute
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef xgetRef()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef)get_store().find_attribute_user(REF$2);
return target;
}
}
/**
* Sets the "ref" attribute
*/
public void setRef(java.lang.String ref)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REF$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REF$2);
}
target.setStringValue(ref);
}
}
/**
* Sets (as xml) the "ref" attribute
*/
public void xsetRef(org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef ref)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef)get_store().find_attribute_user(REF$2);
if (target == null)
{
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STRef)get_store().add_attribute_user(REF$2);
}
target.set(ref);
}
}
/**
* Gets the "authorId" attribute
*/
public long getAuthorId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AUTHORID$4);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "authorId" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetAuthorId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(AUTHORID$4);
return target;
}
}
/**
* Sets the "authorId" attribute
*/
public void setAuthorId(long authorId)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AUTHORID$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(AUTHORID$4);
}
target.setLongValue(authorId);
}
}
/**
* Sets (as xml) the "authorId" attribute
*/
public void xsetAuthorId(org.apache.xmlbeans.XmlUnsignedInt authorId)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(AUTHORID$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(AUTHORID$4);
}
target.set(authorId);
}
}
/**
* Gets the "guid" attribute
*/
public java.lang.String getGuid()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GUID$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "guid" attribute
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid xgetGuid()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid)get_store().find_attribute_user(GUID$6);
return target;
}
}
/**
* True if has "guid" attribute
*/
public boolean isSetGuid()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(GUID$6) != null;
}
}
/**
* Sets the "guid" attribute
*/
public void setGuid(java.lang.String guid)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(GUID$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(GUID$6);
}
target.setStringValue(guid);
}
}
/**
* Sets (as xml) the "guid" attribute
*/
public void xsetGuid(org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid guid)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid)get_store().find_attribute_user(GUID$6);
if (target == null)
{
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STGuid)get_store().add_attribute_user(GUID$6);
}
target.set(guid);
}
}
/**
* Unsets the "guid" attribute
*/
public void unsetGuid()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(GUID$6);
}
}
}