no.kith.xmlstds.CV 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.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.XmlSchemaType;
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 CV complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CV">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="V" type="{http://www.w3.org/2001/XMLSchema}token" />
* <attribute name="S" type="{http://www.kith.no/xmlstds}oid" />
* <attribute name="DN" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="OT" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CV")
public class CV {
@XmlAttribute(name = "V")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "token")
protected String v;
@XmlAttribute(name = "S")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String s;
@XmlAttribute(name = "DN")
protected String dn;
@XmlAttribute(name = "OT")
protected String ot;
protected transient CV.Modifier __cachedModifier__;
/**
* Gets the value of the v property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getV() {
return v;
}
/**
* Sets the value of the v property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setV(String value) {
this.v = value;
}
/**
* Gets the value of the s property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getS() {
return s;
}
/**
* Sets the value of the s property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setS(String value) {
this.s = value;
}
/**
* Gets the value of the dn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDN() {
return dn;
}
/**
* Sets the value of the dn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDN(String value) {
this.dn = value;
}
/**
* Gets the value of the ot property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOT() {
return ot;
}
/**
* Sets the value of the ot property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOT(String value) {
this.ot = 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 CV.Builder<_B> _other) {
_other.v = this.v;
_other.s = this.s;
_other.dn = this.dn;
_other.ot = this.ot;
}
public<_B >CV.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new CV.Builder<_B>(_parentBuilder, this, true);
}
public CV.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static CV.Builder builder() {
return new CV.Builder(null, null, false);
}
public static<_B >CV.Builder<_B> copyOf(final CV _other) {
final CV.Builder<_B> _newBuilder = new CV.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 CV.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree vPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("v"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(vPropertyTree!= null):((vPropertyTree == null)||(!vPropertyTree.isLeaf())))) {
_other.v = this.v;
}
final PropertyTree sPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("s"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sPropertyTree!= null):((sPropertyTree == null)||(!sPropertyTree.isLeaf())))) {
_other.s = this.s;
}
final PropertyTree dnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dnPropertyTree!= null):((dnPropertyTree == null)||(!dnPropertyTree.isLeaf())))) {
_other.dn = this.dn;
}
final PropertyTree otPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ot"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(otPropertyTree!= null):((otPropertyTree == null)||(!otPropertyTree.isLeaf())))) {
_other.ot = this.ot;
}
}
public<_B >CV.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new CV.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public CV.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >CV.Builder<_B> copyOf(final CV _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final CV.Builder<_B> _newBuilder = new CV.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static CV.Builder copyExcept(final CV _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static CV.Builder copyOnly(final CV _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public CV.Modifier modifier() {
if (null == this.__cachedModifier__) {
this.__cachedModifier__ = new CV.Modifier();
}
return ((CV.Modifier) this.__cachedModifier__);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final CV _storedValue;
private String v;
private String s;
private String dn;
private String ot;
public Builder(final _B _parentBuilder, final CV _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.v = _other.v;
this.s = _other.s;
this.dn = _other.dn;
this.ot = _other.ot;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final CV _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree vPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("v"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(vPropertyTree!= null):((vPropertyTree == null)||(!vPropertyTree.isLeaf())))) {
this.v = _other.v;
}
final PropertyTree sPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("s"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sPropertyTree!= null):((sPropertyTree == null)||(!sPropertyTree.isLeaf())))) {
this.s = _other.s;
}
final PropertyTree dnPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("dn"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(dnPropertyTree!= null):((dnPropertyTree == null)||(!dnPropertyTree.isLeaf())))) {
this.dn = _other.dn;
}
final PropertyTree otPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("ot"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(otPropertyTree!= null):((otPropertyTree == null)||(!otPropertyTree.isLeaf())))) {
this.ot = _other.ot;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends CV >_P init(final _P _product) {
_product.v = this.v;
_product.s = this.s;
_product.dn = this.dn;
_product.ot = this.ot;
return _product;
}
/**
* Sets the new value of "v" (any previous value will be replaced)
*
* @param v
* New value of the "v" property.
*/
public CV.Builder<_B> withV(final String v) {
this.v = v;
return this;
}
/**
* Sets the new value of "s" (any previous value will be replaced)
*
* @param s
* New value of the "s" property.
*/
public CV.Builder<_B> withS(final String s) {
this.s = s;
return this;
}
/**
* Sets the new value of "dn" (any previous value will be replaced)
*
* @param dn
* New value of the "dn" property.
*/
public CV.Builder<_B> withDN(final String dn) {
this.dn = dn;
return this;
}
/**
* Sets the new value of "ot" (any previous value will be replaced)
*
* @param ot
* New value of the "ot" property.
*/
public CV.Builder<_B> withOT(final String ot) {
this.ot = ot;
return this;
}
@Override
public CV build() {
if (_storedValue == null) {
return this.init(new CV());
} else {
return ((CV) _storedValue);
}
}
public CV.Builder<_B> copyOf(final CV _other) {
_other.copyTo(this);
return this;
}
public CV.Builder<_B> copyOf(final CV.Builder _other) {
return copyOf(_other.build());
}
}
public class Modifier {
public void setV(final String v) {
CV.this.setV(v);
}
public void setS(final String s) {
CV.this.setS(s);
}
public void setDN(final String dn) {
CV.this.setDN(dn);
}
public void setOT(final String ot) {
CV.this.setOT(ot);
}
}
public static class Select
extends CV.Selector
{
Select() {
super(null, null, null);
}
public static CV.Select _root() {
return new CV.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> v = null;
private com.kscs.util.jaxb.Selector> s = null;
private com.kscs.util.jaxb.Selector> dn = null;
private com.kscs.util.jaxb.Selector> ot = 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.v!= null) {
products.put("v", this.v.init());
}
if (this.s!= null) {
products.put("s", this.s.init());
}
if (this.dn!= null) {
products.put("dn", this.dn.init());
}
if (this.ot!= null) {
products.put("ot", this.ot.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> v() {
return ((this.v == null)?this.v = new com.kscs.util.jaxb.Selector>(this._root, this, "v"):this.v);
}
public com.kscs.util.jaxb.Selector> s() {
return ((this.s == null)?this.s = new com.kscs.util.jaxb.Selector>(this._root, this, "s"):this.s);
}
public com.kscs.util.jaxb.Selector> dn() {
return ((this.dn == null)?this.dn = new com.kscs.util.jaxb.Selector>(this._root, this, "dn"):this.dn);
}
public com.kscs.util.jaxb.Selector> ot() {
return ((this.ot == null)?this.ot = new com.kscs.util.jaxb.Selector>(this._root, this, "ot"):this.ot);
}
}
}