no.kith.xmlstds.impl.ICAttributeImpl Maven / Gradle / Ivy
/*
* An XML attribute type.
* Localname: IC
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.ICAttribute
*
* 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 IC(@http://www.kith.no/xmlstds) attribute.
*
* This is a complex type.
*/
public class ICAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.ICAttribute {
private static final long serialVersionUID = 1L;
public ICAttributeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.kith.no/xmlstds", "IC"),
};
/**
* Gets the "IC" attribute
*/
@Override
public byte[] getIC() {
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 : target.getByteArrayValue();
}
}
/**
* Gets (as xml) the "IC" attribute
*/
@Override
public no.kith.xmlstds.ICAttribute.IC xgetIC() {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.ICAttribute.IC target = null;
target = (no.kith.xmlstds.ICAttribute.IC)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "IC" attribute
*/
@Override
public boolean isSetIC() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "IC" attribute
*/
@Override
public void setIC(byte[] ic) {
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.setByteArrayValue(ic);
}
}
/**
* Sets (as xml) the "IC" attribute
*/
@Override
public void xsetIC(no.kith.xmlstds.ICAttribute.IC ic) {
synchronized (monitor()) {
check_orphaned();
no.kith.xmlstds.ICAttribute.IC target = null;
target = (no.kith.xmlstds.ICAttribute.IC)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (no.kith.xmlstds.ICAttribute.IC)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(ic);
}
}
/**
* Unsets the "IC" attribute
*/
@Override
public void unsetIC() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
/**
* An XML IC(@http://www.kith.no/xmlstds).
*
* This is an atomic type that is a restriction of no.kith.xmlstds.ICAttribute$IC.
*/
public static class ICImpl extends org.apache.xmlbeans.impl.values.JavaBase64HolderEx implements no.kith.xmlstds.ICAttribute.IC {
private static final long serialVersionUID = 1L;
public ICImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType, false);
}
protected ICImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
super(sType, b);
}
}
}