gov.grants.apply.system.agencyUpdateApplicationInfoV10.impl.AssignAgencyTrackingNumberResultDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: AssignAgencyTrackingNumberResult
* Namespace: http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0
* Java type: gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument
*
* Automatically generated - do not modify.
*/
package gov.grants.apply.system.agencyUpdateApplicationInfoV10.impl;
/**
* A document containing one AssignAgencyTrackingNumberResult(@http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0) element.
*
* This is a complex type.
*/
public class AssignAgencyTrackingNumberResultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument
{
private static final long serialVersionUID = 1L;
public AssignAgencyTrackingNumberResultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ASSIGNAGENCYTRACKINGNUMBERRESULT$0 =
new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0", "AssignAgencyTrackingNumberResult");
/**
* Gets the "AssignAgencyTrackingNumberResult" element
*/
public gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult getAssignAgencyTrackingNumberResult()
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult target = null;
target = (gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult)get_store().find_element_user(ASSIGNAGENCYTRACKINGNUMBERRESULT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "AssignAgencyTrackingNumberResult" element
*/
public void setAssignAgencyTrackingNumberResult(gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult assignAgencyTrackingNumberResult)
{
generatedSetterHelperImpl(assignAgencyTrackingNumberResult, ASSIGNAGENCYTRACKINGNUMBERRESULT$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "AssignAgencyTrackingNumberResult" element
*/
public gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult addNewAssignAgencyTrackingNumberResult()
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult target = null;
target = (gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult)get_store().add_element_user(ASSIGNAGENCYTRACKINGNUMBERRESULT$0);
return target;
}
}
/**
* An XML AssignAgencyTrackingNumberResult(@http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0).
*
* This is a complex type.
*/
public static class AssignAgencyTrackingNumberResultImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.agencyUpdateApplicationInfoV10.AssignAgencyTrackingNumberResultDocument.AssignAgencyTrackingNumberResult
{
private static final long serialVersionUID = 1L;
public AssignAgencyTrackingNumberResultImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SUCCESS$0 =
new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0", "Success");
private static final javax.xml.namespace.QName ERRORMESSAGE$2 =
new javax.xml.namespace.QName("http://apply.grants.gov/system/AgencyUpdateApplicationInfo-V1.0", "ErrorMessage");
/**
* Gets the "Success" element
*/
public boolean getSuccess()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUCCESS$0, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "Success" element
*/
public org.apache.xmlbeans.XmlBoolean xgetSuccess()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(SUCCESS$0, 0);
return target;
}
}
/**
* Sets the "Success" element
*/
public void setSuccess(boolean success)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SUCCESS$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SUCCESS$0);
}
target.setBooleanValue(success);
}
}
/**
* Sets (as xml) the "Success" element
*/
public void xsetSuccess(org.apache.xmlbeans.XmlBoolean success)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(SUCCESS$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(SUCCESS$0);
}
target.set(success);
}
}
/**
* Gets the "ErrorMessage" element
*/
public java.lang.String getErrorMessage()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ERRORMESSAGE$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "ErrorMessage" element
*/
public org.apache.xmlbeans.XmlString xgetErrorMessage()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ERRORMESSAGE$2, 0);
return target;
}
}
/**
* True if has "ErrorMessage" element
*/
public boolean isSetErrorMessage()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ERRORMESSAGE$2) != 0;
}
}
/**
* Sets the "ErrorMessage" element
*/
public void setErrorMessage(java.lang.String errorMessage)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ERRORMESSAGE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ERRORMESSAGE$2);
}
target.setStringValue(errorMessage);
}
}
/**
* Sets (as xml) the "ErrorMessage" element
*/
public void xsetErrorMessage(org.apache.xmlbeans.XmlString errorMessage)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ERRORMESSAGE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ERRORMESSAGE$2);
}
target.set(errorMessage);
}
}
/**
* Unsets the "ErrorMessage" element
*/
public void unsetErrorMessage()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ERRORMESSAGE$2, 0);
}
}
}
}