org.example.wsHT.api.xsd.impl.XMLFailDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: fail
* Namespace: http://www.example.org/WS-HT/api/xsd
* Java type: org.example.wsHT.api.xsd.XMLFailDocument
*
* Automatically generated - do not modify.
*/
package org.example.wsHT.api.xsd.impl;
/**
* A document containing one fail(@http://www.example.org/WS-HT/api/xsd) element.
*
* This is a complex type.
*/
public class XMLFailDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLFailDocument
{
private static final long serialVersionUID = 1L;
public XMLFailDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FAIL$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "fail");
/**
* Gets the "fail" element
*/
public org.example.wsHT.api.xsd.XMLFailDocument.Fail getFail()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLFailDocument.Fail target = null;
target = (org.example.wsHT.api.xsd.XMLFailDocument.Fail)get_store().find_element_user(FAIL$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "fail" element
*/
public void setFail(org.example.wsHT.api.xsd.XMLFailDocument.Fail fail)
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLFailDocument.Fail target = null;
target = (org.example.wsHT.api.xsd.XMLFailDocument.Fail)get_store().find_element_user(FAIL$0, 0);
if (target == null)
{
target = (org.example.wsHT.api.xsd.XMLFailDocument.Fail)get_store().add_element_user(FAIL$0);
}
target.set(fail);
}
}
/**
* Appends and returns a new empty "fail" element
*/
public org.example.wsHT.api.xsd.XMLFailDocument.Fail addNewFail()
{
synchronized (monitor())
{
check_orphaned();
org.example.wsHT.api.xsd.XMLFailDocument.Fail target = null;
target = (org.example.wsHT.api.xsd.XMLFailDocument.Fail)get_store().add_element_user(FAIL$0);
return target;
}
}
/**
* An XML fail(@http://www.example.org/WS-HT/api/xsd).
*
* This is a complex type.
*/
public static class FailImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLFailDocument.Fail
{
private static final long serialVersionUID = 1L;
public FailImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName IDENTIFIER$0 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "identifier");
private static final javax.xml.namespace.QName FAULTNAME$2 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "faultName");
private static final javax.xml.namespace.QName FAULTDATA$4 =
new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "faultData");
/**
* Gets the "identifier" element
*/
public java.lang.String getIdentifier()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "identifier" element
*/
public org.apache.xmlbeans.XmlAnyURI xgetIdentifier()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);
return target;
}
}
/**
* Sets the "identifier" element
*/
public void setIdentifier(java.lang.String identifier)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);
}
target.setStringValue(identifier);
}
}
/**
* Sets (as xml) the "identifier" element
*/
public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);
}
target.set(identifier);
}
}
/**
* Gets the "faultName" element
*/
public java.lang.String getFaultName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FAULTNAME$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "faultName" element
*/
public org.apache.xmlbeans.XmlNCName xgetFaultName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(FAULTNAME$2, 0);
return target;
}
}
/**
* True if has "faultName" element
*/
public boolean isSetFaultName()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FAULTNAME$2) != 0;
}
}
/**
* Sets the "faultName" element
*/
public void setFaultName(java.lang.String faultName)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FAULTNAME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FAULTNAME$2);
}
target.setStringValue(faultName);
}
}
/**
* Sets (as xml) the "faultName" element
*/
public void xsetFaultName(org.apache.xmlbeans.XmlNCName faultName)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(FAULTNAME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(FAULTNAME$2);
}
target.set(faultName);
}
}
/**
* Unsets the "faultName" element
*/
public void unsetFaultName()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FAULTNAME$2, 0);
}
}
/**
* Gets the "faultData" element
*/
public org.apache.xmlbeans.XmlObject getFaultData()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(FAULTDATA$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "faultData" element
*/
public boolean isSetFaultData()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FAULTDATA$4) != 0;
}
}
/**
* Sets the "faultData" element
*/
public void setFaultData(org.apache.xmlbeans.XmlObject faultData)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(FAULTDATA$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(FAULTDATA$4);
}
target.set(faultData);
}
}
/**
* Appends and returns a new empty "faultData" element
*/
public org.apache.xmlbeans.XmlObject addNewFaultData()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(FAULTDATA$4);
return target;
}
}
/**
* Unsets the "faultData" element
*/
public void unsetFaultData()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FAULTDATA$4, 0);
}
}
}
}