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

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

The newest version!
/*
 * An XML document type.
 * Localname: RowNodeLabelModelParameter
 * Namespace: http://www.yworks.com/xml/graphml
 * Java type: com.yworks.xml.graphml.RowNodeLabelModelParameterDocument
 *
 * Automatically generated - do not modify.
 */
package com.yworks.xml.graphml.impl;

/*-
 * #%L
 * GraphWalker Input/Output
 * %%
 * Copyright (C) 2005 - 2024 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 RowNodeLabelModelParameter(@http://www.yworks.com/xml/graphml) element.
 *
 * This is a complex type.
 */
public class RowNodeLabelModelParameterDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.yworks.xml.graphml.RowNodeLabelModelParameterDocument
{
    private static final long serialVersionUID = 1L;
    
    public RowNodeLabelModelParameterDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ROWNODELABELMODELPARAMETER$0 = 
        new javax.xml.namespace.QName("http://www.yworks.com/xml/graphml", "RowNodeLabelModelParameter");
    
    
    /**
     * Gets the "RowNodeLabelModelParameter" element
     */
    public com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter getRowNodeLabelModelParameter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter target = null;
            target = (com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter)get_store().find_element_user(ROWNODELABELMODELPARAMETER$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "RowNodeLabelModelParameter" element
     */
    public void setRowNodeLabelModelParameter(com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter rowNodeLabelModelParameter)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter target = null;
            target = (com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter)get_store().find_element_user(ROWNODELABELMODELPARAMETER$0, 0);
            if (target == null)
            {
                target = (com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter)get_store().add_element_user(ROWNODELABELMODELPARAMETER$0);
            }
            target.set(rowNodeLabelModelParameter);
        }
    }
    
    /**
     * Appends and returns a new empty "RowNodeLabelModelParameter" element
     */
    public com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter addNewRowNodeLabelModelParameter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter target = null;
            target = (com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter)get_store().add_element_user(ROWNODELABELMODELPARAMETER$0);
            return target;
        }
    }
    /**
     * An XML RowNodeLabelModelParameter(@http://www.yworks.com/xml/graphml).
     *
     * This is a complex type.
     */
    public static class RowNodeLabelModelParameterImpl extends com.yworks.xml.graphml.impl.TableNodeLabelModelParameterTypeImpl implements com.yworks.xml.graphml.RowNodeLabelModelParameterDocument.RowNodeLabelModelParameter
    {
        private static final long serialVersionUID = 1L;
        
        public RowNodeLabelModelParameterImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName HORIZONTALPOSITION$0 = 
            new javax.xml.namespace.QName("", "horizontalPosition");
        
        
        /**
         * Gets the "horizontalPosition" attribute
         */
        public double getHorizontalPosition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HORIZONTALPOSITION$0);
                if (target == null)
                {
                    return 0.0;
                }
                return target.getDoubleValue();
            }
        }
        
        /**
         * Gets (as xml) the "horizontalPosition" attribute
         */
        public org.apache.xmlbeans.XmlDouble xgetHorizontalPosition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(HORIZONTALPOSITION$0);
                return target;
            }
        }
        
        /**
         * True if has "horizontalPosition" attribute
         */
        public boolean isSetHorizontalPosition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(HORIZONTALPOSITION$0) != null;
            }
        }
        
        /**
         * Sets the "horizontalPosition" attribute
         */
        public void setHorizontalPosition(double horizontalPosition)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HORIZONTALPOSITION$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HORIZONTALPOSITION$0);
                }
                target.setDoubleValue(horizontalPosition);
            }
        }
        
        /**
         * Sets (as xml) the "horizontalPosition" attribute
         */
        public void xsetHorizontalPosition(org.apache.xmlbeans.XmlDouble horizontalPosition)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(HORIZONTALPOSITION$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(HORIZONTALPOSITION$0);
                }
                target.set(horizontalPosition);
            }
        }
        
        /**
         * Unsets the "horizontalPosition" attribute
         */
        public void unsetHorizontalPosition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(HORIZONTALPOSITION$0);
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy