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

no.ks.fiks.arkiv.v1.innsyn.sok.BboxKoordinater 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.innsyn.sok;

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.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;


/**
 * 

Java class for bboxKoordinater complex type. * *

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

 * <complexType name="bboxKoordinater">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="x" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}x"/>
 *         <element name="y" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}y"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "bboxKoordinater", propOrder = { "x", "y" }) public class BboxKoordinater { protected double x; protected double y; /** * Gets the value of the x property. * */ public double getX() { return x; } /** * Sets the value of the x property. * */ public void setX(double value) { this.x = value; } /** * Gets the value of the y property. * */ public double getY() { return y; } /** * Sets the value of the y property. * */ public void setY(double value) { this.y = 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 BboxKoordinater.Builder<_B> _other) { _other.x = this.x; _other.y = this.y; } public<_B >BboxKoordinater.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new BboxKoordinater.Builder<_B>(_parentBuilder, this, true); } public BboxKoordinater.Builder newCopyBuilder() { return newCopyBuilder(null); } public static BboxKoordinater.Builder builder() { return new BboxKoordinater.Builder(null, null, false); } public static<_B >BboxKoordinater.Builder<_B> copyOf(final BboxKoordinater _other) { final BboxKoordinater.Builder<_B> _newBuilder = new BboxKoordinater.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 BboxKoordinater.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { 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; } } public<_B >BboxKoordinater.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new BboxKoordinater.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public BboxKoordinater.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >BboxKoordinater.Builder<_B> copyOf(final BboxKoordinater _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final BboxKoordinater.Builder<_B> _newBuilder = new BboxKoordinater.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static BboxKoordinater.Builder copyExcept(final BboxKoordinater _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static BboxKoordinater.Builder copyOnly(final BboxKoordinater _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final BboxKoordinater _storedValue; private double x; private double y; public Builder(final _B _parentBuilder, final BboxKoordinater _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.x = _other.x; this.y = _other.y; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final BboxKoordinater _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; 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; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends BboxKoordinater >_P init(final _P _product) { _product.x = this.x; _product.y = this.y; return _product; } /** * Sets the new value of "x" (any previous value will be replaced) * * @param x * New value of the "x" property. */ public BboxKoordinater.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 BboxKoordinater.Builder<_B> withY(final double y) { this.y = y; return this; } @Override public BboxKoordinater build() { if (_storedValue == null) { return this.init(new BboxKoordinater()); } else { return ((BboxKoordinater) _storedValue); } } public BboxKoordinater.Builder<_B> copyOf(final BboxKoordinater _other) { _other.copyTo(this); return this; } public BboxKoordinater.Builder<_B> copyOf(final BboxKoordinater.Builder _other) { return copyOf(_other.build()); } } public static class Select extends BboxKoordinater.Selector { Select() { super(null, null, null); } public static BboxKoordinater.Select _root() { return new BboxKoordinater.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { 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()); return products; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy