org.graphdrawing.graphml.xmlns.impl.DefaultDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: default
* Namespace: http://graphml.graphdrawing.org/xmlns
* Java type: org.graphdrawing.graphml.xmlns.DefaultDocument
*
* Automatically generated - do not modify.
*/
package org.graphdrawing.graphml.xmlns.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 default(@http://graphml.graphdrawing.org/xmlns) element.
*
* This is a complex type.
*/
public class DefaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.graphdrawing.graphml.xmlns.DefaultDocument
{
private static final long serialVersionUID = 1L;
public DefaultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DEFAULT$0 =
new javax.xml.namespace.QName("http://graphml.graphdrawing.org/xmlns", "default");
/**
* Gets the "default" element
*/
public org.graphdrawing.graphml.xmlns.DefaultType getDefault()
{
synchronized (monitor())
{
check_orphaned();
org.graphdrawing.graphml.xmlns.DefaultType target = null;
target = (org.graphdrawing.graphml.xmlns.DefaultType)get_store().find_element_user(DEFAULT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "default" element
*/
public void setDefault(org.graphdrawing.graphml.xmlns.DefaultType xdefault)
{
synchronized (monitor())
{
check_orphaned();
org.graphdrawing.graphml.xmlns.DefaultType target = null;
target = (org.graphdrawing.graphml.xmlns.DefaultType)get_store().find_element_user(DEFAULT$0, 0);
if (target == null)
{
target = (org.graphdrawing.graphml.xmlns.DefaultType)get_store().add_element_user(DEFAULT$0);
}
target.set(xdefault);
}
}
/**
* Appends and returns a new empty "default" element
*/
public org.graphdrawing.graphml.xmlns.DefaultType addNewDefault()
{
synchronized (monitor())
{
check_orphaned();
org.graphdrawing.graphml.xmlns.DefaultType target = null;
target = (org.graphdrawing.graphml.xmlns.DefaultType)get_store().add_element_user(DEFAULT$0);
return target;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy