org.example.wsHT.impl.XMLTEscalationImpl Maven / Gradle / Ivy
The newest version!
/*
* XML Type: tEscalation
* Namespace: http://www.example.org/WS-HT
* Java type: org.example.wsHT.XMLTEscalation
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.impl;
/**
* An XML tEscalation(@http://www.example.org/WS-HT).
*
* This is a complex type.
*/
public class XMLTEscalationImpl extends org.example.wsHT.impl.XMLTExtensibleElementsImpl implements org.example.wsHT.XMLTEscalation
{
private static final long serialVersionUID = 1L;
public XMLTEscalationImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONDITION$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "condition");
private static final javax.xml.namespace.QName TOPARTS$2 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "toParts");
private static final javax.xml.namespace.QName NOTIFICATION$4 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "notification");
private static final javax.xml.namespace.QName LOCALNOTIFICATION$6 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "localNotification");
private static final javax.xml.namespace.QName REASSIGNMENT$8 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "reassignment");
private static final javax.xml.namespace.QName NAME$10 =
new javax.xml.namespace.QName("", "name");
/**
* Gets the "condition" element
*/
public org.example.wsHT.XMLTBooleanExpr getCondition()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTBooleanExpr target = null;
target = (org.example.wsHT.XMLTBooleanExpr)get_store().find_element_user(CONDITION$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "condition" element
*/
public boolean isSetCondition()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONDITION$0) != 0;
}
}
/**
* Sets the "condition" element
*/
public void setCondition(org.example.wsHT.XMLTBooleanExpr condition)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTBooleanExpr target = null;
target = (org.example.wsHT.XMLTBooleanExpr)get_store().find_element_user(CONDITION$0, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTBooleanExpr)get_store().add_element_user(CONDITION$0);
}
target.set(condition);
}
}
/**
* Appends and returns a new empty "condition" element
*/
public org.example.wsHT.XMLTBooleanExpr addNewCondition()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTBooleanExpr target = null;
target = (org.example.wsHT.XMLTBooleanExpr)get_store().add_element_user(CONDITION$0);
return target;
}
}
/**
* Unsets the "condition" element
*/
public void unsetCondition()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONDITION$0, 0);
}
}
/**
* Gets a List of "toParts" elements
*/
public java.util.List getToPartsList()
{
final class ToPartsList extends java.util.AbstractList
{
public org.example.wsHT.XMLTToParts get(int i)
{ return XMLTEscalationImpl.this.getToPartsArray(i); }
public org.example.wsHT.XMLTToParts set(int i, org.example.wsHT.XMLTToParts o)
{
org.example.wsHT.XMLTToParts old = XMLTEscalationImpl.this.getToPartsArray(i);
XMLTEscalationImpl.this.setToPartsArray(i, o);
return old;
}
public void add(int i, org.example.wsHT.XMLTToParts o)
{ XMLTEscalationImpl.this.insertNewToParts(i).set(o); }
public org.example.wsHT.XMLTToParts remove(int i)
{
org.example.wsHT.XMLTToParts old = XMLTEscalationImpl.this.getToPartsArray(i);
XMLTEscalationImpl.this.removeToParts(i);
return old;
}
public int size()
{ return XMLTEscalationImpl.this.sizeOfToPartsArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ToPartsList();
}
}
/**
* Gets array of all "toParts" elements
* @deprecated
*/
public org.example.wsHT.XMLTToParts[] getToPartsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(TOPARTS$2, targetList);
org.example.wsHT.XMLTToParts[] result = new org.example.wsHT.XMLTToParts[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "toParts" element
*/
public org.example.wsHT.XMLTToParts getToPartsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTToParts target = null;
target = (org.example.wsHT.XMLTToParts)get_store().find_element_user(TOPARTS$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "toParts" element
*/
public int sizeOfToPartsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TOPARTS$2);
}
}
/**
* Sets array of all "toParts" element
*/
public void setToPartsArray(org.example.wsHT.XMLTToParts[] toPartsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(toPartsArray, TOPARTS$2);
}
}
/**
* Sets ith "toParts" element
*/
public void setToPartsArray(int i, org.example.wsHT.XMLTToParts toParts)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTToParts target = null;
target = (org.example.wsHT.XMLTToParts)get_store().find_element_user(TOPARTS$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(toParts);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "toParts" element
*/
public org.example.wsHT.XMLTToParts insertNewToParts(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTToParts target = null;
target = (org.example.wsHT.XMLTToParts)get_store().insert_element_user(TOPARTS$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "toParts" element
*/
public org.example.wsHT.XMLTToParts addNewToParts()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTToParts target = null;
target = (org.example.wsHT.XMLTToParts)get_store().add_element_user(TOPARTS$2);
return target;
}
}
/**
* Removes the ith "toParts" element
*/
public void removeToParts(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TOPARTS$2, i);
}
}
/**
* Gets the "notification" element
*/
public org.example.wsHT.XMLTNotification getNotification()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTNotification target = null;
target = (org.example.wsHT.XMLTNotification)get_store().find_element_user(NOTIFICATION$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "notification" element
*/
public boolean isSetNotification()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NOTIFICATION$4) != 0;
}
}
/**
* Sets the "notification" element
*/
public void setNotification(org.example.wsHT.XMLTNotification notification)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTNotification target = null;
target = (org.example.wsHT.XMLTNotification)get_store().find_element_user(NOTIFICATION$4, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTNotification)get_store().add_element_user(NOTIFICATION$4);
}
target.set(notification);
}
}
/**
* Appends and returns a new empty "notification" element
*/
public org.example.wsHT.XMLTNotification addNewNotification()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTNotification target = null;
target = (org.example.wsHT.XMLTNotification)get_store().add_element_user(NOTIFICATION$4);
return target;
}
}
/**
* Unsets the "notification" element
*/
public void unsetNotification()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NOTIFICATION$4, 0);
}
}
/**
* Gets the "localNotification" element
*/
public org.example.wsHT.XMLTLocalNotification getLocalNotification()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTLocalNotification target = null;
target = (org.example.wsHT.XMLTLocalNotification)get_store().find_element_user(LOCALNOTIFICATION$6, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "localNotification" element
*/
public boolean isSetLocalNotification()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(LOCALNOTIFICATION$6) != 0;
}
}
/**
* Sets the "localNotification" element
*/
public void setLocalNotification(org.example.wsHT.XMLTLocalNotification localNotification)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTLocalNotification target = null;
target = (org.example.wsHT.XMLTLocalNotification)get_store().find_element_user(LOCALNOTIFICATION$6, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTLocalNotification)get_store().add_element_user(LOCALNOTIFICATION$6);
}
target.set(localNotification);
}
}
/**
* Appends and returns a new empty "localNotification" element
*/
public org.example.wsHT.XMLTLocalNotification addNewLocalNotification()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTLocalNotification target = null;
target = (org.example.wsHT.XMLTLocalNotification)get_store().add_element_user(LOCALNOTIFICATION$6);
return target;
}
}
/**
* Unsets the "localNotification" element
*/
public void unsetLocalNotification()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(LOCALNOTIFICATION$6, 0);
}
}
/**
* Gets the "reassignment" element
*/
public org.example.wsHT.XMLTReassignment getReassignment()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTReassignment target = null;
target = (org.example.wsHT.XMLTReassignment)get_store().find_element_user(REASSIGNMENT$8, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "reassignment" element
*/
public boolean isSetReassignment()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(REASSIGNMENT$8) != 0;
}
}
/**
* Sets the "reassignment" element
*/
public void setReassignment(org.example.wsHT.XMLTReassignment reassignment)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTReassignment target = null;
target = (org.example.wsHT.XMLTReassignment)get_store().find_element_user(REASSIGNMENT$8, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTReassignment)get_store().add_element_user(REASSIGNMENT$8);
}
target.set(reassignment);
}
}
/**
* Appends and returns a new empty "reassignment" element
*/
public org.example.wsHT.XMLTReassignment addNewReassignment()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTReassignment target = null;
target = (org.example.wsHT.XMLTReassignment)get_store().add_element_user(REASSIGNMENT$8);
return target;
}
}
/**
* Unsets the "reassignment" element
*/
public void unsetReassignment()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(REASSIGNMENT$8, 0);
}
}
/**
* Gets the "name" attribute
*/
public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$10);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" attribute
*/
public org.apache.xmlbeans.XmlNCName xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$10);
return target;
}
}
/**
* Sets the "name" attribute
*/
public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$10);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$10);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" attribute
*/
public void xsetName(org.apache.xmlbeans.XmlNCName name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(NAME$10);
if (target == null)
{
target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(NAME$10);
}
target.set(name);
}
}
}