org.isotc211.x2005.gmi.impl.MIBandDefinitionPropertyTypeImpl Maven / Gradle / Ivy
/*
* XML Type: MI_BandDefinition_PropertyType
* Namespace: http://www.isotc211.org/2005/gmi
* Java type: org.isotc211.x2005.gmi.MIBandDefinitionPropertyType
*
* Automatically generated - do not modify.
*/
package org.isotc211.x2005.gmi.impl;
/**
* An XML MI_BandDefinition_PropertyType(@http://www.isotc211.org/2005/gmi).
*
* This is a complex type.
*/
public class MIBandDefinitionPropertyTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.isotc211.x2005.gmi.MIBandDefinitionPropertyType
{
private static final long serialVersionUID = 1L;
public MIBandDefinitionPropertyTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MIBANDDEFINITION$0 =
new javax.xml.namespace.QName("http://www.isotc211.org/2005/gmi", "MI_BandDefinition");
private static final javax.xml.namespace.QName NILREASON$2 =
new javax.xml.namespace.QName("http://www.isotc211.org/2005/gco", "nilReason");
/**
* Gets the "MI_BandDefinition" element
*/
public org.isotc211.x2005.gco.CodeListValueType getMIBandDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gco.CodeListValueType target = null;
target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MIBANDDEFINITION$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "MI_BandDefinition" element
*/
public boolean isSetMIBandDefinition()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MIBANDDEFINITION$0) != 0;
}
}
/**
* Sets the "MI_BandDefinition" element
*/
public void setMIBandDefinition(org.isotc211.x2005.gco.CodeListValueType miBandDefinition)
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gco.CodeListValueType target = null;
target = (org.isotc211.x2005.gco.CodeListValueType)get_store().find_element_user(MIBANDDEFINITION$0, 0);
if (target == null)
{
target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MIBANDDEFINITION$0);
}
target.set(miBandDefinition);
}
}
/**
* Appends and returns a new empty "MI_BandDefinition" element
*/
public org.isotc211.x2005.gco.CodeListValueType addNewMIBandDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.isotc211.x2005.gco.CodeListValueType target = null;
target = (org.isotc211.x2005.gco.CodeListValueType)get_store().add_element_user(MIBANDDEFINITION$0);
return target;
}
}
/**
* Unsets the "MI_BandDefinition" element
*/
public void unsetMIBandDefinition()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MIBANDDEFINITION$0, 0);
}
}
/**
* Gets the "nilReason" attribute
*/
public java.lang.Object getNilReason()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NILREASON$2);
if (target == null)
{
return null;
}
return target.getObjectValue();
}
}
/**
* Gets (as xml) the "nilReason" attribute
*/
public net.opengis.gml.x32.NilReasonType xgetNilReason()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.gml.x32.NilReasonType target = null;
target = (net.opengis.gml.x32.NilReasonType)get_store().find_attribute_user(NILREASON$2);
return target;
}
}
/**
* True if has "nilReason" attribute
*/
public boolean isSetNilReason()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(NILREASON$2) != null;
}
}
/**
* Sets the "nilReason" attribute
*/
public void setNilReason(java.lang.Object nilReason)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NILREASON$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NILREASON$2);
}
target.setObjectValue(nilReason);
}
}
/**
* Sets (as xml) the "nilReason" attribute
*/
public void xsetNilReason(net.opengis.gml.x32.NilReasonType nilReason)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.gml.x32.NilReasonType target = null;
target = (net.opengis.gml.x32.NilReasonType)get_store().find_attribute_user(NILREASON$2);
if (target == null)
{
target = (net.opengis.gml.x32.NilReasonType)get_store().add_attribute_user(NILREASON$2);
}
target.set(nilReason);
}
}
/**
* Unsets the "nilReason" attribute
*/
public void unsetNilReason()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(NILREASON$2);
}
}
}