org.example.wsHT.api.impl.XMLTaskDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: task
* Namespace: http://www.example.org/WS-HT/api
* Java type: org.example.wsHT.api.XMLTaskDocument
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.api.impl;
/**
* A document containing one task(@http://www.example.org/WS-HT/api) element.
*
* This is a complex type.
*/
public class XMLTaskDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.XMLTaskDocument
{
private static final long serialVersionUID = 1L;
public XMLTaskDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TASK$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api", "task");
/**
* Gets the "task" element
*/
public org.example.wsHT.api.XMLTTask getTask()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().find_element_user(TASK$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "task" element
*/
public void setTask(org.example.wsHT.api.XMLTTask task)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().find_element_user(TASK$0, 0);
if (target == null)
{
target = (org.example.wsHT.api.XMLTTask)get_store().add_element_user(TASK$0);
}
target.set(task);
}
}
/**
* Appends and returns a new empty "task" element
*/
public org.example.wsHT.api.XMLTTask addNewTask()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.XMLTTask target = null;
target = (org.example.wsHT.api.XMLTTask)get_store().add_element_user(TASK$0);
return target;
}
}
}