no.kith.xmlstds.impl.EDImpl Maven / Gradle / Ivy
/*
* XML Type: ED
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.ED
*
* Automatically generated - do not modify.
*/
package no.kith.xmlstds.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;
/**
* An XML ED(@http://www.kith.no/xmlstds).
*
* This is a complex type.
*/
public class EDImpl extends no.kith.xmlstds.impl.BaseImpl implements no.kith.xmlstds.ED {
private static final long serialVersionUID = 1L;
public EDImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.kith.no/xmlstds", "MT"),
};
/**
* Gets the "MT" attribute
*/
@Override
public no.kith.xmlstds.MTAttribute.MT.Enum getMT() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return (target == null) ? null : (no.kith.xmlstds.MTAttribute.MT.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "MT" attribute
*/
@Override
public no.kith.xmlstds.MTAttribute.MT xgetMT() {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.MTAttribute.MT target = null;
target = (no.kith.xmlstds.MTAttribute.MT)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "MT" attribute
*/
@Override
public boolean isSetMT() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "MT" attribute
*/
@Override
public void setMT(no.kith.xmlstds.MTAttribute.MT.Enum mt) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.setEnumValue(mt);
}
}
/**
* Sets (as xml) the "MT" attribute
*/
@Override
public void xsetMT(no.kith.xmlstds.MTAttribute.MT mt) {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.MTAttribute.MT target = null;
target = (no.kith.xmlstds.MTAttribute.MT)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (no.kith.xmlstds.MTAttribute.MT)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(mt);
}
}
/**
* Unsets the "MT" attribute
*/
@Override
public void unsetMT() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
}