net.opengis.ogc.impl.ExpressionDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: expression
* Namespace: http://www.opengis.net/ogc
* Java type: net.opengis.ogc.ExpressionDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.ogc.impl;
/**
* A document containing one expression(@http://www.opengis.net/ogc) element.
*
* This is a complex type.
*/
public class ExpressionDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ogc.ExpressionDocument
{
private static final long serialVersionUID = 1L;
public ExpressionDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName EXPRESSION$0 =
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "expression");
private static final org.apache.xmlbeans.QNameSet EXPRESSION$1 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] {
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "Mul"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "expression"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "Function"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "Literal"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "Sub"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "Add"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "Div"),
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "PropertyName"),
});
/**
* Gets the "expression" element
*/
public net.opengis.ogc.ExpressionType getExpression()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.ExpressionType target = null;
target = (net.opengis.ogc.ExpressionType)get_store().find_element_user(EXPRESSION$1, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "expression" element
*/
public void setExpression(net.opengis.ogc.ExpressionType expression)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.ExpressionType target = null;
target = (net.opengis.ogc.ExpressionType)get_store().find_element_user(EXPRESSION$1, 0);
if (target == null)
{
target = (net.opengis.ogc.ExpressionType)get_store().add_element_user(EXPRESSION$0);
}
target.set(expression);
}
}
/**
* Appends and returns a new empty "expression" element
*/
public net.opengis.ogc.ExpressionType addNewExpression()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.ExpressionType target = null;
target = (net.opengis.ogc.ExpressionType)get_store().add_element_user(EXPRESSION$0);
return target;
}
}
}