
com.yworks.xml.graphml.impl.SimpleStyleDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: SimpleStyle
* Namespace: http://www.yworks.com/xml/graphml
* Java type: com.yworks.xml.graphml.SimpleStyleDocument
*
* 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 SimpleStyle(@http://www.yworks.com/xml/graphml) element.
*
* This is a complex type.
*/
public class SimpleStyleDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.yworks.xml.graphml.SimpleStyleDocument
{
private static final long serialVersionUID = 1L;
public SimpleStyleDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SIMPLESTYLE$0 =
new javax.xml.namespace.QName("http://www.yworks.com/xml/graphml", "SimpleStyle");
/**
* Gets the "SimpleStyle" element
*/
public com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle getSimpleStyle()
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle target = null;
target = (com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle)get_store().find_element_user(SIMPLESTYLE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "SimpleStyle" element
*/
public void setSimpleStyle(com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle simpleStyle)
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle target = null;
target = (com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle)get_store().find_element_user(SIMPLESTYLE$0, 0);
if (target == null)
{
target = (com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle)get_store().add_element_user(SIMPLESTYLE$0);
}
target.set(simpleStyle);
}
}
/**
* Appends and returns a new empty "SimpleStyle" element
*/
public com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle addNewSimpleStyle()
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle target = null;
target = (com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle)get_store().add_element_user(SIMPLESTYLE$0);
return target;
}
}
/**
* An XML SimpleStyle(@http://www.yworks.com/xml/graphml).
*
* This is a complex type.
*/
public static class SimpleStyleImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.yworks.xml.graphml.SimpleStyleDocument.SimpleStyle
{
private static final long serialVersionUID = 1L;
public SimpleStyleImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FILLCOLOR$0 =
new javax.xml.namespace.QName("", "fillColor");
private static final javax.xml.namespace.QName LINECOLOR$2 =
new javax.xml.namespace.QName("", "lineColor");
private static final javax.xml.namespace.QName LINETYPE$4 =
new javax.xml.namespace.QName("", "lineType");
private static final javax.xml.namespace.QName LINEWIDTH$6 =
new javax.xml.namespace.QName("", "lineWidth");
/**
* Gets the "fillColor" attribute
*/
public java.lang.String getFillColor()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FILLCOLOR$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "fillColor" attribute
*/
public com.yworks.xml.graphml.ColorType xgetFillColor()
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.ColorType target = null;
target = (com.yworks.xml.graphml.ColorType)get_store().find_attribute_user(FILLCOLOR$0);
return target;
}
}
/**
* True if has "fillColor" attribute
*/
public boolean isSetFillColor()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(FILLCOLOR$0) != null;
}
}
/**
* Sets the "fillColor" attribute
*/
public void setFillColor(java.lang.String fillColor)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FILLCOLOR$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FILLCOLOR$0);
}
target.setStringValue(fillColor);
}
}
/**
* Sets (as xml) the "fillColor" attribute
*/
public void xsetFillColor(com.yworks.xml.graphml.ColorType fillColor)
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.ColorType target = null;
target = (com.yworks.xml.graphml.ColorType)get_store().find_attribute_user(FILLCOLOR$0);
if (target == null)
{
target = (com.yworks.xml.graphml.ColorType)get_store().add_attribute_user(FILLCOLOR$0);
}
target.set(fillColor);
}
}
/**
* Unsets the "fillColor" attribute
*/
public void unsetFillColor()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(FILLCOLOR$0);
}
}
/**
* Gets the "lineColor" attribute
*/
public java.lang.String getLineColor()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINECOLOR$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "lineColor" attribute
*/
public com.yworks.xml.graphml.ColorType xgetLineColor()
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.ColorType target = null;
target = (com.yworks.xml.graphml.ColorType)get_store().find_attribute_user(LINECOLOR$2);
return target;
}
}
/**
* True if has "lineColor" attribute
*/
public boolean isSetLineColor()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(LINECOLOR$2) != null;
}
}
/**
* Sets the "lineColor" attribute
*/
public void setLineColor(java.lang.String lineColor)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINECOLOR$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LINECOLOR$2);
}
target.setStringValue(lineColor);
}
}
/**
* Sets (as xml) the "lineColor" attribute
*/
public void xsetLineColor(com.yworks.xml.graphml.ColorType lineColor)
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.ColorType target = null;
target = (com.yworks.xml.graphml.ColorType)get_store().find_attribute_user(LINECOLOR$2);
if (target == null)
{
target = (com.yworks.xml.graphml.ColorType)get_store().add_attribute_user(LINECOLOR$2);
}
target.set(lineColor);
}
}
/**
* Unsets the "lineColor" attribute
*/
public void unsetLineColor()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(LINECOLOR$2);
}
}
/**
* Gets the "lineType" attribute
*/
public com.yworks.xml.graphml.LineTypeType.Enum getLineType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINETYPE$4);
if (target == null)
{
return null;
}
return (com.yworks.xml.graphml.LineTypeType.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "lineType" attribute
*/
public com.yworks.xml.graphml.LineTypeType xgetLineType()
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.LineTypeType target = null;
target = (com.yworks.xml.graphml.LineTypeType)get_store().find_attribute_user(LINETYPE$4);
return target;
}
}
/**
* True if has "lineType" attribute
*/
public boolean isSetLineType()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(LINETYPE$4) != null;
}
}
/**
* Sets the "lineType" attribute
*/
public void setLineType(com.yworks.xml.graphml.LineTypeType.Enum lineType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINETYPE$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LINETYPE$4);
}
target.setEnumValue(lineType);
}
}
/**
* Sets (as xml) the "lineType" attribute
*/
public void xsetLineType(com.yworks.xml.graphml.LineTypeType lineType)
{
synchronized (monitor())
{
check_orphaned();
com.yworks.xml.graphml.LineTypeType target = null;
target = (com.yworks.xml.graphml.LineTypeType)get_store().find_attribute_user(LINETYPE$4);
if (target == null)
{
target = (com.yworks.xml.graphml.LineTypeType)get_store().add_attribute_user(LINETYPE$4);
}
target.set(lineType);
}
}
/**
* Unsets the "lineType" attribute
*/
public void unsetLineType()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(LINETYPE$4);
}
}
/**
* Gets the "lineWidth" attribute
*/
public double getLineWidth()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINEWIDTH$6);
if (target == null)
{
return 0.0;
}
return target.getDoubleValue();
}
}
/**
* Gets (as xml) the "lineWidth" attribute
*/
public org.apache.xmlbeans.XmlDouble xgetLineWidth()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDouble target = null;
target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(LINEWIDTH$6);
return target;
}
}
/**
* True if has "lineWidth" attribute
*/
public boolean isSetLineWidth()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(LINEWIDTH$6) != null;
}
}
/**
* Sets the "lineWidth" attribute
*/
public void setLineWidth(double lineWidth)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINEWIDTH$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LINEWIDTH$6);
}
target.setDoubleValue(lineWidth);
}
}
/**
* Sets (as xml) the "lineWidth" attribute
*/
public void xsetLineWidth(org.apache.xmlbeans.XmlDouble lineWidth)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDouble target = null;
target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(LINEWIDTH$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(LINEWIDTH$6);
}
target.set(lineWidth);
}
}
/**
* Unsets the "lineWidth" attribute
*/
public void unsetLineWidth()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(LINEWIDTH$6);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy