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

org.example.wsHT.impl.XMLTOrganizationalEntityImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  tOrganizationalEntity
 * Namespace: http://www.example.org/WS-HT
 * Java type: org.example.wsHT.XMLTOrganizationalEntity
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.impl;
/**
 * An XML tOrganizationalEntity(@http://www.example.org/WS-HT).
 *
 * This is a complex type.
 */
public class XMLTOrganizationalEntityImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.XMLTOrganizationalEntity
{
    private static final long serialVersionUID = 1L;
    
    public XMLTOrganizationalEntityImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName USERS$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "users");
    private static final javax.xml.namespace.QName GROUPS$2 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "groups");
    
    
    /**
     * Gets the "users" element
     */
    public org.example.wsHT.XMLTUserlist getUsers()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTUserlist target = null;
            target = (org.example.wsHT.XMLTUserlist)get_store().find_element_user(USERS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "users" element
     */
    public boolean isSetUsers()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(USERS$0) != 0;
        }
    }
    
    /**
     * Sets the "users" element
     */
    public void setUsers(org.example.wsHT.XMLTUserlist users)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTUserlist target = null;
            target = (org.example.wsHT.XMLTUserlist)get_store().find_element_user(USERS$0, 0);
            if (target == null)
            {
                target = (org.example.wsHT.XMLTUserlist)get_store().add_element_user(USERS$0);
            }
            target.set(users);
        }
    }
    
    /**
     * Appends and returns a new empty "users" element
     */
    public org.example.wsHT.XMLTUserlist addNewUsers()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTUserlist target = null;
            target = (org.example.wsHT.XMLTUserlist)get_store().add_element_user(USERS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "users" element
     */
    public void unsetUsers()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(USERS$0, 0);
        }
    }
    
    /**
     * Gets the "groups" element
     */
    public org.example.wsHT.XMLTGrouplist getGroups()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTGrouplist target = null;
            target = (org.example.wsHT.XMLTGrouplist)get_store().find_element_user(GROUPS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "groups" element
     */
    public boolean isSetGroups()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(GROUPS$2) != 0;
        }
    }
    
    /**
     * Sets the "groups" element
     */
    public void setGroups(org.example.wsHT.XMLTGrouplist groups)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTGrouplist target = null;
            target = (org.example.wsHT.XMLTGrouplist)get_store().find_element_user(GROUPS$2, 0);
            if (target == null)
            {
                target = (org.example.wsHT.XMLTGrouplist)get_store().add_element_user(GROUPS$2);
            }
            target.set(groups);
        }
    }
    
    /**
     * Appends and returns a new empty "groups" element
     */
    public org.example.wsHT.XMLTGrouplist addNewGroups()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTGrouplist target = null;
            target = (org.example.wsHT.XMLTGrouplist)get_store().add_element_user(GROUPS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "groups" element
     */
    public void unsetGroups()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(GROUPS$2, 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy