no.ks.fiks.arkiv.v1.innsyn.sok.EksternId 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 eksternId complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="eksternId">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="system" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "eksternId", propOrder = {
"system",
"id"
})
public class EksternId {
@XmlElement(required = true)
protected String system;
@XmlElement(required = true)
protected String id;
/**
* Gets the value of the system property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSystem() {
return system;
}
/**
* Sets the value of the system property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSystem(String value) {
this.system = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = 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 EksternId.Builder<_B> _other) {
_other.system = this.system;
_other.id = this.id;
}
public<_B >EksternId.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new EksternId.Builder<_B>(_parentBuilder, this, true);
}
public EksternId.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static EksternId.Builder builder() {
return new EksternId.Builder(null, null, false);
}
public static<_B >EksternId.Builder<_B> copyOf(final EksternId _other) {
final EksternId.Builder<_B> _newBuilder = new EksternId.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 EksternId.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) {
_other.system = this.system;
}
final PropertyTree idPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("id"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(idPropertyTree!= null):((idPropertyTree == null)||(!idPropertyTree.isLeaf())))) {
_other.id = this.id;
}
}
public<_B >EksternId.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new EksternId.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public EksternId.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >EksternId.Builder<_B> copyOf(final EksternId _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final EksternId.Builder<_B> _newBuilder = new EksternId.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static EksternId.Builder copyExcept(final EksternId _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static EksternId.Builder copyOnly(final EksternId _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final EksternId _storedValue;
private String system;
private String id;
public Builder(final _B _parentBuilder, final EksternId _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.system = _other.system;
this.id = _other.id;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final EksternId _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree systemPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("system"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(systemPropertyTree!= null):((systemPropertyTree == null)||(!systemPropertyTree.isLeaf())))) {
this.system = _other.system;
}
final PropertyTree idPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("id"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(idPropertyTree!= null):((idPropertyTree == null)||(!idPropertyTree.isLeaf())))) {
this.id = _other.id;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends EksternId >_P init(final _P _product) {
_product.system = this.system;
_product.id = this.id;
return _product;
}
/**
* Sets the new value of "system" (any previous value will be replaced)
*
* @param system
* New value of the "system" property.
*/
public EksternId.Builder<_B> withSystem(final String system) {
this.system = system;
return this;
}
/**
* Sets the new value of "id" (any previous value will be replaced)
*
* @param id
* New value of the "id" property.
*/
public EksternId.Builder<_B> withId(final String id) {
this.id = id;
return this;
}
@Override
public EksternId build() {
if (_storedValue == null) {
return this.init(new EksternId());
} else {
return ((EksternId) _storedValue);
}
}
public EksternId.Builder<_B> copyOf(final EksternId _other) {
_other.copyTo(this);
return this;
}
public EksternId.Builder<_B> copyOf(final EksternId.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends EksternId.Selector
{
Select() {
super(null, null, null);
}
public static EksternId.Select _root() {
return new EksternId.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> system = null;
private com.kscs.util.jaxb.Selector> id = 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.system!= null) {
products.put("system", this.system.init());
}
if (this.id!= null) {
products.put("id", this.id.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> system() {
return ((this.system == null)?this.system = new com.kscs.util.jaxb.Selector>(this._root, this, "system"):this.system);
}
public com.kscs.util.jaxb.Selector> id() {
return ((this.id == null)?this.id = new com.kscs.util.jaxb.Selector>(this._root, this, "id"):this.id);
}
}
}