net.opengis.swe.x101.impl.TextDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Text
* Namespace: http://www.opengis.net/swe/1.0.1
* Java type: net.opengis.swe.x101.TextDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x101.impl;
/**
* A document containing one Text(@http://www.opengis.net/swe/1.0.1) element.
*
* This is a complex type.
*/
public class TextDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.swe.x101.TextDocument
{
private static final long serialVersionUID = 1L;
public TextDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TEXT$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "Text");
/**
* Gets the "Text" element
*/
public net.opengis.swe.x101.TextDocument.Text getText()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.TextDocument.Text target = null;
target = (net.opengis.swe.x101.TextDocument.Text)get_store().find_element_user(TEXT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Text" element
*/
public void setText(net.opengis.swe.x101.TextDocument.Text text)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.TextDocument.Text target = null;
target = (net.opengis.swe.x101.TextDocument.Text)get_store().find_element_user(TEXT$0, 0);
if (target == null)
{
target = (net.opengis.swe.x101.TextDocument.Text)get_store().add_element_user(TEXT$0);
}
target.set(text);
}
}
/**
* Appends and returns a new empty "Text" element
*/
public net.opengis.swe.x101.TextDocument.Text addNewText()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.TextDocument.Text target = null;
target = (net.opengis.swe.x101.TextDocument.Text)get_store().add_element_user(TEXT$0);
return target;
}
}
/**
* An XML Text(@http://www.opengis.net/swe/1.0.1).
*
* This is a complex type.
*/
public static class TextImpl extends net.opengis.swe.x101.impl.AbstractDataComponentTypeImpl implements net.opengis.swe.x101.TextDocument.Text
{
private static final long serialVersionUID = 1L;
public TextImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VALUE$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "value");
/**
* Gets the "value" element
*/
public java.lang.String getValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "value" element
*/
public org.apache.xmlbeans.XmlString xgetValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$0, 0);
return target;
}
}
/**
* True if has "value" element
*/
public boolean isSetValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VALUE$0) != 0;
}
}
/**
* Sets the "value" element
*/
public void setValue(java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$0);
}
target.setStringValue(value);
}
}
/**
* Sets (as xml) the "value" element
*/
public void xsetValue(org.apache.xmlbeans.XmlString value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$0);
}
target.set(value);
}
}
/**
* Unsets the "value" element
*/
public void unsetValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VALUE$0, 0);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy