net.opengis.swe.x20.impl.ComponentDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Component
* Namespace: http://www.opengis.net/swe/2.0
* Java type: net.opengis.swe.x20.ComponentDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x20.impl;
/**
* A document containing one Component(@http://www.opengis.net/swe/2.0) element.
*
* This is a complex type.
*/
public class ComponentDocumentImpl extends net.opengis.swe.x20.impl.AbstractSWEDocumentImpl implements net.opengis.swe.x20.ComponentDocument
{
private static final long serialVersionUID = 1L;
public ComponentDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName COMPONENT$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "Component");
/**
* Gets the "Component" element
*/
public net.opengis.swe.x20.ComponentType getComponent()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.ComponentType target = null;
target = (net.opengis.swe.x20.ComponentType)get_store().find_element_user(COMPONENT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Component" element
*/
public void setComponent(net.opengis.swe.x20.ComponentType component)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.ComponentType target = null;
target = (net.opengis.swe.x20.ComponentType)get_store().find_element_user(COMPONENT$0, 0);
if (target == null)
{
target = (net.opengis.swe.x20.ComponentType)get_store().add_element_user(COMPONENT$0);
}
target.set(component);
}
}
/**
* Appends and returns a new empty "Component" element
*/
public net.opengis.swe.x20.ComponentType addNewComponent()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.ComponentType target = null;
target = (net.opengis.swe.x20.ComponentType)get_store().add_element_user(COMPONENT$0);
return target;
}
}
}