All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.ks.fiks.arkiv.v1.arkivmelding.opprett.PersonID Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
//
// 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.arkivmelding.opprett;

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 personID complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="personID">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="landkode" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/arkivmelding/opprett/v1}landkode"/>
 *         <element name="identifikator" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "personID", propOrder = { "landkode", "identifikator" }) public class PersonID { @XmlElement(required = true) protected String landkode; @XmlElement(required = true) protected String identifikator; /** * Gets the value of the landkode property. * * @return * possible object is * {@link String } * */ public String getLandkode() { return landkode; } /** * Sets the value of the landkode property. * * @param value * allowed object is * {@link String } * */ public void setLandkode(String value) { this.landkode = value; } /** * Gets the value of the identifikator property. * * @return * possible object is * {@link String } * */ public String getIdentifikator() { return identifikator; } /** * Sets the value of the identifikator property. * * @param value * allowed object is * {@link String } * */ public void setIdentifikator(String value) { this.identifikator = 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 PersonID.Builder<_B> _other) { _other.landkode = this.landkode; _other.identifikator = this.identifikator; } public<_B >PersonID.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new PersonID.Builder<_B>(_parentBuilder, this, true); } public PersonID.Builder newCopyBuilder() { return newCopyBuilder(null); } public static PersonID.Builder builder() { return new PersonID.Builder(null, null, false); } public static<_B >PersonID.Builder<_B> copyOf(final PersonID _other) { final PersonID.Builder<_B> _newBuilder = new PersonID.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 PersonID.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree landkodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("landkode")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(landkodePropertyTree!= null):((landkodePropertyTree == null)||(!landkodePropertyTree.isLeaf())))) { _other.landkode = this.landkode; } final PropertyTree identifikatorPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("identifikator")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(identifikatorPropertyTree!= null):((identifikatorPropertyTree == null)||(!identifikatorPropertyTree.isLeaf())))) { _other.identifikator = this.identifikator; } } public<_B >PersonID.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new PersonID.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public PersonID.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >PersonID.Builder<_B> copyOf(final PersonID _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PersonID.Builder<_B> _newBuilder = new PersonID.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static PersonID.Builder copyExcept(final PersonID _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static PersonID.Builder copyOnly(final PersonID _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final PersonID _storedValue; private String landkode; private String identifikator; public Builder(final _B _parentBuilder, final PersonID _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.landkode = _other.landkode; this.identifikator = _other.identifikator; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final PersonID _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree landkodePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("landkode")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(landkodePropertyTree!= null):((landkodePropertyTree == null)||(!landkodePropertyTree.isLeaf())))) { this.landkode = _other.landkode; } final PropertyTree identifikatorPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("identifikator")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(identifikatorPropertyTree!= null):((identifikatorPropertyTree == null)||(!identifikatorPropertyTree.isLeaf())))) { this.identifikator = _other.identifikator; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends PersonID >_P init(final _P _product) { _product.landkode = this.landkode; _product.identifikator = this.identifikator; return _product; } /** * Sets the new value of "landkode" (any previous value will be replaced) * * @param landkode * New value of the "landkode" property. */ public PersonID.Builder<_B> withLandkode(final String landkode) { this.landkode = landkode; return this; } /** * Sets the new value of "identifikator" (any previous value will be replaced) * * @param identifikator * New value of the "identifikator" property. */ public PersonID.Builder<_B> withIdentifikator(final String identifikator) { this.identifikator = identifikator; return this; } @Override public PersonID build() { if (_storedValue == null) { return this.init(new PersonID()); } else { return ((PersonID) _storedValue); } } public PersonID.Builder<_B> copyOf(final PersonID _other) { _other.copyTo(this); return this; } public PersonID.Builder<_B> copyOf(final PersonID.Builder _other) { return copyOf(_other.build()); } } public static class Select extends PersonID.Selector { Select() { super(null, null, null); } public static PersonID.Select _root() { return new PersonID.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> landkode = null; private com.kscs.util.jaxb.Selector> identifikator = 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.landkode!= null) { products.put("landkode", this.landkode.init()); } if (this.identifikator!= null) { products.put("identifikator", this.identifikator.init()); } return products; } public com.kscs.util.jaxb.Selector> landkode() { return ((this.landkode == null)?this.landkode = new com.kscs.util.jaxb.Selector>(this._root, this, "landkode"):this.landkode); } public com.kscs.util.jaxb.Selector> identifikator() { return ((this.identifikator == null)?this.identifikator = new com.kscs.util.jaxb.Selector>(this._root, this, "identifikator"):this.identifikator); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy