gov.grants.apply.forms.sf424V10.impl.CurrencyCodeAttributeImpl Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: currencyCode
* Namespace: http://apply.grants.gov/forms/SF424-V1.0
* Java type: gov.grants.apply.forms.sf424V10.CurrencyCodeAttribute
*
* Automatically generated - do not modify.
*/
package gov.grants.apply.forms.sf424V10.impl;
/**
* A document containing one currencyCode(@http://apply.grants.gov/forms/SF424-V1.0) attribute.
*
* This is a complex type.
*/
public class CurrencyCodeAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424V10.CurrencyCodeAttribute
{
private static final long serialVersionUID = 1L;
public CurrencyCodeAttributeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CURRENCYCODE$0 =
new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424-V1.0", "currencyCode");
/**
* Gets the "currencyCode" attribute
*/
public gov.grants.apply.system.universalCodesV10.CurrencyCodeType.Enum getCurrencyCode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CURRENCYCODE$0);
if (target == null)
{
return null;
}
return (gov.grants.apply.system.universalCodesV10.CurrencyCodeType.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "currencyCode" attribute
*/
public gov.grants.apply.system.universalCodesV10.CurrencyCodeType xgetCurrencyCode()
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.universalCodesV10.CurrencyCodeType target = null;
target = (gov.grants.apply.system.universalCodesV10.CurrencyCodeType)get_store().find_attribute_user(CURRENCYCODE$0);
return target;
}
}
/**
* True if has "currencyCode" attribute
*/
public boolean isSetCurrencyCode()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(CURRENCYCODE$0) != null;
}
}
/**
* Sets the "currencyCode" attribute
*/
public void setCurrencyCode(gov.grants.apply.system.universalCodesV10.CurrencyCodeType.Enum currencyCode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CURRENCYCODE$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CURRENCYCODE$0);
}
target.setEnumValue(currencyCode);
}
}
/**
* Sets (as xml) the "currencyCode" attribute
*/
public void xsetCurrencyCode(gov.grants.apply.system.universalCodesV10.CurrencyCodeType currencyCode)
{
synchronized (monitor())
{
check_orphaned();
gov.grants.apply.system.universalCodesV10.CurrencyCodeType target = null;
target = (gov.grants.apply.system.universalCodesV10.CurrencyCodeType)get_store().find_attribute_user(CURRENCYCODE$0);
if (target == null)
{
target = (gov.grants.apply.system.universalCodesV10.CurrencyCodeType)get_store().add_attribute_user(CURRENCYCODE$0);
}
target.set(currencyCode);
}
}
/**
* Unsets the "currencyCode" attribute
*/
public void unsetCurrencyCode()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(CURRENCYCODE$0);
}
}
}