com.microsoft.schemas.office.visio.x2012.main.impl.HeaderMarginTypeImpl 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: HeaderMargin_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.HeaderMarginType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML HeaderMargin_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is an atomic type that is a restriction of com.microsoft.schemas.office.visio.x2012.main.HeaderMarginType.
*/
public class HeaderMarginTypeImpl extends org.apache.xmlbeans.impl.values.JavaDoubleHolderEx implements com.microsoft.schemas.office.visio.x2012.main.HeaderMarginType
{
public HeaderMarginTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType, true);
}
protected HeaderMarginTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
{
super(sType, b);
}
private static final javax.xml.namespace.QName UNIT$0 =
new javax.xml.namespace.QName("", "Unit");
/**
* Gets the "Unit" attribute
*/
public java.lang.String getUnit()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(UNIT$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Unit" attribute
*/
public org.apache.xmlbeans.XmlString xgetUnit()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(UNIT$0);
return target;
}
}
/**
* True if has "Unit" attribute
*/
public boolean isSetUnit()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(UNIT$0) != null;
}
}
/**
* Sets the "Unit" attribute
*/
public void setUnit(java.lang.String unit)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(UNIT$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(UNIT$0);
}
target.setStringValue(unit);
}
}
/**
* Sets (as xml) the "Unit" attribute
*/
public void xsetUnit(org.apache.xmlbeans.XmlString unit)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(UNIT$0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(UNIT$0);
}
target.set(unit);
}
}
/**
* Unsets the "Unit" attribute
*/
public void unsetUnit()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(UNIT$0);
}
}
}