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

com.microsoft.schemas.office.visio.x2012.main.impl.CommentsTypeImpl 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

The newest version!
/*
 * XML Type:  Comments_Type
 * Namespace: http://schemas.microsoft.com/office/visio/2012/main
 * Java type: com.microsoft.schemas.office.visio.x2012.main.CommentsType
 *
 * Automatically generated - do not modify.
 */
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
 * An XML Comments_Type(@http://schemas.microsoft.com/office/visio/2012/main).
 *
 * This is a complex type.
 */
public class CommentsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.CommentsType
{
    private static final long serialVersionUID = 1L;
    
    public CommentsTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName AUTHORLIST$0 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "AuthorList");
    private static final javax.xml.namespace.QName COMMENTLIST$2 = 
        new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "CommentList");
    private static final javax.xml.namespace.QName SHOWCOMMENTTAGS$4 = 
        new javax.xml.namespace.QName("", "ShowCommentTags");
    
    
    /**
     * Gets the "AuthorList" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.AuthorListType getAuthorList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.AuthorListType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.AuthorListType)get_store().find_element_user(AUTHORLIST$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "AuthorList" element
     */
    public boolean isSetAuthorList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(AUTHORLIST$0) != 0;
        }
    }
    
    /**
     * Sets the "AuthorList" element
     */
    public void setAuthorList(com.microsoft.schemas.office.visio.x2012.main.AuthorListType authorList)
    {
        generatedSetterHelperImpl(authorList, AUTHORLIST$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "AuthorList" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.AuthorListType addNewAuthorList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.AuthorListType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.AuthorListType)get_store().add_element_user(AUTHORLIST$0);
            return target;
        }
    }
    
    /**
     * Unsets the "AuthorList" element
     */
    public void unsetAuthorList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(AUTHORLIST$0, 0);
        }
    }
    
    /**
     * Gets the "CommentList" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CommentListType getCommentList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CommentListType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CommentListType)get_store().find_element_user(COMMENTLIST$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CommentList" element
     */
    public boolean isSetCommentList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(COMMENTLIST$2) != 0;
        }
    }
    
    /**
     * Sets the "CommentList" element
     */
    public void setCommentList(com.microsoft.schemas.office.visio.x2012.main.CommentListType commentList)
    {
        generatedSetterHelperImpl(commentList, COMMENTLIST$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "CommentList" element
     */
    public com.microsoft.schemas.office.visio.x2012.main.CommentListType addNewCommentList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.microsoft.schemas.office.visio.x2012.main.CommentListType target = null;
            target = (com.microsoft.schemas.office.visio.x2012.main.CommentListType)get_store().add_element_user(COMMENTLIST$2);
            return target;
        }
    }
    
    /**
     * Unsets the "CommentList" element
     */
    public void unsetCommentList()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(COMMENTLIST$2, 0);
        }
    }
    
    /**
     * Gets the "ShowCommentTags" attribute
     */
    public boolean getShowCommentTags()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWCOMMENTTAGS$4);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "ShowCommentTags" attribute
     */
    public org.apache.xmlbeans.XmlBoolean xgetShowCommentTags()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWCOMMENTTAGS$4);
            return target;
        }
    }
    
    /**
     * True if has "ShowCommentTags" attribute
     */
    public boolean isSetShowCommentTags()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(SHOWCOMMENTTAGS$4) != null;
        }
    }
    
    /**
     * Sets the "ShowCommentTags" attribute
     */
    public void setShowCommentTags(boolean showCommentTags)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWCOMMENTTAGS$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SHOWCOMMENTTAGS$4);
            }
            target.setBooleanValue(showCommentTags);
        }
    }
    
    /**
     * Sets (as xml) the "ShowCommentTags" attribute
     */
    public void xsetShowCommentTags(org.apache.xmlbeans.XmlBoolean showCommentTags)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWCOMMENTTAGS$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SHOWCOMMENTTAGS$4);
            }
            target.set(showCommentTags);
        }
    }
    
    /**
     * Unsets the "ShowCommentTags" attribute
     */
    public void unsetShowCommentTags()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(SHOWCOMMENTTAGS$4);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy