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

org.w3.x1999.xlink.impl.ResourceDocumentImpl Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
/*
 * An XML document type.
 * Localname: resource
 * Namespace: http://www.w3.org/1999/xlink
 * Java type: org.w3.x1999.xlink.ResourceDocument
 *
 * Automatically generated - do not modify.
 */
package org.w3.x1999.xlink.impl;
/**
 * A document containing one resource(@http://www.w3.org/1999/xlink) element.
 *
 * This is a complex type.
 */
public class ResourceDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.w3.x1999.xlink.ResourceDocument
{
    private static final long serialVersionUID = 1L;
    
    public ResourceDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RESOURCE$0 = 
        new javax.xml.namespace.QName("http://www.w3.org/1999/xlink", "resource");
    
    
    /**
     * Gets the "resource" element
     */
    public org.w3.x1999.xlink.ResourceType getResource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x1999.xlink.ResourceType target = null;
            target = (org.w3.x1999.xlink.ResourceType)get_store().find_element_user(RESOURCE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "resource" element
     */
    public void setResource(org.w3.x1999.xlink.ResourceType resource)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x1999.xlink.ResourceType target = null;
            target = (org.w3.x1999.xlink.ResourceType)get_store().find_element_user(RESOURCE$0, 0);
            if (target == null)
            {
                target = (org.w3.x1999.xlink.ResourceType)get_store().add_element_user(RESOURCE$0);
            }
            target.set(resource);
        }
    }
    
    /**
     * Appends and returns a new empty "resource" element
     */
    public org.w3.x1999.xlink.ResourceType addNewResource()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x1999.xlink.ResourceType target = null;
            target = (org.w3.x1999.xlink.ResourceType)get_store().add_element_user(RESOURCE$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy