no.arkivverket.standarder.noark5.arkivmelding.Klasse 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: 2024.10.09 at 07:52:57 AM UTC
//
package no.arkivverket.standarder.noark5.arkivmelding;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
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.datatype.XMLGregorianCalendar;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
* Java class for klasse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="klasse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="systemID" type="{http://www.arkivverket.no/standarder/noark5/arkivmelding}GUID"/>
* <element name="klasseID" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}klasseID"/>
* <element name="tittel" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}tittel"/>
* <element name="beskrivelse" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}beskrivelse" minOccurs="0"/>
* <element name="noekkelord" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}noekkelord" maxOccurs="unbounded" minOccurs="0"/>
* <element name="opprettetDato" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}opprettetDato"/>
* <element name="opprettetAv" type="{http://www.arkivverket.no/standarder/noark5/metadatakatalog}opprettetAv"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "klasse", propOrder = {
"systemID",
"klasseID",
"tittel",
"beskrivelse",
"noekkelord",
"opprettetDato",
"opprettetAv"
})
public class Klasse {
@XmlElement(required = true)
protected String systemID;
@XmlElement(required = true)
protected String klasseID;
@XmlElement(required = true)
protected String tittel;
protected String beskrivelse;
protected List noekkelord;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar opprettetDato;
@XmlElement(required = true)
protected String opprettetAv;
/**
* Gets the value of the systemID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSystemID() {
return systemID;
}
/**
* Sets the value of the systemID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSystemID(String value) {
this.systemID = value;
}
/**
* Gets the value of the klasseID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKlasseID() {
return klasseID;
}
/**
* Sets the value of the klasseID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKlasseID(String value) {
this.klasseID = value;
}
/**
* Gets the value of the tittel property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTittel() {
return tittel;
}
/**
* Sets the value of the tittel property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTittel(String value) {
this.tittel = value;
}
/**
* Gets the value of the beskrivelse property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBeskrivelse() {
return beskrivelse;
}
/**
* Sets the value of the beskrivelse property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBeskrivelse(String value) {
this.beskrivelse = value;
}
/**
* Gets the value of the noekkelord property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the noekkelord property.
*
*
* For example, to add a new item, do as follows:
*
* getNoekkelord().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getNoekkelord() {
if (noekkelord == null) {
noekkelord = new ArrayList();
}
return this.noekkelord;
}
/**
* Gets the value of the opprettetDato property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getOpprettetDato() {
return opprettetDato;
}
/**
* Sets the value of the opprettetDato property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setOpprettetDato(XMLGregorianCalendar value) {
this.opprettetDato = value;
}
/**
* Gets the value of the opprettetAv property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOpprettetAv() {
return opprettetAv;
}
/**
* Sets the value of the opprettetAv property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOpprettetAv(String value) {
this.opprettetAv = 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 Klasse.Builder<_B> _other) {
_other.systemID = this.systemID;
_other.klasseID = this.klasseID;
_other.tittel = this.tittel;
_other.beskrivelse = this.beskrivelse;
if (this.noekkelord == null) {
_other.noekkelord = null;
} else {
_other.noekkelord = new ArrayList();
for (String _item: this.noekkelord) {
_other.noekkelord.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
_other.opprettetDato = ((this.opprettetDato == null)?null:((XMLGregorianCalendar) this.opprettetDato.clone()));
_other.opprettetAv = this.opprettetAv;
}
public<_B >Klasse.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Klasse.Builder<_B>(_parentBuilder, this, true);
}
public Klasse.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Klasse.Builder builder() {
return new Klasse.Builder(null, null, false);
}
public static<_B >Klasse.Builder<_B> copyOf(final Klasse _other) {
final Klasse.Builder<_B> _newBuilder = new Klasse.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 Klasse.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree systemIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("systemID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemIDPropertyTree!= null):((systemIDPropertyTree == null)||(!systemIDPropertyTree.isLeaf())))) {
_other.systemID = this.systemID;
}
final PropertyTree klasseIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klasseID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klasseIDPropertyTree!= null):((klasseIDPropertyTree == null)||(!klasseIDPropertyTree.isLeaf())))) {
_other.klasseID = this.klasseID;
}
final PropertyTree tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) {
_other.tittel = this.tittel;
}
final PropertyTree beskrivelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("beskrivelse"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(beskrivelsePropertyTree!= null):((beskrivelsePropertyTree == null)||(!beskrivelsePropertyTree.isLeaf())))) {
_other.beskrivelse = this.beskrivelse;
}
final PropertyTree noekkelordPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("noekkelord"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(noekkelordPropertyTree!= null):((noekkelordPropertyTree == null)||(!noekkelordPropertyTree.isLeaf())))) {
if (this.noekkelord == null) {
_other.noekkelord = null;
} else {
_other.noekkelord = new ArrayList();
for (String _item: this.noekkelord) {
_other.noekkelord.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) {
_other.opprettetDato = ((this.opprettetDato == null)?null:((XMLGregorianCalendar) this.opprettetDato.clone()));
}
final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) {
_other.opprettetAv = this.opprettetAv;
}
}
public<_B >Klasse.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Klasse.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Klasse.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Klasse.Builder<_B> copyOf(final Klasse _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Klasse.Builder<_B> _newBuilder = new Klasse.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Klasse.Builder copyExcept(final Klasse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Klasse.Builder copyOnly(final Klasse _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Klasse _storedValue;
private String systemID;
private String klasseID;
private String tittel;
private String beskrivelse;
private List noekkelord;
private XMLGregorianCalendar opprettetDato;
private String opprettetAv;
public Builder(final _B _parentBuilder, final Klasse _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.systemID = _other.systemID;
this.klasseID = _other.klasseID;
this.tittel = _other.tittel;
this.beskrivelse = _other.beskrivelse;
if (_other.noekkelord == null) {
this.noekkelord = null;
} else {
this.noekkelord = new ArrayList();
for (String _item: _other.noekkelord) {
this.noekkelord.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
this.opprettetDato = ((_other.opprettetDato == null)?null:((XMLGregorianCalendar) _other.opprettetDato.clone()));
this.opprettetAv = _other.opprettetAv;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Klasse _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree systemIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("systemID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemIDPropertyTree!= null):((systemIDPropertyTree == null)||(!systemIDPropertyTree.isLeaf())))) {
this.systemID = _other.systemID;
}
final PropertyTree klasseIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("klasseID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(klasseIDPropertyTree!= null):((klasseIDPropertyTree == null)||(!klasseIDPropertyTree.isLeaf())))) {
this.klasseID = _other.klasseID;
}
final PropertyTree tittelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("tittel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(tittelPropertyTree!= null):((tittelPropertyTree == null)||(!tittelPropertyTree.isLeaf())))) {
this.tittel = _other.tittel;
}
final PropertyTree beskrivelsePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("beskrivelse"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(beskrivelsePropertyTree!= null):((beskrivelsePropertyTree == null)||(!beskrivelsePropertyTree.isLeaf())))) {
this.beskrivelse = _other.beskrivelse;
}
final PropertyTree noekkelordPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("noekkelord"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(noekkelordPropertyTree!= null):((noekkelordPropertyTree == null)||(!noekkelordPropertyTree.isLeaf())))) {
if (_other.noekkelord == null) {
this.noekkelord = null;
} else {
this.noekkelord = new ArrayList();
for (String _item: _other.noekkelord) {
this.noekkelord.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree opprettetDatoPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetDato"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetDatoPropertyTree!= null):((opprettetDatoPropertyTree == null)||(!opprettetDatoPropertyTree.isLeaf())))) {
this.opprettetDato = ((_other.opprettetDato == null)?null:((XMLGregorianCalendar) _other.opprettetDato.clone()));
}
final PropertyTree opprettetAvPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("opprettetAv"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(opprettetAvPropertyTree!= null):((opprettetAvPropertyTree == null)||(!opprettetAvPropertyTree.isLeaf())))) {
this.opprettetAv = _other.opprettetAv;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Klasse >_P init(final _P _product) {
_product.systemID = this.systemID;
_product.klasseID = this.klasseID;
_product.tittel = this.tittel;
_product.beskrivelse = this.beskrivelse;
if (this.noekkelord!= null) {
final List noekkelord = new ArrayList(this.noekkelord.size());
for (Buildable _item: this.noekkelord) {
noekkelord.add(((String) _item.build()));
}
_product.noekkelord = noekkelord;
}
_product.opprettetDato = this.opprettetDato;
_product.opprettetAv = this.opprettetAv;
return _product;
}
/**
* Sets the new value of "systemID" (any previous value will be replaced)
*
* @param systemID
* New value of the "systemID" property.
*/
public Klasse.Builder<_B> withSystemID(final String systemID) {
this.systemID = systemID;
return this;
}
/**
* Sets the new value of "klasseID" (any previous value will be replaced)
*
* @param klasseID
* New value of the "klasseID" property.
*/
public Klasse.Builder<_B> withKlasseID(final String klasseID) {
this.klasseID = klasseID;
return this;
}
/**
* Sets the new value of "tittel" (any previous value will be replaced)
*
* @param tittel
* New value of the "tittel" property.
*/
public Klasse.Builder<_B> withTittel(final String tittel) {
this.tittel = tittel;
return this;
}
/**
* Sets the new value of "beskrivelse" (any previous value will be replaced)
*
* @param beskrivelse
* New value of the "beskrivelse" property.
*/
public Klasse.Builder<_B> withBeskrivelse(final String beskrivelse) {
this.beskrivelse = beskrivelse;
return this;
}
/**
* Adds the given items to the value of "noekkelord"
*
* @param noekkelord
* Items to add to the value of the "noekkelord" property
*/
public Klasse.Builder<_B> addNoekkelord(final Iterable extends String> noekkelord) {
if (noekkelord!= null) {
if (this.noekkelord == null) {
this.noekkelord = new ArrayList();
}
for (String _item: noekkelord) {
this.noekkelord.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "noekkelord" (any previous value will be replaced)
*
* @param noekkelord
* New value of the "noekkelord" property.
*/
public Klasse.Builder<_B> withNoekkelord(final Iterable extends String> noekkelord) {
if (this.noekkelord!= null) {
this.noekkelord.clear();
}
return addNoekkelord(noekkelord);
}
/**
* Adds the given items to the value of "noekkelord"
*
* @param noekkelord
* Items to add to the value of the "noekkelord" property
*/
public Klasse.Builder<_B> addNoekkelord(String... noekkelord) {
addNoekkelord(Arrays.asList(noekkelord));
return this;
}
/**
* Sets the new value of "noekkelord" (any previous value will be replaced)
*
* @param noekkelord
* New value of the "noekkelord" property.
*/
public Klasse.Builder<_B> withNoekkelord(String... noekkelord) {
withNoekkelord(Arrays.asList(noekkelord));
return this;
}
/**
* Sets the new value of "opprettetDato" (any previous value will be replaced)
*
* @param opprettetDato
* New value of the "opprettetDato" property.
*/
public Klasse.Builder<_B> withOpprettetDato(final XMLGregorianCalendar opprettetDato) {
this.opprettetDato = opprettetDato;
return this;
}
/**
* Sets the new value of "opprettetAv" (any previous value will be replaced)
*
* @param opprettetAv
* New value of the "opprettetAv" property.
*/
public Klasse.Builder<_B> withOpprettetAv(final String opprettetAv) {
this.opprettetAv = opprettetAv;
return this;
}
@Override
public Klasse build() {
if (_storedValue == null) {
return this.init(new Klasse());
} else {
return ((Klasse) _storedValue);
}
}
public Klasse.Builder<_B> copyOf(final Klasse _other) {
_other.copyTo(this);
return this;
}
public Klasse.Builder<_B> copyOf(final Klasse.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Klasse.Selector
{
Select() {
super(null, null, null);
}
public static Klasse.Select _root() {
return new Klasse.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> systemID = null;
private com.kscs.util.jaxb.Selector> klasseID = null;
private com.kscs.util.jaxb.Selector> tittel = null;
private com.kscs.util.jaxb.Selector> beskrivelse = null;
private com.kscs.util.jaxb.Selector> noekkelord = null;
private com.kscs.util.jaxb.Selector> opprettetDato = null;
private com.kscs.util.jaxb.Selector> opprettetAv = 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.systemID!= null) {
products.put("systemID", this.systemID.init());
}
if (this.klasseID!= null) {
products.put("klasseID", this.klasseID.init());
}
if (this.tittel!= null) {
products.put("tittel", this.tittel.init());
}
if (this.beskrivelse!= null) {
products.put("beskrivelse", this.beskrivelse.init());
}
if (this.noekkelord!= null) {
products.put("noekkelord", this.noekkelord.init());
}
if (this.opprettetDato!= null) {
products.put("opprettetDato", this.opprettetDato.init());
}
if (this.opprettetAv!= null) {
products.put("opprettetAv", this.opprettetAv.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> systemID() {
return ((this.systemID == null)?this.systemID = new com.kscs.util.jaxb.Selector>(this._root, this, "systemID"):this.systemID);
}
public com.kscs.util.jaxb.Selector> klasseID() {
return ((this.klasseID == null)?this.klasseID = new com.kscs.util.jaxb.Selector>(this._root, this, "klasseID"):this.klasseID);
}
public com.kscs.util.jaxb.Selector> tittel() {
return ((this.tittel == null)?this.tittel = new com.kscs.util.jaxb.Selector>(this._root, this, "tittel"):this.tittel);
}
public com.kscs.util.jaxb.Selector> beskrivelse() {
return ((this.beskrivelse == null)?this.beskrivelse = new com.kscs.util.jaxb.Selector>(this._root, this, "beskrivelse"):this.beskrivelse);
}
public com.kscs.util.jaxb.Selector> noekkelord() {
return ((this.noekkelord == null)?this.noekkelord = new com.kscs.util.jaxb.Selector>(this._root, this, "noekkelord"):this.noekkelord);
}
public com.kscs.util.jaxb.Selector> opprettetDato() {
return ((this.opprettetDato == null)?this.opprettetDato = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetDato"):this.opprettetDato);
}
public com.kscs.util.jaxb.Selector> opprettetAv() {
return ((this.opprettetAv == null)?this.opprettetAv = new com.kscs.util.jaxb.Selector>(this._root, this, "opprettetAv"):this.opprettetAv);
}
}
}