All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.schemas.office.office.impl.OnedAttributeImpl 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

There is a newer version: 1.4
Show newest version
/*
 * An XML attribute type.
 * Localname: oned
 * Namespace: urn:schemas-microsoft-com:office:office
 * Java type: com.microsoft.schemas.office.office.OnedAttribute
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.office.impl;
/**
 * A document containing one oned(@urn:schemas-microsoft-com:office:office) attribute.
 *
 * This is a complex type.
 */
public class OnedAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.office.OnedAttribute
{
    
    public OnedAttributeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ONED$0 = 
        new javax.xml.namespace.QName("urn:schemas-microsoft-com:office:office", "oned");
    
    
    /**
     * Gets the "oned" attribute
     */
    public com.microsoft.schemas.office.office.STTrueFalse.Enum getOned()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ONED$0);
            if (target == null)
            {
                return null;
            }
            return (com.microsoft.schemas.office.office.STTrueFalse.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "oned" attribute
     */
    public com.microsoft.schemas.office.office.STTrueFalse xgetOned()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.office.STTrueFalse target = null;
            target = (com.microsoft.schemas.office.office.STTrueFalse)get_store().find_attribute_user(ONED$0);
            return target;
        }
    }
    
    /**
     * True if has "oned" attribute
     */
    public boolean isSetOned()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(ONED$0) != null;
        }
    }
    
    /**
     * Sets the "oned" attribute
     */
    public void setOned(com.microsoft.schemas.office.office.STTrueFalse.Enum oned)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ONED$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ONED$0);
            }
            target.setEnumValue(oned);
        }
    }
    
    /**
     * Sets (as xml) the "oned" attribute
     */
    public void xsetOned(com.microsoft.schemas.office.office.STTrueFalse oned)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.office.STTrueFalse target = null;
            target = (com.microsoft.schemas.office.office.STTrueFalse)get_store().find_attribute_user(ONED$0);
            if (target == null)
            {
                target = (com.microsoft.schemas.office.office.STTrueFalse)get_store().add_attribute_user(ONED$0);
            }
            target.set(oned);
        }
    }
    
    /**
     * Unsets the "oned" attribute
     */
    public void unsetOned()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(ONED$0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy