no.ks.fiks.arkiv.v1.innsyn.sok.Bbox 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.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.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 bbox complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="bbox">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="koordinatsystem" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/metadatakatalog/v1}koordinatsystem"/>
* <element name="nedreVenstre" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}bboxKoordinater"/>
* <element name="oevreHoeyre" type="{https://ks-no.github.io/standarder/fiks-protokoll/fiks-arkiv/sok/v1}bboxKoordinater"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "bbox", propOrder = {
"koordinatsystem",
"nedreVenstre",
"oevreHoeyre"
})
public class Bbox {
@XmlElement(required = true)
protected String koordinatsystem;
@XmlElement(required = true)
protected BboxKoordinater nedreVenstre;
@XmlElement(required = true)
protected BboxKoordinater oevreHoeyre;
/**
* 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 nedreVenstre property.
*
* @return
* possible object is
* {@link BboxKoordinater }
*
*/
public BboxKoordinater getNedreVenstre() {
return nedreVenstre;
}
/**
* Sets the value of the nedreVenstre property.
*
* @param value
* allowed object is
* {@link BboxKoordinater }
*
*/
public void setNedreVenstre(BboxKoordinater value) {
this.nedreVenstre = value;
}
/**
* Gets the value of the oevreHoeyre property.
*
* @return
* possible object is
* {@link BboxKoordinater }
*
*/
public BboxKoordinater getOevreHoeyre() {
return oevreHoeyre;
}
/**
* Sets the value of the oevreHoeyre property.
*
* @param value
* allowed object is
* {@link BboxKoordinater }
*
*/
public void setOevreHoeyre(BboxKoordinater value) {
this.oevreHoeyre = 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 Bbox.Builder<_B> _other) {
_other.koordinatsystem = this.koordinatsystem;
_other.nedreVenstre = ((this.nedreVenstre == null)?null:this.nedreVenstre.newCopyBuilder(_other));
_other.oevreHoeyre = ((this.oevreHoeyre == null)?null:this.oevreHoeyre.newCopyBuilder(_other));
}
public<_B >Bbox.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Bbox.Builder<_B>(_parentBuilder, this, true);
}
public Bbox.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Bbox.Builder builder() {
return new Bbox.Builder(null, null, false);
}
public static<_B >Bbox.Builder<_B> copyOf(final Bbox _other) {
final Bbox.Builder<_B> _newBuilder = new Bbox.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 Bbox.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
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 nedreVenstrePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nedreVenstre"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nedreVenstrePropertyTree!= null):((nedreVenstrePropertyTree == null)||(!nedreVenstrePropertyTree.isLeaf())))) {
_other.nedreVenstre = ((this.nedreVenstre == null)?null:this.nedreVenstre.newCopyBuilder(_other, nedreVenstrePropertyTree, _propertyTreeUse));
}
final PropertyTree oevreHoeyrePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("oevreHoeyre"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(oevreHoeyrePropertyTree!= null):((oevreHoeyrePropertyTree == null)||(!oevreHoeyrePropertyTree.isLeaf())))) {
_other.oevreHoeyre = ((this.oevreHoeyre == null)?null:this.oevreHoeyre.newCopyBuilder(_other, oevreHoeyrePropertyTree, _propertyTreeUse));
}
}
public<_B >Bbox.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Bbox.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Bbox.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Bbox.Builder<_B> copyOf(final Bbox _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Bbox.Builder<_B> _newBuilder = new Bbox.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Bbox.Builder copyExcept(final Bbox _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Bbox.Builder copyOnly(final Bbox _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Bbox _storedValue;
private String koordinatsystem;
private BboxKoordinater.Builder> nedreVenstre;
private BboxKoordinater.Builder> oevreHoeyre;
public Builder(final _B _parentBuilder, final Bbox _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.koordinatsystem = _other.koordinatsystem;
this.nedreVenstre = ((_other.nedreVenstre == null)?null:_other.nedreVenstre.newCopyBuilder(this));
this.oevreHoeyre = ((_other.oevreHoeyre == null)?null:_other.oevreHoeyre.newCopyBuilder(this));
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Bbox _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
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 nedreVenstrePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nedreVenstre"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nedreVenstrePropertyTree!= null):((nedreVenstrePropertyTree == null)||(!nedreVenstrePropertyTree.isLeaf())))) {
this.nedreVenstre = ((_other.nedreVenstre == null)?null:_other.nedreVenstre.newCopyBuilder(this, nedreVenstrePropertyTree, _propertyTreeUse));
}
final PropertyTree oevreHoeyrePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("oevreHoeyre"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(oevreHoeyrePropertyTree!= null):((oevreHoeyrePropertyTree == null)||(!oevreHoeyrePropertyTree.isLeaf())))) {
this.oevreHoeyre = ((_other.oevreHoeyre == null)?null:_other.oevreHoeyre.newCopyBuilder(this, oevreHoeyrePropertyTree, _propertyTreeUse));
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Bbox >_P init(final _P _product) {
_product.koordinatsystem = this.koordinatsystem;
_product.nedreVenstre = ((this.nedreVenstre == null)?null:this.nedreVenstre.build());
_product.oevreHoeyre = ((this.oevreHoeyre == null)?null:this.oevreHoeyre.build());
return _product;
}
/**
* Sets the new value of "koordinatsystem" (any previous value will be replaced)
*
* @param koordinatsystem
* New value of the "koordinatsystem" property.
*/
public Bbox.Builder<_B> withKoordinatsystem(final String koordinatsystem) {
this.koordinatsystem = koordinatsystem;
return this;
}
/**
* Sets the new value of "nedreVenstre" (any previous value will be replaced)
*
* @param nedreVenstre
* New value of the "nedreVenstre" property.
*/
public Bbox.Builder<_B> withNedreVenstre(final BboxKoordinater nedreVenstre) {
this.nedreVenstre = ((nedreVenstre == null)?null:new BboxKoordinater.Builder>(this, nedreVenstre, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "nedreVenstre" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.BboxKoordinater.Builder#end()} to
* return to the current builder.
*
* @return
* A new builder to build the value of the "nedreVenstre" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.BboxKoordinater.Builder#end()} to
* return to the current builder.
*/
public BboxKoordinater.Builder extends Bbox.Builder<_B>> withNedreVenstre() {
if (this.nedreVenstre!= null) {
return this.nedreVenstre;
}
return this.nedreVenstre = new BboxKoordinater.Builder>(this, null, false);
}
/**
* Sets the new value of "oevreHoeyre" (any previous value will be replaced)
*
* @param oevreHoeyre
* New value of the "oevreHoeyre" property.
*/
public Bbox.Builder<_B> withOevreHoeyre(final BboxKoordinater oevreHoeyre) {
this.oevreHoeyre = ((oevreHoeyre == null)?null:new BboxKoordinater.Builder>(this, oevreHoeyre, false));
return this;
}
/**
* Returns the existing builder or a new builder to build the value of the
* "oevreHoeyre" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.BboxKoordinater.Builder#end()} to
* return to the current builder.
*
* @return
* A new builder to build the value of the "oevreHoeyre" property.
* Use {@link no.ks.fiks.arkiv.v1.innsyn.sok.BboxKoordinater.Builder#end()} to
* return to the current builder.
*/
public BboxKoordinater.Builder extends Bbox.Builder<_B>> withOevreHoeyre() {
if (this.oevreHoeyre!= null) {
return this.oevreHoeyre;
}
return this.oevreHoeyre = new BboxKoordinater.Builder>(this, null, false);
}
@Override
public Bbox build() {
if (_storedValue == null) {
return this.init(new Bbox());
} else {
return ((Bbox) _storedValue);
}
}
public Bbox.Builder<_B> copyOf(final Bbox _other) {
_other.copyTo(this);
return this;
}
public Bbox.Builder<_B> copyOf(final Bbox.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Bbox.Selector
{
Select() {
super(null, null, null);
}
public static Bbox.Select _root() {
return new Bbox.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> koordinatsystem = null;
private BboxKoordinater.Selector> nedreVenstre = null;
private BboxKoordinater.Selector> oevreHoeyre = 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.koordinatsystem!= null) {
products.put("koordinatsystem", this.koordinatsystem.init());
}
if (this.nedreVenstre!= null) {
products.put("nedreVenstre", this.nedreVenstre.init());
}
if (this.oevreHoeyre!= null) {
products.put("oevreHoeyre", this.oevreHoeyre.init());
}
return products;
}
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 BboxKoordinater.Selector> nedreVenstre() {
return ((this.nedreVenstre == null)?this.nedreVenstre = new BboxKoordinater.Selector>(this._root, this, "nedreVenstre"):this.nedreVenstre);
}
public BboxKoordinater.Selector> oevreHoeyre() {
return ((this.oevreHoeyre == null)?this.oevreHoeyre = new BboxKoordinater.Selector>(this._root, this, "oevreHoeyre"):this.oevreHoeyre);
}
}
}