com.microsoft.schemas.office.office.impl.CTInkImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds (since POI 5.0.0, the 5th edition is used):
https://www.ecma-international.org/publications/standards/Ecma-376.htm
/*
* XML Type: CT_Ink
* Namespace: urn:schemas-microsoft-com:office:office
* Java type: com.microsoft.schemas.office.office.CTInk
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.office.impl;
/**
* An XML CT_Ink(@urn:schemas-microsoft-com:office:office).
*
* This is a complex type.
*/
public class CTInkImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.office.CTInk {
private static final long serialVersionUID = 1L;
public CTInkImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName I$0 =
new javax.xml.namespace.QName("", "i");
private static final javax.xml.namespace.QName ANNOTATION$2 =
new javax.xml.namespace.QName("", "annotation");
private static final javax.xml.namespace.QName CONTENTTYPE$4 =
new javax.xml.namespace.QName("", "contentType");
/**
* Gets the "i" attribute
*/
public java.lang.String getI() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(I$0);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "i" attribute
*/
public org.apache.xmlbeans.XmlString xgetI() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(I$0);
return target;
}
}
/**
* True if has "i" attribute
*/
public boolean isSetI() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(I$0) != null;
}
}
/**
* Sets the "i" attribute
*/
public void setI(java.lang.String iValue) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(I$0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(I$0);
}
target.setStringValue(iValue);
}
}
/**
* Sets (as xml) the "i" attribute
*/
public void xsetI(org.apache.xmlbeans.XmlString iValue) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(I$0);
if (target == null) {
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(I$0);
}
target.set(iValue);
}
}
/**
* Unsets the "i" attribute
*/
public void unsetI() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(I$0);
}
}
/**
* Gets the "annotation" attribute
*/
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse.Enum getAnnotation() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$2);
if (target == null) {
return null;
}
return (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "annotation" attribute
*/
public org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse xgetAnnotation() {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse)get_store().find_attribute_user(ANNOTATION$2);
return target;
}
}
/**
* True if has "annotation" attribute
*/
public boolean isSetAnnotation() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ANNOTATION$2) != null;
}
}
/**
* Sets the "annotation" attribute
*/
public void setAnnotation(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse.Enum annotation) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$2);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANNOTATION$2);
}
target.setEnumValue(annotation);
}
}
/**
* Sets (as xml) the "annotation" attribute
*/
public void xsetAnnotation(org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse annotation) {
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse target = null;
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse)get_store().find_attribute_user(ANNOTATION$2);
if (target == null) {
target = (org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STTrueFalse)get_store().add_attribute_user(ANNOTATION$2);
}
target.set(annotation);
}
}
/**
* Unsets the "annotation" attribute
*/
public void unsetAnnotation() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ANNOTATION$2);
}
}
/**
* Gets the "contentType" attribute
*/
public java.lang.String getContentType() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTENTTYPE$4);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "contentType" attribute
*/
public com.microsoft.schemas.office.office.STContentType xgetContentType() {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.office.STContentType target = null;
target = (com.microsoft.schemas.office.office.STContentType)get_store().find_attribute_user(CONTENTTYPE$4);
return target;
}
}
/**
* True if has "contentType" attribute
*/
public boolean isSetContentType() {
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(CONTENTTYPE$4) != null;
}
}
/**
* Sets the "contentType" attribute
*/
public void setContentType(java.lang.String contentType) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTENTTYPE$4);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CONTENTTYPE$4);
}
target.setStringValue(contentType);
}
}
/**
* Sets (as xml) the "contentType" attribute
*/
public void xsetContentType(com.microsoft.schemas.office.office.STContentType contentType) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.office.STContentType target = null;
target = (com.microsoft.schemas.office.office.STContentType)get_store().find_attribute_user(CONTENTTYPE$4);
if (target == null) {
target = (com.microsoft.schemas.office.office.STContentType)get_store().add_attribute_user(CONTENTTYPE$4);
}
target.set(contentType);
}
}
/**
* Unsets the "contentType" attribute
*/
public void unsetContentType() {
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(CONTENTTYPE$4);
}
}
}