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

org.n52.oxf.impl.DocumentStructureDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: DocumentStructure
 * Namespace: http://www.n52.org/oxf
 * Java type: org.n52.oxf.DocumentStructureDocument
 *
 * Automatically generated - do not modify.
 */
package org.n52.oxf.impl;
/**
 * A document containing one DocumentStructure(@http://www.n52.org/oxf) element.
 *
 * This is a complex type.
 */
public class DocumentStructureDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.n52.oxf.DocumentStructureDocument
{
    private static final long serialVersionUID = 1L;
    
    public DocumentStructureDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DOCUMENTSTRUCTURE$0 = 
        new javax.xml.namespace.QName("http://www.n52.org/oxf", "DocumentStructure");
    
    
    /**
     * Gets the "DocumentStructure" element
     */
    public org.n52.oxf.DocumentStructureType getDocumentStructure()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.n52.oxf.DocumentStructureType target = null;
            target = (org.n52.oxf.DocumentStructureType)get_store().find_element_user(DOCUMENTSTRUCTURE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "DocumentStructure" element
     */
    public void setDocumentStructure(org.n52.oxf.DocumentStructureType documentStructure)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.n52.oxf.DocumentStructureType target = null;
            target = (org.n52.oxf.DocumentStructureType)get_store().find_element_user(DOCUMENTSTRUCTURE$0, 0);
            if (target == null)
            {
                target = (org.n52.oxf.DocumentStructureType)get_store().add_element_user(DOCUMENTSTRUCTURE$0);
            }
            target.set(documentStructure);
        }
    }
    
    /**
     * Appends and returns a new empty "DocumentStructure" element
     */
    public org.n52.oxf.DocumentStructureType addNewDocumentStructure()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.n52.oxf.DocumentStructureType target = null;
            target = (org.n52.oxf.DocumentStructureType)get_store().add_element_user(DOCUMENTSTRUCTURE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy