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