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