gov.grants.apply.forms.sf424V10.impl.StateCodeDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: StateCode
* Namespace: http://apply.grants.gov/forms/SF424-V1.0
* Java type: gov.grants.apply.forms.sf424V10.StateCodeDocument
*
* Automatically generated - do not modify.
*/
package gov.grants.apply.forms.sf424V10.impl;
/**
* A document containing one StateCode(@http://apply.grants.gov/forms/SF424-V1.0) element.
*
* This is a complex type.
*/
public class StateCodeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.StateCodeDocument
{
private static final long serialVersionUID = 1L;
public StateCodeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName STATECODE$0 =
new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "StateCode");
/**
* Gets the "StateCode" element
*/
public java.lang.String getStateCode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATECODE$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "StateCode" element
*/
public gov.grants.apply.system.globalV10.StringMin1Max2Type xgetStateCode()
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.globalV10.StringMin1Max2Type target = null;
target = (gov.grants.apply.system.globalV10.StringMin1Max2Type)get_store().find_element_user(STATECODE$0, 0);
return target;
}
}
/**
* Sets the "StateCode" element
*/
public void setStateCode(java.lang.String stateCode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATECODE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATECODE$0);
}
target.setStringValue(stateCode);
}
}
/**
* Sets (as xml) the "StateCode" element
*/
public void xsetStateCode(gov.grants.apply.system.globalV10.StringMin1Max2Type stateCode)
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.globalV10.StringMin1Max2Type target = null;
target = (gov.grants.apply.system.globalV10.StringMin1Max2Type)get_store().find_element_user(STATECODE$0, 0);
if (target == null)
{
target = (gov.grants.apply.system.globalV10.StringMin1Max2Type)get_store().add_element_user(STATECODE$0);
}
target.set(stateCode);
}
}
}