org.example.wsHT.impl.XMLTDeadlineImpl Maven / Gradle / Ivy
The newest version!
/*
* XML Type: tDeadline
* Namespace: http://www.example.org/WS-HT
* Java type: org.example.wsHT.XMLTDeadline
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.impl;
/**
* An XML tDeadline(@http://www.example.org/WS-HT).
*
* This is a complex type.
*/
public class XMLTDeadlineImpl extends org.example.wsHT.impl.XMLTExtensibleElementsImpl implements org.example.wsHT.XMLTDeadline
{
private static final long serialVersionUID = 1L;
public XMLTDeadlineImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FOR$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "for");
private static final javax.xml.namespace.QName UNTIL$2 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "until");
private static final javax.xml.namespace.QName ESCALATION$4 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT", "escalation");
/**
* Gets the "for" element
*/
public org.example.wsHT.XMLTDurationExpr getFor()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTDurationExpr target = null;
target = (org.example.wsHT.XMLTDurationExpr)get_store().find_element_user(FOR$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "for" element
*/
public boolean isSetFor()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FOR$0) != 0;
}
}
/**
* Sets the "for" element
*/
public void setFor(org.example.wsHT.XMLTDurationExpr xfor)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTDurationExpr target = null;
target = (org.example.wsHT.XMLTDurationExpr)get_store().find_element_user(FOR$0, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTDurationExpr)get_store().add_element_user(FOR$0);
}
target.set(xfor);
}
}
/**
* Appends and returns a new empty "for" element
*/
public org.example.wsHT.XMLTDurationExpr addNewFor()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTDurationExpr target = null;
target = (org.example.wsHT.XMLTDurationExpr)get_store().add_element_user(FOR$0);
return target;
}
}
/**
* Unsets the "for" element
*/
public void unsetFor()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FOR$0, 0);
}
}
/**
* Gets the "until" element
*/
public org.example.wsHT.XMLTDeadlineExpr getUntil()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTDeadlineExpr target = null;
target = (org.example.wsHT.XMLTDeadlineExpr)get_store().find_element_user(UNTIL$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "until" element
*/
public boolean isSetUntil()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(UNTIL$2) != 0;
}
}
/**
* Sets the "until" element
*/
public void setUntil(org.example.wsHT.XMLTDeadlineExpr until)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTDeadlineExpr target = null;
target = (org.example.wsHT.XMLTDeadlineExpr)get_store().find_element_user(UNTIL$2, 0);
if (target == null)
{
target = (org.example.wsHT.XMLTDeadlineExpr)get_store().add_element_user(UNTIL$2);
}
target.set(until);
}
}
/**
* Appends and returns a new empty "until" element
*/
public org.example.wsHT.XMLTDeadlineExpr addNewUntil()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTDeadlineExpr target = null;
target = (org.example.wsHT.XMLTDeadlineExpr)get_store().add_element_user(UNTIL$2);
return target;
}
}
/**
* Unsets the "until" element
*/
public void unsetUntil()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(UNTIL$2, 0);
}
}
/**
* Gets a List of "escalation" elements
*/
public java.util.List getEscalationList()
{
final class EscalationList extends java.util.AbstractList
{
public org.example.wsHT.XMLTEscalation get(int i)
{ return XMLTDeadlineImpl.this.getEscalationArray(i); }
public org.example.wsHT.XMLTEscalation set(int i, org.example.wsHT.XMLTEscalation o)
{
org.example.wsHT.XMLTEscalation old = XMLTDeadlineImpl.this.getEscalationArray(i);
XMLTDeadlineImpl.this.setEscalationArray(i, o);
return old;
}
public void add(int i, org.example.wsHT.XMLTEscalation o)
{ XMLTDeadlineImpl.this.insertNewEscalation(i).set(o); }
public org.example.wsHT.XMLTEscalation remove(int i)
{
org.example.wsHT.XMLTEscalation old = XMLTDeadlineImpl.this.getEscalationArray(i);
XMLTDeadlineImpl.this.removeEscalation(i);
return old;
}
public int size()
{ return XMLTDeadlineImpl.this.sizeOfEscalationArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new EscalationList();
}
}
/**
* Gets array of all "escalation" elements
* @deprecated
*/
public org.example.wsHT.XMLTEscalation[] getEscalationArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ESCALATION$4, targetList);
org.example.wsHT.XMLTEscalation[] result = new org.example.wsHT.XMLTEscalation[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "escalation" element
*/
public org.example.wsHT.XMLTEscalation getEscalationArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTEscalation target = null;
target = (org.example.wsHT.XMLTEscalation)get_store().find_element_user(ESCALATION$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "escalation" element
*/
public int sizeOfEscalationArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ESCALATION$4);
}
}
/**
* Sets array of all "escalation" element
*/
public void setEscalationArray(org.example.wsHT.XMLTEscalation[] escalationArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(escalationArray, ESCALATION$4);
}
}
/**
* Sets ith "escalation" element
*/
public void setEscalationArray(int i, org.example.wsHT.XMLTEscalation escalation)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTEscalation target = null;
target = (org.example.wsHT.XMLTEscalation)get_store().find_element_user(ESCALATION$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(escalation);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "escalation" element
*/
public org.example.wsHT.XMLTEscalation insertNewEscalation(int i)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTEscalation target = null;
target = (org.example.wsHT.XMLTEscalation)get_store().insert_element_user(ESCALATION$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "escalation" element
*/
public org.example.wsHT.XMLTEscalation addNewEscalation()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.XMLTEscalation target = null;
target = (org.example.wsHT.XMLTEscalation)get_store().add_element_user(ESCALATION$4);
return target;
}
}
/**
* Removes the ith "escalation" element
*/
public void removeEscalation(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ESCALATION$4, i);
}
}
}