net.opengis.sensorml.x20.impl.KeywordListTypeImpl Maven / Gradle / Ivy
/*
* XML Type: KeywordListType
* Namespace: http://www.opengis.net/sensorml/2.0
* Java type: net.opengis.sensorml.x20.KeywordListType
*
* Automatically generated - do not modify.
*/
package net.opengis.sensorml.x20.impl;
/**
* An XML KeywordListType(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public class KeywordListTypeImpl extends net.opengis.sensorml.x20.impl.AbstractMetadataListTypeImpl implements net.opengis.sensorml.x20.KeywordListType
{
private static final long serialVersionUID = 1L;
public KeywordListTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CODESPACE$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "codeSpace");
private static final javax.xml.namespace.QName KEYWORD$2 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "keyword");
/**
* Gets the "codeSpace" element
*/
public net.opengis.swe.x20.Reference getCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.Reference target = null;
target = (net.opengis.swe.x20.Reference)get_store().find_element_user(CODESPACE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "codeSpace" element
*/
public boolean isSetCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CODESPACE$0) != 0;
}
}
/**
* Sets the "codeSpace" element
*/
public void setCodeSpace(net.opengis.swe.x20.Reference codeSpace)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.Reference target = null;
target = (net.opengis.swe.x20.Reference)get_store().find_element_user(CODESPACE$0, 0);
if (target == null)
{
target = (net.opengis.swe.x20.Reference)get_store().add_element_user(CODESPACE$0);
}
target.set(codeSpace);
}
}
/**
* Appends and returns a new empty "codeSpace" element
*/
public net.opengis.swe.x20.Reference addNewCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.Reference target = null;
target = (net.opengis.swe.x20.Reference)get_store().add_element_user(CODESPACE$0);
return target;
}
}
/**
* Unsets the "codeSpace" element
*/
public void unsetCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CODESPACE$0, 0);
}
}
/**
* Gets array of all "keyword" elements
*/
public java.lang.String[] getKeywordArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(KEYWORD$2, targetList);
java.lang.String[] result = new java.lang.String[targetList.size()];
for (int i = 0, len = targetList.size() ; i < len ; i++)
result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
return result;
}
}
/**
* Gets ith "keyword" element
*/
public java.lang.String getKeywordArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYWORD$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "keyword" elements
*/
public org.apache.xmlbeans.XmlString[] xgetKeywordArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(KEYWORD$2, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "keyword" element
*/
public org.apache.xmlbeans.XmlString xgetKeywordArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYWORD$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "keyword" element
*/
public int sizeOfKeywordArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(KEYWORD$2);
}
}
/**
* Sets array of all "keyword" element
*/
public void setKeywordArray(java.lang.String[] keywordArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(keywordArray, KEYWORD$2);
}
}
/**
* Sets ith "keyword" element
*/
public void setKeywordArray(int i, java.lang.String keyword)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYWORD$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(keyword);
}
}
/**
* Sets (as xml) array of all "keyword" element
*/
public void xsetKeywordArray(org.apache.xmlbeans.XmlString[]keywordArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(keywordArray, KEYWORD$2);
}
}
/**
* Sets (as xml) ith "keyword" element
*/
public void xsetKeywordArray(int i, org.apache.xmlbeans.XmlString keyword)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYWORD$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(keyword);
}
}
/**
* Inserts the value as the ith "keyword" element
*/
public void insertKeyword(int i, java.lang.String keyword)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(KEYWORD$2, i);
target.setStringValue(keyword);
}
}
/**
* Appends the value as the last "keyword" element
*/
public void addKeyword(java.lang.String keyword)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYWORD$2);
target.setStringValue(keyword);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "keyword" element
*/
public org.apache.xmlbeans.XmlString insertNewKeyword(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(KEYWORD$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "keyword" element
*/
public org.apache.xmlbeans.XmlString addNewKeyword()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYWORD$2);
return target;
}
}
/**
* Removes the ith "keyword" element
*/
public void removeKeyword(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(KEYWORD$2, i);
}
}
}