no.ks.fiks.arkiv.v1.arkivmelding.oppdater.PunktOppdatering 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.arkivmelding.oppdater;
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 punktOppdatering complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="punktOppdatering">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="punktID" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}punktID"/>
* <element name="koordinatsystem" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}koordinatsystem" minOccurs="0"/>
* <element name="x" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}x" minOccurs="0"/>
* <element name="y" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}y" minOccurs="0"/>
* <element name="z" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}z" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "punktOppdatering", propOrder = {
"punktID",
"koordinatsystem",
"x",
"y",
"z"
})
public class PunktOppdatering {
@XmlElement(required = true)
protected String punktID;
protected String koordinatsystem;
protected Double x;
protected Double y;
protected Double z;
/**
* Gets the value of the punktID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPunktID() {
return punktID;
}
/**
* Sets the value of the punktID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPunktID(String value) {
this.punktID = value;
}
/**
* Gets the value of the koordinatsystem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKoordinatsystem() {
return koordinatsystem;
}
/**
* Sets the value of the koordinatsystem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKoordinatsystem(String value) {
this.koordinatsystem = value;
}
/**
* Gets the value of the x property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getX() {
return x;
}
/**
* Sets the value of the x property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setX(Double value) {
this.x = value;
}
/**
* Gets the value of the y property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getY() {
return y;
}
/**
* Sets the value of the y property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setY(Double value) {
this.y = value;
}
/**
* Gets the value of the z property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getZ() {
return z;
}
/**
* Sets the value of the z property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setZ(Double value) {
this.z = 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 PunktOppdatering.Builder<_B> _other) {
_other.punktID = this.punktID;
_other.koordinatsystem = this.koordinatsystem;
_other.x = this.x;
_other.y = this.y;
_other.z = this.z;
}
public<_B >PunktOppdatering.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new PunktOppdatering.Builder<_B>(_parentBuilder, this, true);
}
public PunktOppdatering.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static PunktOppdatering.Builder builder() {
return new PunktOppdatering.Builder(null, null, false);
}
public static<_B >PunktOppdatering.Builder<_B> copyOf(final PunktOppdatering _other) {
final PunktOppdatering.Builder<_B> _newBuilder = new PunktOppdatering.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 PunktOppdatering.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree punktIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("punktID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(punktIDPropertyTree!= null):((punktIDPropertyTree == null)||(!punktIDPropertyTree.isLeaf())))) {
_other.punktID = this.punktID;
}
final PropertyTree koordinatsystemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("koordinatsystem"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(koordinatsystemPropertyTree!= null):((koordinatsystemPropertyTree == null)||(!koordinatsystemPropertyTree.isLeaf())))) {
_other.koordinatsystem = this.koordinatsystem;
}
final PropertyTree xPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("x"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(xPropertyTree!= null):((xPropertyTree == null)||(!xPropertyTree.isLeaf())))) {
_other.x = this.x;
}
final PropertyTree yPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("y"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(yPropertyTree!= null):((yPropertyTree == null)||(!yPropertyTree.isLeaf())))) {
_other.y = this.y;
}
final PropertyTree zPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("z"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(zPropertyTree!= null):((zPropertyTree == null)||(!zPropertyTree.isLeaf())))) {
_other.z = this.z;
}
}
public<_B >PunktOppdatering.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new PunktOppdatering.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public PunktOppdatering.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >PunktOppdatering.Builder<_B> copyOf(final PunktOppdatering _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PunktOppdatering.Builder<_B> _newBuilder = new PunktOppdatering.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static PunktOppdatering.Builder copyExcept(final PunktOppdatering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static PunktOppdatering.Builder copyOnly(final PunktOppdatering _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final PunktOppdatering _storedValue;
private String punktID;
private String koordinatsystem;
private Double x;
private Double y;
private Double z;
public Builder(final _B _parentBuilder, final PunktOppdatering _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.punktID = _other.punktID;
this.koordinatsystem = _other.koordinatsystem;
this.x = _other.x;
this.y = _other.y;
this.z = _other.z;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final PunktOppdatering _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree punktIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("punktID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(punktIDPropertyTree!= null):((punktIDPropertyTree == null)||(!punktIDPropertyTree.isLeaf())))) {
this.punktID = _other.punktID;
}
final PropertyTree koordinatsystemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("koordinatsystem"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(koordinatsystemPropertyTree!= null):((koordinatsystemPropertyTree == null)||(!koordinatsystemPropertyTree.isLeaf())))) {
this.koordinatsystem = _other.koordinatsystem;
}
final PropertyTree xPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("x"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(xPropertyTree!= null):((xPropertyTree == null)||(!xPropertyTree.isLeaf())))) {
this.x = _other.x;
}
final PropertyTree yPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("y"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(yPropertyTree!= null):((yPropertyTree == null)||(!yPropertyTree.isLeaf())))) {
this.y = _other.y;
}
final PropertyTree zPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("z"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(zPropertyTree!= null):((zPropertyTree == null)||(!zPropertyTree.isLeaf())))) {
this.z = _other.z;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends PunktOppdatering >_P init(final _P _product) {
_product.punktID = this.punktID;
_product.koordinatsystem = this.koordinatsystem;
_product.x = this.x;
_product.y = this.y;
_product.z = this.z;
return _product;
}
/**
* Sets the new value of "punktID" (any previous value will be replaced)
*
* @param punktID
* New value of the "punktID" property.
*/
public PunktOppdatering.Builder<_B> withPunktID(final String punktID) {
this.punktID = punktID;
return this;
}
/**
* Sets the new value of "koordinatsystem" (any previous value will be replaced)
*
* @param koordinatsystem
* New value of the "koordinatsystem" property.
*/
public PunktOppdatering.Builder<_B> withKoordinatsystem(final String koordinatsystem) {
this.koordinatsystem = koordinatsystem;
return this;
}
/**
* Sets the new value of "x" (any previous value will be replaced)
*
* @param x
* New value of the "x" property.
*/
public PunktOppdatering.Builder<_B> withX(final Double x) {
this.x = x;
return this;
}
/**
* Sets the new value of "y" (any previous value will be replaced)
*
* @param y
* New value of the "y" property.
*/
public PunktOppdatering.Builder<_B> withY(final Double y) {
this.y = y;
return this;
}
/**
* Sets the new value of "z" (any previous value will be replaced)
*
* @param z
* New value of the "z" property.
*/
public PunktOppdatering.Builder<_B> withZ(final Double z) {
this.z = z;
return this;
}
@Override
public PunktOppdatering build() {
if (_storedValue == null) {
return this.init(new PunktOppdatering());
} else {
return ((PunktOppdatering) _storedValue);
}
}
public PunktOppdatering.Builder<_B> copyOf(final PunktOppdatering _other) {
_other.copyTo(this);
return this;
}
public PunktOppdatering.Builder<_B> copyOf(final PunktOppdatering.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends PunktOppdatering.Selector
{
Select() {
super(null, null, null);
}
public static PunktOppdatering.Select _root() {
return new PunktOppdatering.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> punktID = null;
private com.kscs.util.jaxb.Selector> koordinatsystem = null;
private com.kscs.util.jaxb.Selector> x = null;
private com.kscs.util.jaxb.Selector> y = null;
private com.kscs.util.jaxb.Selector> z = 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.punktID!= null) {
products.put("punktID", this.punktID.init());
}
if (this.koordinatsystem!= null) {
products.put("koordinatsystem", this.koordinatsystem.init());
}
if (this.x!= null) {
products.put("x", this.x.init());
}
if (this.y!= null) {
products.put("y", this.y.init());
}
if (this.z!= null) {
products.put("z", this.z.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> punktID() {
return ((this.punktID == null)?this.punktID = new com.kscs.util.jaxb.Selector>(this._root, this, "punktID"):this.punktID);
}
public com.kscs.util.jaxb.Selector> koordinatsystem() {
return ((this.koordinatsystem == null)?this.koordinatsystem = new com.kscs.util.jaxb.Selector>(this._root, this, "koordinatsystem"):this.koordinatsystem);
}
public com.kscs.util.jaxb.Selector> x() {
return ((this.x == null)?this.x = new com.kscs.util.jaxb.Selector>(this._root, this, "x"):this.x);
}
public com.kscs.util.jaxb.Selector> y() {
return ((this.y == null)?this.y = new com.kscs.util.jaxb.Selector>(this._root, this, "y"):this.y);
}
public com.kscs.util.jaxb.Selector> z() {
return ((this.z == null)?this.z = new com.kscs.util.jaxb.Selector>(this._root, this, "z"):this.z);
}
}
}