net.opengis.swe.x20.impl.VectorDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: Vector
* Namespace: http://www.opengis.net/swe/2.0
* Java type: net.opengis.swe.x20.VectorDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x20.impl;
/**
* A document containing one Vector(@http://www.opengis.net/swe/2.0) element.
*
* This is a complex type.
*/
public class VectorDocumentImpl extends net.opengis.swe.x20.impl.AbstractDataComponentDocumentImpl implements net.opengis.swe.x20.VectorDocument
{
private static final long serialVersionUID = 1L;
public VectorDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VECTOR$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "Vector");
/**
* Gets the "Vector" element
*/
public net.opengis.swe.x20.VectorType getVector()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.VectorType target = null;
target = (net.opengis.swe.x20.VectorType)get_store().find_element_user(VECTOR$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Vector" element
*/
public void setVector(net.opengis.swe.x20.VectorType vector)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.VectorType target = null;
target = (net.opengis.swe.x20.VectorType)get_store().find_element_user(VECTOR$0, 0);
if (target == null)
{
target = (net.opengis.swe.x20.VectorType)get_store().add_element_user(VECTOR$0);
}
target.set(vector);
}
}
/**
* Appends and returns a new empty "Vector" element
*/
public net.opengis.swe.x20.VectorType addNewVector()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.VectorType target = null;
target = (net.opengis.swe.x20.VectorType)get_store().add_element_user(VECTOR$0);
return target;
}
}
}