no.kith.xmlstds.TN 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:05:24 AM CET
//
package no.kith.xmlstds;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
* Java class for TN complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TN">
* <complexContent>
* <extension base="{http://www.kith.no/xmlstds}ED">
* <sequence>
* <element ref="{http://www.kith.no/xmlstds}REF" minOccurs="0"/>
* </sequence>
* <attribute ref="{http://www.kith.no/xmlstds}COMPN"/>
* <attribute ref="{http://www.kith.no/xmlstds}IC"/>
* <attribute ref="{http://www.kith.no/xmlstds}ICA"/>
* <attribute ref="{http://www.kith.no/xmlstds}NULL"/>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TN", propOrder = {
"ref"
})
public class TN
extends ED
{
@XmlElement(name = "REF", namespace = "http://www.kith.no/xmlstds")
protected URL ref;
@XmlAttribute(name = "COMPN", namespace = "http://www.kith.no/xmlstds")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String compn;
@XmlAttribute(name = "IC", namespace = "http://www.kith.no/xmlstds")
protected byte[] ic;
@XmlAttribute(name = "ICA", namespace = "http://www.kith.no/xmlstds")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String ica;
@XmlAttribute(name = "NULL", namespace = "http://www.kith.no/xmlstds")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String _null;
/**
* Gets the value of the ref property.
*
* @return
* possible object is
* {@link URL }
*
*/
public URL getREF() {
return ref;
}
/**
* Sets the value of the ref property.
*
* @param value
* allowed object is
* {@link URL }
*
*/
public void setREF(URL value) {
this.ref = value;
}
/**
* Gets the value of the compn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCOMPN() {
return compn;
}
/**
* Sets the value of the compn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCOMPN(String value) {
this.compn = value;
}
/**
* Gets the value of the ic property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getIC() {
return ic;
}
/**
* Sets the value of the ic property.
*
* @param value
* allowed object is
* byte[]
*/
public void setIC(byte[] value) {
this.ic = value;
}
/**
* Gets the value of the ica property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getICA() {
if (ica == null) {
return "SHA-1";
} else {
return ica;
}
}
/**
* Sets the value of the ica property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setICA(String value) {
this.ica = value;
}
/**
* Gets the value of the null property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNULL() {
return _null;
}
/**
* Sets the value of the null property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNULL(String value) {
this._null = 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 TN.Builder<_B> _other) {
super.copyTo(_other);
_other.ref = ((this.ref == null)?null:this.ref.newCopyBuilder(_other));
_other.compn = this.compn;
_other.ic = this.ic;
_other.ica = this.ica;
_other._null = this._null;
}
@Override
public<_B >TN.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new TN.Builder<_B>(_parentBuilder, this, true);
}
@Override
public TN.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static TN.Builder builder() {
return new TN.Builder(null, null, false);
}
public static<_B >TN.Builder<_B> copyOf(final Base _other) {
final TN.Builder<_B> _newBuilder = new TN.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
public static<_B >TN.Builder<_B> copyOf(final ED _other) {
final TN.Builder<_B> _newBuilder = new TN.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
public static<_B >TN.Builder<_B> copyOf(final TN _other) {
final TN.Builder<_B> _newBuilder = new TN.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 TN.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
super.copyTo(_other, _propertyTree, _propertyTreeUse);
final PropertyTree refPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ref"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(refPropertyTree!= null):((refPropertyTree == null)||(!refPropertyTree.isLeaf())))) {
_other.ref = ((this.ref == null)?null:this.ref.newCopyBuilder(_other, refPropertyTree, _propertyTreeUse));
}
final PropertyTree compnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("compn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(compnPropertyTree!= null):((compnPropertyTree == null)||(!compnPropertyTree.isLeaf())))) {
_other.compn = this.compn;
}
final PropertyTree icPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ic"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(icPropertyTree!= null):((icPropertyTree == null)||(!icPropertyTree.isLeaf())))) {
_other.ic = this.ic;
}
final PropertyTree icaPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ica"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(icaPropertyTree!= null):((icaPropertyTree == null)||(!icaPropertyTree.isLeaf())))) {
_other.ica = this.ica;
}
final PropertyTree _nullPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("_null"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(_nullPropertyTree!= null):((_nullPropertyTree == null)||(!_nullPropertyTree.isLeaf())))) {
_other._null = this._null;
}
}
@Override
public<_B >TN.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new TN.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
@Override
public TN.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >TN.Builder<_B> copyOf(final Base _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final TN.Builder<_B> _newBuilder = new TN.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static<_B >TN.Builder<_B> copyOf(final ED _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final TN.Builder<_B> _newBuilder = new TN.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static<_B >TN.Builder<_B> copyOf(final TN _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final TN.Builder<_B> _newBuilder = new TN.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static TN.Builder copyExcept(final Base _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static TN.Builder copyExcept(final ED _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static TN.Builder copyExcept(final TN _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static TN.Builder copyOnly(final Base _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static TN.Builder copyOnly(final ED _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static TN.Builder copyOnly(final TN _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public TN.Modifier modifier() {
if (null == this.__cachedModifier__) {
this.__cachedModifier__ = new TN.Modifier();
}
return ((TN.Modifier) this.__cachedModifier__);
}
public static class Builder<_B >
extends ED.Builder<_B>
implements Buildable
{
private URL.Builder> ref;
private String compn;
private byte[] ic;
private String ica;
private String _null;
public Builder(final _B _parentBuilder, final TN _other, final boolean _copy) {
super(_parentBuilder, _other, _copy);
if (_other!= null) {
this.ref = ((_other.ref == null)?null:_other.ref.newCopyBuilder(this));
this.compn = _other.compn;
this.ic = _other.ic;
this.ica = _other.ica;
this._null = _other._null;
}
}
public Builder(final _B _parentBuilder, final TN _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
super(_parentBuilder, _other, _copy, _propertyTree, _propertyTreeUse);
if (_other!= null) {
final PropertyTree refPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ref"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(refPropertyTree!= null):((refPropertyTree == null)||(!refPropertyTree.isLeaf())))) {
this.ref = ((_other.ref == null)?null:_other.ref.newCopyBuilder(this, refPropertyTree, _propertyTreeUse));
}
final PropertyTree compnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("compn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(compnPropertyTree!= null):((compnPropertyTree == null)||(!compnPropertyTree.isLeaf())))) {
this.compn = _other.compn;
}
final PropertyTree icPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ic"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(icPropertyTree!= null):((icPropertyTree == null)||(!icPropertyTree.isLeaf())))) {
this.ic = _other.ic;
}
final PropertyTree icaPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ica"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(icaPropertyTree!= null):((icaPropertyTree == null)||(!icaPropertyTree.isLeaf())))) {
this.ica = _other.ica;
}
final PropertyTree _nullPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("_null"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(_nullPropertyTree!= null):((_nullPropertyTree == null)||(!_nullPropertyTree.isLeaf())))) {
this._null = _other._null;
}
}
}
protected<_P extends TN >_P init(final _P _product) {
_product.ref = ((this.ref == null)?null:this.ref.build());
_product.compn = this.compn;
_product.ic = this.ic;
_product.ica = this.ica;
_product._null = this._null;
return super.init(_product);
}
/**
* Sets the new value of "ref" (any previous value will be replaced)
*
* @param ref
* New value of the "ref" property.
*/
public TN.Builder<_B> withREF(final URL ref) {
this.ref = ((ref == null)?null:new URL.Builder>(this, ref, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the "ref"
* property.
* Use {@link no.kith.xmlstds.URL.Builder#end()} to return to the current builder.
*
* @return
* A new builder to build the value of the "ref" property.
* Use {@link no.kith.xmlstds.URL.Builder#end()} to return to the current builder.
*/
public URL.Builder> withREF() {
if (this.ref!= null) {
return this.ref;
}
return this.ref = new URL.Builder>(this, null, false);
}
/**
* Sets the new value of "compn" (any previous value will be replaced)
*
* @param compn
* New value of the "compn" property.
*/
public TN.Builder<_B> withCOMPN(final String compn) {
this.compn = compn;
return this;
}
/**
* Sets the new value of "ic" (any previous value will be replaced)
*
* @param ic
* New value of the "ic" property.
*/
public TN.Builder<_B> withIC(final byte[] ic) {
this.ic = ic;
return this;
}
/**
* Sets the new value of "ica" (any previous value will be replaced)
*
* @param ica
* New value of the "ica" property.
*/
public TN.Builder<_B> withICA(final String ica) {
this.ica = ica;
return this;
}
/**
* Sets the new value of "_null" (any previous value will be replaced)
*
* @param _null
* New value of the "_null" property.
*/
public TN.Builder<_B> withNULL(final String _null) {
this._null = _null;
return this;
}
/**
* Sets the new value of "mt" (any previous value will be replaced)
*
* @param mt
* New value of the "mt" property.
*/
@Override
public TN.Builder<_B> withMT(final String mt) {
super.withMT(mt);
return this;
}
@Override
public TN build() {
if (_storedValue == null) {
return this.init(new TN());
} else {
return ((TN) _storedValue);
}
}
public TN.Builder<_B> copyOf(final TN _other) {
_other.copyTo(this);
return this;
}
public TN.Builder<_B> copyOf(final TN.Builder _other) {
return copyOf(_other.build());
}
}
public class Modifier
extends ED.Modifier
{
public void setREF(final URL ref) {
TN.this.setREF(ref);
}
public void setCOMPN(final String compn) {
TN.this.setCOMPN(compn);
}
public void setIC(final byte[] ic) {
TN.this.setIC(ic);
}
public void setICA(final String ica) {
TN.this.setICA(ica);
}
public void setNULL(final String _null) {
TN.this.setNULL(_null);
}
}
public static class Select
extends TN.Selector
{
Select() {
super(null, null, null);
}
public static TN.Select _root() {
return new TN.Select();
}
}
public static class Selector , TParent >
extends ED.Selector
{
private URL.Selector> ref = null;
private com.kscs.util.jaxb.Selector> compn = null;
private com.kscs.util.jaxb.Selector> ic = null;
private com.kscs.util.jaxb.Selector> ica = null;
private com.kscs.util.jaxb.Selector> _null = 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.ref!= null) {
products.put("ref", this.ref.init());
}
if (this.compn!= null) {
products.put("compn", this.compn.init());
}
if (this.ic!= null) {
products.put("ic", this.ic.init());
}
if (this.ica!= null) {
products.put("ica", this.ica.init());
}
if (this._null!= null) {
products.put("_null", this._null.init());
}
return products;
}
public URL.Selector> ref() {
return ((this.ref == null)?this.ref = new URL.Selector>(this._root, this, "ref"):this.ref);
}
public com.kscs.util.jaxb.Selector> compn() {
return ((this.compn == null)?this.compn = new com.kscs.util.jaxb.Selector>(this._root, this, "compn"):this.compn);
}
public com.kscs.util.jaxb.Selector> ic() {
return ((this.ic == null)?this.ic = new com.kscs.util.jaxb.Selector>(this._root, this, "ic"):this.ic);
}
public com.kscs.util.jaxb.Selector> ica() {
return ((this.ica == null)?this.ica = new com.kscs.util.jaxb.Selector>(this._root, this, "ica"):this.ica);
}
public com.kscs.util.jaxb.Selector> _null() {
return ((this._null == null)?this._null = new com.kscs.util.jaxb.Selector>(this._root, this, "_null"):this._null);
}
}
}