gov.grants.apply.system.globalLibraryV10.impl.FormVersionAttributeImpl Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: FormVersion
* Namespace: http://apply.grants.gov/system/GlobalLibrary-V1.0
* Java type: gov.grants.apply.system.globalLibraryV10.FormVersionAttribute
*
* Automatically generated - do not modify.
*/
package gov.grants.apply.system.globalLibraryV10.impl;
/**
* A document containing one FormVersion(@http://apply.grants.gov/system/GlobalLibrary-V1.0) attribute.
*
* This is a complex type.
*/
public class FormVersionAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.system.globalLibraryV10.FormVersionAttribute
{
private static final long serialVersionUID = 1L;
public FormVersionAttributeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FORMVERSION$0 =
new javax.xml.namespace.QName("http://apply.grants.gov/system/GlobalLibrary-V1.0", "FormVersion");
/**
* Gets the "FormVersion" attribute
*/
public java.lang.String getFormVersion()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "FormVersion" attribute
*/
public gov.grants.apply.system.globalV10.StringMin1Max30Type xgetFormVersion()
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_attribute_user(FORMVERSION$0);
return target;
}
}
/**
* True if has "FormVersion" attribute
*/
public boolean isSetFormVersion()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(FORMVERSION$0) != null;
}
}
/**
* Sets the "FormVersion" attribute
*/
public void setFormVersion(java.lang.String formVersion)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FORMVERSION$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FORMVERSION$0);
}
target.setStringValue(formVersion);
}
}
/**
* Sets (as xml) the "FormVersion" attribute
*/
public void xsetFormVersion(gov.grants.apply.system.globalV10.StringMin1Max30Type formVersion)
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.globalV10.StringMin1Max30Type target = null;
target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().find_attribute_user(FORMVERSION$0);
if (target == null)
{
target = (gov.grants.apply.system.globalV10.StringMin1Max30Type)get_store().add_attribute_user(FORMVERSION$0);
}
target.set(formVersion);
}
}
/**
* Unsets the "FormVersion" attribute
*/
public void unsetFormVersion()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(FORMVERSION$0);
}
}
}