no.kith.xmlstds.RTO Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.12.22 at 08:04:05 AM CET
//
package no.kith.xmlstds;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
* Java class for RTO complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RTO">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="NUM" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="DENOM" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RTO", propOrder = {
"num",
"denom"
})
public class RTO {
@XmlElement(name = "NUM")
protected BigInteger num;
@XmlElement(name = "DENOM")
protected BigInteger denom;
protected transient RTO.Modifier __cachedModifier__;
/**
* Gets the value of the num property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getNUM() {
return num;
}
/**
* Sets the value of the num property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setNUM(BigInteger value) {
this.num = value;
}
/**
* Gets the value of the denom property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getDENOM() {
return denom;
}
/**
* Sets the value of the denom property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setDENOM(BigInteger value) {
this.denom = value;
}
/**
* Copies all state of this object to a builder. This method is used by the {@link
* #copyOf} method and should not be called directly by client code.
*
* @param _other
* A builder instance to which the state of this object will be copied.
*/
public<_B >void copyTo(final RTO.Builder<_B> _other) {
_other.num = this.num;
_other.denom = this.denom;
}
public<_B >RTO.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new RTO.Builder<_B>(_parentBuilder, this, true);
}
public RTO.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static RTO.Builder builder() {
return new RTO.Builder(null, null, false);
}
public static<_B >RTO.Builder<_B> copyOf(final RTO _other) {
final RTO.Builder<_B> _newBuilder = new RTO.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
/**
* Copies all state of this object to a builder. This method is used by the {@link
* #copyOf} method and should not be called directly by client code.
*
* @param _other
* A builder instance to which the state of this object will be copied.
*/
public<_B >void copyTo(final RTO.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree numPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("num"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(numPropertyTree!= null):((numPropertyTree == null)||(!numPropertyTree.isLeaf())))) {
_other.num = this.num;
}
final PropertyTree denomPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("denom"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(denomPropertyTree!= null):((denomPropertyTree == null)||(!denomPropertyTree.isLeaf())))) {
_other.denom = this.denom;
}
}
public<_B >RTO.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new RTO.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public RTO.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >RTO.Builder<_B> copyOf(final RTO _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final RTO.Builder<_B> _newBuilder = new RTO.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static RTO.Builder copyExcept(final RTO _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static RTO.Builder copyOnly(final RTO _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public RTO.Modifier modifier() {
if (null == this.__cachedModifier__) {
this.__cachedModifier__ = new RTO.Modifier();
}
return ((RTO.Modifier) this.__cachedModifier__);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final RTO _storedValue;
private BigInteger num;
private BigInteger denom;
public Builder(final _B _parentBuilder, final RTO _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.num = _other.num;
this.denom = _other.denom;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final RTO _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree numPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("num"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(numPropertyTree!= null):((numPropertyTree == null)||(!numPropertyTree.isLeaf())))) {
this.num = _other.num;
}
final PropertyTree denomPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("denom"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(denomPropertyTree!= null):((denomPropertyTree == null)||(!denomPropertyTree.isLeaf())))) {
this.denom = _other.denom;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends RTO >_P init(final _P _product) {
_product.num = this.num;
_product.denom = this.denom;
return _product;
}
/**
* Sets the new value of "num" (any previous value will be replaced)
*
* @param num
* New value of the "num" property.
*/
public RTO.Builder<_B> withNUM(final BigInteger num) {
this.num = num;
return this;
}
/**
* Sets the new value of "denom" (any previous value will be replaced)
*
* @param denom
* New value of the "denom" property.
*/
public RTO.Builder<_B> withDENOM(final BigInteger denom) {
this.denom = denom;
return this;
}
@Override
public RTO build() {
if (_storedValue == null) {
return this.init(new RTO());
} else {
return ((RTO) _storedValue);
}
}
public RTO.Builder<_B> copyOf(final RTO _other) {
_other.copyTo(this);
return this;
}
public RTO.Builder<_B> copyOf(final RTO.Builder _other) {
return copyOf(_other.build());
}
}
public class Modifier {
public void setNUM(final BigInteger num) {
RTO.this.setNUM(num);
}
public void setDENOM(final BigInteger denom) {
RTO.this.setDENOM(denom);
}
}
public static class Select
extends RTO.Selector
{
Select() {
super(null, null, null);
}
public static RTO.Select _root() {
return new RTO.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> num = null;
private com.kscs.util.jaxb.Selector> denom = null;
public Selector(final TRoot root, final TParent parent, final String propertyName) {
super(root, parent, propertyName);
}
@Override
public Map buildChildren() {
final Map products = new HashMap();
products.putAll(super.buildChildren());
if (this.num!= null) {
products.put("num", this.num.init());
}
if (this.denom!= null) {
products.put("denom", this.denom.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> num() {
return ((this.num == null)?this.num = new com.kscs.util.jaxb.Selector>(this._root, this, "num"):this.num);
}
public com.kscs.util.jaxb.Selector> denom() {
return ((this.denom == null)?this.denom = new com.kscs.util.jaxb.Selector>(this._root, this, "denom"):this.denom);
}
}
}