gov.grants.apply.system.grantsCommonElementsV10.impl.UserIDDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: UserID
* Namespace: http://apply.grants.gov/system/GrantsCommonElements-V1.0
* Java type: gov.grants.apply.system.grantsCommonElementsV10.UserIDDocument
*
* Automatically generated - do not modify.
*/
package gov.grants.apply.system.grantsCommonElementsV10.impl;
/**
* A document containing one UserID(@http://apply.grants.gov/system/GrantsCommonElements-V1.0) element.
*
* This is a complex type.
*/
public class UserIDDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.grantsCommonElementsV10.UserIDDocument
{
private static final long serialVersionUID = 1L;
public UserIDDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName USERID$0 =
new javax.xml.namespace.QName("http://apply.grants.gov/system/GrantsCommonElements-V1.0", "UserID");
/**
* Gets the "UserID" element
*/
public java.lang.String getUserID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "UserID" element
*/
public gov.grants.apply.system.grantsCommonTypesV10.UserIDType xgetUserID()
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.grantsCommonTypesV10.UserIDType target = null;
target = (gov.grants.apply.system.grantsCommonTypesV10.UserIDType)get_store().find_element_user(USERID$0, 0);
return target;
}
}
/**
* Sets the "UserID" element
*/
public void setUserID(java.lang.String userID)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USERID$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USERID$0);
}
target.setStringValue(userID);
}
}
/**
* Sets (as xml) the "UserID" element
*/
public void xsetUserID(gov.grants.apply.system.grantsCommonTypesV10.UserIDType userID)
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.grantsCommonTypesV10.UserIDType target = null;
target = (gov.grants.apply.system.grantsCommonTypesV10.UserIDType)get_store().find_element_user(USERID$0, 0);
if (target == null)
{
target = (gov.grants.apply.system.grantsCommonTypesV10.UserIDType)get_store().add_element_user(USERID$0);
}
target.set(userID);
}
}
}