no.kith.xmlstds.impl.ICAAttributeImpl Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: ICA
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.ICAAttribute
*
* 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 ICA(@http://www.kith.no/xmlstds) attribute.
*
* This is a complex type.
*/
public class ICAAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.ICAAttribute {
private static final long serialVersionUID = 1L;
public ICAAttributeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.kith.no/xmlstds", "ICA"),
};
/**
* Gets the "ICA" attribute
*/
@Override
public no.kith.xmlstds.ICAAttribute.ICA.Enum getICA() {
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_default_attribute_value(PROPERTY_QNAME[0]);
}
return (target == null) ? null : (no.kith.xmlstds.ICAAttribute.ICA.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "ICA" attribute
*/
@Override
public no.kith.xmlstds.ICAAttribute.ICA xgetICA() {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.ICAAttribute.ICA target = null;
target = (no.kith.xmlstds.ICAAttribute.ICA)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (no.kith.xmlstds.ICAAttribute.ICA)get_default_attribute_value(PROPERTY_QNAME[0]);
}
return target;
}
}
/**
* True if has "ICA" attribute
*/
@Override
public boolean isSetICA() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "ICA" attribute
*/
@Override
public void setICA(no.kith.xmlstds.ICAAttribute.ICA.Enum ica) {
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(ica);
}
}
/**
* Sets (as xml) the "ICA" attribute
*/
@Override
public void xsetICA(no.kith.xmlstds.ICAAttribute.ICA ica) {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.ICAAttribute.ICA target = null;
target = (no.kith.xmlstds.ICAAttribute.ICA)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (no.kith.xmlstds.ICAAttribute.ICA)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(ica);
}
}
/**
* Unsets the "ICA" attribute
*/
@Override
public void unsetICA() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
/**
* An XML ICA(@http://www.kith.no/xmlstds).
*
* This is an atomic type that is a restriction of no.kith.xmlstds.ICAAttribute$ICA.
*/
public static class ICAImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements no.kith.xmlstds.ICAAttribute.ICA {
private static final long serialVersionUID = 1L;
public ICAImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType, false);
}
protected ICAImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
super(sType, b);
}
}
}