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

com.yworks.xml.graphml.impl.GroupNodeDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: GroupNode
 * Namespace: http://www.yworks.com/xml/graphml
 * Java type: com.yworks.xml.graphml.GroupNodeDocument
 *
 * Automatically generated - do not modify.
 */
package com.yworks.xml.graphml.impl;

/*
 * #%L
 * GraphWalker Input/Output
 * %%
 * Copyright (C) 2005 - 2016 GraphWalker
 * %%
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * #L%
 */
/**
 * A document containing one GroupNode(@http://www.yworks.com/xml/graphml) element.
 *
 * This is a complex type.
 */
public class GroupNodeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.yworks.xml.graphml.GroupNodeDocument
{
    private static final long serialVersionUID = 1L;
    
    public GroupNodeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GROUPNODE$0 = 
        new javax.xml.namespace.QName("http://www.yworks.com/xml/graphml", "GroupNode");
    
    
    /**
     * Gets the "GroupNode" element
     */
    public com.yworks.xml.graphml.GroupNodeType getGroupNode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.yworks.xml.graphml.GroupNodeType target = null;
            target = (com.yworks.xml.graphml.GroupNodeType)get_store().find_element_user(GROUPNODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "GroupNode" element
     */
    public void setGroupNode(com.yworks.xml.graphml.GroupNodeType groupNode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.yworks.xml.graphml.GroupNodeType target = null;
            target = (com.yworks.xml.graphml.GroupNodeType)get_store().find_element_user(GROUPNODE$0, 0);
            if (target == null)
            {
                target = (com.yworks.xml.graphml.GroupNodeType)get_store().add_element_user(GROUPNODE$0);
            }
            target.set(groupNode);
        }
    }
    
    /**
     * Appends and returns a new empty "GroupNode" element
     */
    public com.yworks.xml.graphml.GroupNodeType addNewGroupNode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.yworks.xml.graphml.GroupNodeType target = null;
            target = (com.yworks.xml.graphml.GroupNodeType)get_store().add_element_user(GROUPNODE$0);
            return target;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy