no.ks.fiks.arkiv.v1.arkivstruktur.Gradering Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.6
// 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.06.23 at 10:32:49 AM CEST
//
package no.ks.fiks.arkiv.v1.arkivstruktur;
import java.time.ZonedDateTime;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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;
import no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Grad;
import org.w3._2001.xmlschema.Adapter1;
/**
* Java class for gradering complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="gradering">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="grad" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}grad"/>
* <element name="graderingsdato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}graderingsdato"/>
* <element name="gradertAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}gradertAv"/>
* <element name="nedgraderingsdato" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}nedgraderingsdato" minOccurs="0"/>
* <element name="nedgradertAv" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}nedgradertAv" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "gradering", propOrder = {
"grad",
"graderingsdato",
"gradertAv",
"nedgraderingsdato",
"nedgradertAv"
})
public class Gradering {
@XmlElement(required = true)
protected Grad grad;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime graderingsdato;
@XmlElement(required = true)
protected String gradertAv;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected ZonedDateTime nedgraderingsdato;
protected String nedgradertAv;
/**
* Gets the value of the grad property.
*
* @return
* possible object is
* {@link Grad }
*
*/
public Grad getGrad() {
return grad;
}
/**
* Sets the value of the grad property.
*
* @param value
* allowed object is
* {@link Grad }
*
*/
public void setGrad(Grad value) {
this.grad = value;
}
/**
* Gets the value of the graderingsdato property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getGraderingsdato() {
return graderingsdato;
}
/**
* Sets the value of the graderingsdato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGraderingsdato(ZonedDateTime value) {
this.graderingsdato = value;
}
/**
* Gets the value of the gradertAv property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGradertAv() {
return gradertAv;
}
/**
* Sets the value of the gradertAv property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGradertAv(String value) {
this.gradertAv = value;
}
/**
* Gets the value of the nedgraderingsdato property.
*
* @return
* possible object is
* {@link String }
*
*/
public ZonedDateTime getNedgraderingsdato() {
return nedgraderingsdato;
}
/**
* Sets the value of the nedgraderingsdato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNedgraderingsdato(ZonedDateTime value) {
this.nedgraderingsdato = value;
}
/**
* Gets the value of the nedgradertAv property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNedgradertAv() {
return nedgradertAv;
}
/**
* Sets the value of the nedgradertAv property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNedgradertAv(String value) {
this.nedgradertAv = 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 Gradering.Builder<_B> _other) {
_other.grad = ((this.grad == null)?null:this.grad.newCopyBuilder(_other));
_other.graderingsdato = this.graderingsdato;
_other.gradertAv = this.gradertAv;
_other.nedgraderingsdato = this.nedgraderingsdato;
_other.nedgradertAv = this.nedgradertAv;
}
public<_B >Gradering.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Gradering.Builder<_B>(_parentBuilder, this, true);
}
public Gradering.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Gradering.Builder builder() {
return new Gradering.Builder(null, null, false);
}
public static<_B >Gradering.Builder<_B> copyOf(final Gradering _other) {
final Gradering.Builder<_B> _newBuilder = new Gradering.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 Gradering.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree gradPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("grad"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(gradPropertyTree!= null):((gradPropertyTree == null)||(!gradPropertyTree.isLeaf())))) {
_other.grad = ((this.grad == null)?null:this.grad.newCopyBuilder(_other, gradPropertyTree, _propertyTreeUse));
}
final PropertyTree graderingsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("graderingsdato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(graderingsdatoPropertyTree!= null):((graderingsdatoPropertyTree == null)||(!graderingsdatoPropertyTree.isLeaf())))) {
_other.graderingsdato = this.graderingsdato;
}
final PropertyTree gradertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gradertAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(gradertAvPropertyTree!= null):((gradertAvPropertyTree == null)||(!gradertAvPropertyTree.isLeaf())))) {
_other.gradertAv = this.gradertAv;
}
final PropertyTree nedgraderingsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nedgraderingsdato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nedgraderingsdatoPropertyTree!= null):((nedgraderingsdatoPropertyTree == null)||(!nedgraderingsdatoPropertyTree.isLeaf())))) {
_other.nedgraderingsdato = this.nedgraderingsdato;
}
final PropertyTree nedgradertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nedgradertAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nedgradertAvPropertyTree!= null):((nedgradertAvPropertyTree == null)||(!nedgradertAvPropertyTree.isLeaf())))) {
_other.nedgradertAv = this.nedgradertAv;
}
}
public<_B >Gradering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Gradering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Gradering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Gradering.Builder<_B> copyOf(final Gradering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Gradering.Builder<_B> _newBuilder = new Gradering.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Gradering.Builder copyExcept(final Gradering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Gradering.Builder copyOnly(final Gradering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Gradering _storedValue;
private Grad.Builder> grad;
private ZonedDateTime graderingsdato;
private String gradertAv;
private ZonedDateTime nedgraderingsdato;
private String nedgradertAv;
public Builder(final _B _parentBuilder, final Gradering _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.grad = ((_other.grad == null)?null:_other.grad.newCopyBuilder(this));
this.graderingsdato = _other.graderingsdato;
this.gradertAv = _other.gradertAv;
this.nedgraderingsdato = _other.nedgraderingsdato;
this.nedgradertAv = _other.nedgradertAv;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Gradering _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree gradPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("grad"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(gradPropertyTree!= null):((gradPropertyTree == null)||(!gradPropertyTree.isLeaf())))) {
this.grad = ((_other.grad == null)?null:_other.grad.newCopyBuilder(this, gradPropertyTree, _propertyTreeUse));
}
final PropertyTree graderingsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("graderingsdato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(graderingsdatoPropertyTree!= null):((graderingsdatoPropertyTree == null)||(!graderingsdatoPropertyTree.isLeaf())))) {
this.graderingsdato = _other.graderingsdato;
}
final PropertyTree gradertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("gradertAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(gradertAvPropertyTree!= null):((gradertAvPropertyTree == null)||(!gradertAvPropertyTree.isLeaf())))) {
this.gradertAv = _other.gradertAv;
}
final PropertyTree nedgraderingsdatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nedgraderingsdato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nedgraderingsdatoPropertyTree!= null):((nedgraderingsdatoPropertyTree == null)||(!nedgraderingsdatoPropertyTree.isLeaf())))) {
this.nedgraderingsdato = _other.nedgraderingsdato;
}
final PropertyTree nedgradertAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nedgradertAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nedgradertAvPropertyTree!= null):((nedgradertAvPropertyTree == null)||(!nedgradertAvPropertyTree.isLeaf())))) {
this.nedgradertAv = _other.nedgradertAv;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Gradering >_P init(final _P _product) {
_product.grad = ((this.grad == null)?null:this.grad.build());
_product.graderingsdato = this.graderingsdato;
_product.gradertAv = this.gradertAv;
_product.nedgraderingsdato = this.nedgraderingsdato;
_product.nedgradertAv = this.nedgradertAv;
return _product;
}
/**
* Sets the new value of "grad" (any previous value will be replaced)
*
* @param grad
* New value of the "grad" property.
*/
public Gradering.Builder<_B> withGrad(final Grad grad) {
this.grad = ((grad == null)?null:new Grad.Builder>(this, grad, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the "grad"
* property.
* Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Grad.Builder#end()}
* to return to the current builder.
*
* @return
* A new builder to build the value of the "grad" property.
* Use {@link no.ks.fiks.arkiv.v1.arkivstruktur.metadatakatalog.Grad.Builder#end()}
* to return to the current builder.
*/
public Grad.Builder extends Gradering.Builder<_B>> withGrad() {
if (this.grad!= null) {
return this.grad;
}
return this.grad = new Grad.Builder>(this, null, false);
}
/**
* Sets the new value of "graderingsdato" (any previous value will be replaced)
*
* @param graderingsdato
* New value of the "graderingsdato" property.
*/
public Gradering.Builder<_B> withGraderingsdato(final ZonedDateTime graderingsdato) {
this.graderingsdato = graderingsdato;
return this;
}
/**
* Sets the new value of "gradertAv" (any previous value will be replaced)
*
* @param gradertAv
* New value of the "gradertAv" property.
*/
public Gradering.Builder<_B> withGradertAv(final String gradertAv) {
this.gradertAv = gradertAv;
return this;
}
/**
* Sets the new value of "nedgraderingsdato" (any previous value will be replaced)
*
* @param nedgraderingsdato
* New value of the "nedgraderingsdato" property.
*/
public Gradering.Builder<_B> withNedgraderingsdato(final ZonedDateTime nedgraderingsdato) {
this.nedgraderingsdato = nedgraderingsdato;
return this;
}
/**
* Sets the new value of "nedgradertAv" (any previous value will be replaced)
*
* @param nedgradertAv
* New value of the "nedgradertAv" property.
*/
public Gradering.Builder<_B> withNedgradertAv(final String nedgradertAv) {
this.nedgradertAv = nedgradertAv;
return this;
}
@Override
public Gradering build() {
if (_storedValue == null) {
return this.init(new Gradering());
} else {
return ((Gradering) _storedValue);
}
}
public Gradering.Builder<_B> copyOf(final Gradering _other) {
_other.copyTo(this);
return this;
}
public Gradering.Builder<_B> copyOf(final Gradering.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Gradering.Selector
{
Select() {
super(null, null, null);
}
public static Gradering.Select _root() {
return new Gradering.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private Grad.Selector> grad = null;
private com.kscs.util.jaxb.Selector> graderingsdato = null;
private com.kscs.util.jaxb.Selector> gradertAv = null;
private com.kscs.util.jaxb.Selector> nedgraderingsdato = null;
private com.kscs.util.jaxb.Selector> nedgradertAv = 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.grad!= null) {
products.put("grad", this.grad.init());
}
if (this.graderingsdato!= null) {
products.put("graderingsdato", this.graderingsdato.init());
}
if (this.gradertAv!= null) {
products.put("gradertAv", this.gradertAv.init());
}
if (this.nedgraderingsdato!= null) {
products.put("nedgraderingsdato", this.nedgraderingsdato.init());
}
if (this.nedgradertAv!= null) {
products.put("nedgradertAv", this.nedgradertAv.init());
}
return products;
}
public Grad.Selector> grad() {
return ((this.grad == null)?this.grad = new Grad.Selector>(this._root, this, "grad"):this.grad);
}
public com.kscs.util.jaxb.Selector> graderingsdato() {
return ((this.graderingsdato == null)?this.graderingsdato = new com.kscs.util.jaxb.Selector>(this._root, this, "graderingsdato"):this.graderingsdato);
}
public com.kscs.util.jaxb.Selector> gradertAv() {
return ((this.gradertAv == null)?this.gradertAv = new com.kscs.util.jaxb.Selector>(this._root, this, "gradertAv"):this.gradertAv);
}
public com.kscs.util.jaxb.Selector> nedgraderingsdato() {
return ((this.nedgraderingsdato == null)?this.nedgraderingsdato = new com.kscs.util.jaxb.Selector>(this._root, this, "nedgraderingsdato"):this.nedgraderingsdato);
}
public com.kscs.util.jaxb.Selector> nedgradertAv() {
return ((this.nedgradertAv == null)?this.nedgradertAv = new com.kscs.util.jaxb.Selector>(this._root, this, "nedgradertAv"):this.nedgradertAv);
}
}
}