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