org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTChartsheetProtectionImpl 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_ChartsheetProtection
* Namespace: http://schemas.openxmlformats.org/spreadsheetml/2006/main
* Java type: org.openxmlformats.schemas.spreadsheetml.x2006.main.CTChartsheetProtection
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.spreadsheetml.x2006.main.impl;
/**
* An XML CT_ChartsheetProtection(@http://schemas.openxmlformats.org/spreadsheetml/2006/main).
*
* This is a complex type.
*/
public class CTChartsheetProtectionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.spreadsheetml.x2006.main.CTChartsheetProtection
{
public CTChartsheetProtectionImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PASSWORD$0 =
new javax.xml.namespace.QName("", "password");
private static final javax.xml.namespace.QName CONTENT$2 =
new javax.xml.namespace.QName("", "content");
private static final javax.xml.namespace.QName OBJECTS$4 =
new javax.xml.namespace.QName("", "objects");
/**
* Gets the "password" attribute
*/
public byte[] getPassword()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PASSWORD$0);
if (target == null)
{
return null;
}
return target.getByteArrayValue();
}
}
/**
* Gets (as xml) the "password" attribute
*/
public org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex xgetPassword()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex)get_store().find_attribute_user(PASSWORD$0);
return target;
}
}
/**
* True if has "password" attribute
*/
public boolean isSetPassword()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(PASSWORD$0) != null;
}
}
/**
* Sets the "password" attribute
*/
public void setPassword(byte[] password)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PASSWORD$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PASSWORD$0);
}
target.setByteArrayValue(password);
}
}
/**
* Sets (as xml) the "password" attribute
*/
public void xsetPassword(org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex password)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex target = null;
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex)get_store().find_attribute_user(PASSWORD$0);
if (target == null)
{
target = (org.openxmlformats.schemas.spreadsheetml.x2006.main.STUnsignedShortHex)get_store().add_attribute_user(PASSWORD$0);
}
target.set(password);
}
}
/**
* Unsets the "password" attribute
*/
public void unsetPassword()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(PASSWORD$0);
}
}
/**
* Gets the "content" attribute
*/
public boolean getContent()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTENT$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CONTENT$2);
}
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "content" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetContent()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(CONTENT$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(CONTENT$2);
}
return target;
}
}
/**
* True if has "content" attribute
*/
public boolean isSetContent()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(CONTENT$2) != null;
}
}
/**
* Sets the "content" attribute
*/
public void setContent(boolean content)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONTENT$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CONTENT$2);
}
target.setBooleanValue(content);
}
}
/**
* Sets (as xml) the "content" attribute
*/
public void xsetContent(org.apache.xmlbeans.XmlBoolean content)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(CONTENT$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(CONTENT$2);
}
target.set(content);
}
}
/**
* Unsets the "content" attribute
*/
public void unsetContent()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(CONTENT$2);
}
}
/**
* Gets the "objects" attribute
*/
public boolean getObjects()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OBJECTS$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(OBJECTS$4);
}
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "objects" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetObjects()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(OBJECTS$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(OBJECTS$4);
}
return target;
}
}
/**
* True if has "objects" attribute
*/
public boolean isSetObjects()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(OBJECTS$4) != null;
}
}
/**
* Sets the "objects" attribute
*/
public void setObjects(boolean objects)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OBJECTS$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OBJECTS$4);
}
target.setBooleanValue(objects);
}
}
/**
* Sets (as xml) the "objects" attribute
*/
public void xsetObjects(org.apache.xmlbeans.XmlBoolean objects)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(OBJECTS$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(OBJECTS$4);
}
target.set(objects);
}
}
/**
* Unsets the "objects" attribute
*/
public void unsetObjects()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(OBJECTS$4);
}
}
}