net.opengis.swe.x101.impl.GeoLocationAreaDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: GeoLocationArea
* Namespace: http://www.opengis.net/swe/1.0.1
* Java type: net.opengis.swe.x101.GeoLocationAreaDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x101.impl;
/**
* A document containing one GeoLocationArea(@http://www.opengis.net/swe/1.0.1) element.
*
* This is a complex type.
*/
public class GeoLocationAreaDocumentImpl extends net.opengis.swe.x101.impl.AbstractDataRecordDocumentImpl implements net.opengis.swe.x101.GeoLocationAreaDocument
{
private static final long serialVersionUID = 1L;
public GeoLocationAreaDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName GEOLOCATIONAREA$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "GeoLocationArea");
/**
* Gets the "GeoLocationArea" element
*/
public net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea getGeoLocationArea()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea target = null;
target = (net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea)get_store().find_element_user(GEOLOCATIONAREA$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "GeoLocationArea" element
*/
public void setGeoLocationArea(net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea geoLocationArea)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea target = null;
target = (net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea)get_store().find_element_user(GEOLOCATIONAREA$0, 0);
if (target == null)
{
target = (net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea)get_store().add_element_user(GEOLOCATIONAREA$0);
}
target.set(geoLocationArea);
}
}
/**
* Appends and returns a new empty "GeoLocationArea" element
*/
public net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea addNewGeoLocationArea()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea target = null;
target = (net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea)get_store().add_element_user(GEOLOCATIONAREA$0);
return target;
}
}
/**
* An XML GeoLocationArea(@http://www.opengis.net/swe/1.0.1).
*
* This is a complex type.
*/
public static class GeoLocationAreaImpl extends net.opengis.swe.x101.impl.AbstractVectorTypeImpl implements net.opengis.swe.x101.GeoLocationAreaDocument.GeoLocationArea
{
private static final long serialVersionUID = 1L;
public GeoLocationAreaImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MEMBER$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "member");
private static final javax.xml.namespace.QName NAME2$2 =
new javax.xml.namespace.QName("", "name");
/**
* Gets array of all "member" elements
*/
public net.opengis.swe.x101.EnvelopePropertyType[] getMemberArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(MEMBER$0, targetList);
net.opengis.swe.x101.EnvelopePropertyType[] result = new net.opengis.swe.x101.EnvelopePropertyType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "member" element
*/
public net.opengis.swe.x101.EnvelopePropertyType getMemberArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.EnvelopePropertyType target = null;
target = (net.opengis.swe.x101.EnvelopePropertyType)get_store().find_element_user(MEMBER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "member" element
*/
public int sizeOfMemberArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MEMBER$0);
}
}
/**
* Sets array of all "member" element
*/
public void setMemberArray(net.opengis.swe.x101.EnvelopePropertyType[] memberArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(memberArray, MEMBER$0);
}
}
/**
* Sets ith "member" element
*/
public void setMemberArray(int i, net.opengis.swe.x101.EnvelopePropertyType member)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.EnvelopePropertyType target = null;
target = (net.opengis.swe.x101.EnvelopePropertyType)get_store().find_element_user(MEMBER$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(member);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "member" element
*/
public net.opengis.swe.x101.EnvelopePropertyType insertNewMember(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.EnvelopePropertyType target = null;
target = (net.opengis.swe.x101.EnvelopePropertyType)get_store().insert_element_user(MEMBER$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "member" element
*/
public net.opengis.swe.x101.EnvelopePropertyType addNewMember()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.EnvelopePropertyType target = null;
target = (net.opengis.swe.x101.EnvelopePropertyType)get_store().add_element_user(MEMBER$0);
return target;
}
}
/**
* Removes the ith "member" element
*/
public void removeMember(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MEMBER$0, i);
}
}
/**
* Gets the "name" attribute
*/
public java.lang.String getName2()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME2$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" attribute
*/
public org.apache.xmlbeans.XmlToken xgetName2()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(NAME2$2);
return target;
}
}
/**
* True if has "name" attribute
*/
public boolean isSetName2()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(NAME2$2) != null;
}
}
/**
* Sets the "name" attribute
*/
public void setName2(java.lang.String name2)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME2$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME2$2);
}
target.setStringValue(name2);
}
}
/**
* Sets (as xml) the "name" attribute
*/
public void xsetName2(org.apache.xmlbeans.XmlToken name2)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(NAME2$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlToken)get_store().add_attribute_user(NAME2$2);
}
target.set(name2);
}
}
/**
* Unsets the "name" attribute
*/
public void unsetName2()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(NAME2$2);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy