no.kith.xmlstds.impl.REALImpl Maven / Gradle / Ivy
/*
* XML Type: REAL
* Namespace: http://www.kith.no/xmlstds
* Java type: no.kith.xmlstds.REAL
*
* 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 REAL(@http://www.kith.no/xmlstds).
*
* This is a complex type.
*/
public class REALImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.REAL {
private static final long serialVersionUID = 1L;
public REALImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("", "V"),
};
/**
* Gets the "V" attribute
*/
@Override
public double getV() {
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) ? 0.0 : target.getDoubleValue();
}
}
/**
* Gets (as xml) the "V" attribute
*/
@Override
public org.apache.xmlbeans.XmlDouble xgetV() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlDouble target = null;
target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "V" attribute
*/
@Override
public boolean isSetV() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "V" attribute
*/
@Override
public void setV(double v) {
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.setDoubleValue(v);
}
}
/**
* Sets (as xml) the "V" attribute
*/
@Override
public void xsetV(org.apache.xmlbeans.XmlDouble v) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlDouble target = null;
target = (org.apache.xmlbeans.XmlDouble)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.XmlDouble)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(v);
}
}
/**
* Unsets the "V" attribute
*/
@Override
public void unsetV() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
}