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