no.kith.xmlstds.impl.NULLAttributeImpl Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: NULL
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.NULLAttribute
*
* 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;
/**
* A document containing one NULL(@http://www.kith.no/xmlstds) attribute.
*
* This is a complex type.
*/
public class NULLAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.NULLAttribute {
private static final long serialVersionUID = 1L;
public NULLAttributeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.kith.no/xmlstds", "NULL"),
};
/**
* Gets the "NULL" attribute
*/
@Override
public no.kith.xmlstds.NULLAttribute.NULL.Enum getNULL() {
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.NULLAttribute.NULL.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "NULL" attribute
*/
@Override
public no.kith.xmlstds.NULLAttribute.NULL xgetNULL() {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.NULLAttribute.NULL target = null;
target = (no.kith.xmlstds.NULLAttribute.NULL)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "NULL" attribute
*/
@Override
public boolean isSetNULL() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "NULL" attribute
*/
@Override
public void setNULL(no.kith.xmlstds.NULLAttribute.NULL.Enum xnull) {
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(xnull);
}
}
/**
* Sets (as xml) the "NULL" attribute
*/
@Override
public void xsetNULL(no.kith.xmlstds.NULLAttribute.NULL xnull) {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.NULLAttribute.NULL target = null;
target = (no.kith.xmlstds.NULLAttribute.NULL)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (no.kith.xmlstds.NULLAttribute.NULL)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(xnull);
}
}
/**
* Unsets the "NULL" attribute
*/
@Override
public void unsetNULL() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
/**
* An XML NULL(@http://www.kith.no/xmlstds).
*
* This is an atomic type that is a restriction of no.kith.xmlstds.NULLAttribute$NULL.
*/
public static class NULLImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements no.kith.xmlstds.NULLAttribute.NULL {
private static final long serialVersionUID = 1L;
public NULLImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType, false);
}
protected NULLImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
super(sType, b);
}
}
}