net.opengis.swe.x10.impl.CompositePhenomenonTypeImpl Maven / Gradle / Ivy
/*
* XML Type: CompositePhenomenonType
* Namespace: http://www.opengis.net/swe/1.0
* Java type: net.opengis.swe.x10.CompositePhenomenonType
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x10.impl;
/**
* An XML CompositePhenomenonType(@http://www.opengis.net/swe/1.0).
*
* This is a complex type.
*/
public class CompositePhenomenonTypeImpl extends net.opengis.swe.x10.impl.CompoundPhenomenonTypeImpl implements net.opengis.swe.x10.CompositePhenomenonType
{
private static final long serialVersionUID = 1L;
public CompositePhenomenonTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName BASE$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "base");
private static final javax.xml.namespace.QName COMPONENT$2 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "component");
/**
* Gets the "base" element
*/
public net.opengis.swe.x10.PhenomenonPropertyType getBase()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().find_element_user(BASE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "base" element
*/
public boolean isSetBase()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(BASE$0) != 0;
}
}
/**
* Sets the "base" element
*/
public void setBase(net.opengis.swe.x10.PhenomenonPropertyType base)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().find_element_user(BASE$0, 0);
if (target == null)
{
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().add_element_user(BASE$0);
}
target.set(base);
}
}
/**
* Appends and returns a new empty "base" element
*/
public net.opengis.swe.x10.PhenomenonPropertyType addNewBase()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().add_element_user(BASE$0);
return target;
}
}
/**
* Unsets the "base" element
*/
public void unsetBase()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(BASE$0, 0);
}
}
/**
* Gets array of all "component" elements
*/
public net.opengis.swe.x10.PhenomenonPropertyType[] getComponentArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(COMPONENT$2, targetList);
net.opengis.swe.x10.PhenomenonPropertyType[] result = new net.opengis.swe.x10.PhenomenonPropertyType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "component" element
*/
public net.opengis.swe.x10.PhenomenonPropertyType getComponentArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().find_element_user(COMPONENT$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "component" element
*/
public int sizeOfComponentArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(COMPONENT$2);
}
}
/**
* Sets array of all "component" element
*/
public void setComponentArray(net.opengis.swe.x10.PhenomenonPropertyType[] componentArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(componentArray, COMPONENT$2);
}
}
/**
* Sets ith "component" element
*/
public void setComponentArray(int i, net.opengis.swe.x10.PhenomenonPropertyType component)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().find_element_user(COMPONENT$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(component);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "component" element
*/
public net.opengis.swe.x10.PhenomenonPropertyType insertNewComponent(int i)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().insert_element_user(COMPONENT$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "component" element
*/
public net.opengis.swe.x10.PhenomenonPropertyType addNewComponent()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x10.PhenomenonPropertyType target = null;
target = (net.opengis.swe.x10.PhenomenonPropertyType)get_store().add_element_user(COMPONENT$2);
return target;
}
}
/**
* Removes the ith "component" element
*/
public void removeComponent(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(COMPONENT$2, i);
}
}
}