net.opengis.swe.x10.impl.VectorOrSquareMatrixPropertyTypeImpl Maven / Gradle / Ivy
/*
* XML Type: VectorOrSquareMatrixPropertyType
* Namespace: http://www.opengis.net/swe/1.0
* Java type: net.opengis.swe.x10.VectorOrSquareMatrixPropertyType
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x10.impl;
/**
* An XML VectorOrSquareMatrixPropertyType(@http://www.opengis.net/swe/1.0).
*
* This is a complex type.
*/
public class VectorOrSquareMatrixPropertyTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.swe.x10.VectorOrSquareMatrixPropertyType
{
private static final long serialVersionUID = 1L;
public VectorOrSquareMatrixPropertyTypeImpl(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/1.0", "Vector");
private static final javax.xml.namespace.QName SQUAREMATRIX$2 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "SquareMatrix");
/**
* Gets the "Vector" element
*/
public net.opengis.swe.x10.VectorType getVector()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.VectorType target = null;
target = (net.opengis.swe.x10.VectorType)get_store().find_element_user(VECTOR$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "Vector" element
*/
public boolean isSetVector()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VECTOR$0) != 0;
}
}
/**
* Sets the "Vector" element
*/
public void setVector(net.opengis.swe.x10.VectorType vector)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.VectorType target = null;
target = (net.opengis.swe.x10.VectorType)get_store().find_element_user(VECTOR$0, 0);
if (target == null)
{
target = (net.opengis.swe.x10.VectorType)get_store().add_element_user(VECTOR$0);
}
target.set(vector);
}
}
/**
* Appends and returns a new empty "Vector" element
*/
public net.opengis.swe.x10.VectorType addNewVector()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.VectorType target = null;
target = (net.opengis.swe.x10.VectorType)get_store().add_element_user(VECTOR$0);
return target;
}
}
/**
* Unsets the "Vector" element
*/
public void unsetVector()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VECTOR$0, 0);
}
}
/**
* Gets the "SquareMatrix" element
*/
public net.opengis.swe.x10.SquareMatrixType getSquareMatrix()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.SquareMatrixType target = null;
target = (net.opengis.swe.x10.SquareMatrixType)get_store().find_element_user(SQUAREMATRIX$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "SquareMatrix" element
*/
public boolean isSetSquareMatrix()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SQUAREMATRIX$2) != 0;
}
}
/**
* Sets the "SquareMatrix" element
*/
public void setSquareMatrix(net.opengis.swe.x10.SquareMatrixType squareMatrix)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.SquareMatrixType target = null;
target = (net.opengis.swe.x10.SquareMatrixType)get_store().find_element_user(SQUAREMATRIX$2, 0);
if (target == null)
{
target = (net.opengis.swe.x10.SquareMatrixType)get_store().add_element_user(SQUAREMATRIX$2);
}
target.set(squareMatrix);
}
}
/**
* Appends and returns a new empty "SquareMatrix" element
*/
public net.opengis.swe.x10.SquareMatrixType addNewSquareMatrix()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.SquareMatrixType target = null;
target = (net.opengis.swe.x10.SquareMatrixType)get_store().add_element_user(SQUAREMATRIX$2);
return target;
}
}
/**
* Unsets the "SquareMatrix" element
*/
public void unsetSquareMatrix()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SQUAREMATRIX$2, 0);
}
}
}