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

no.ks.fiks.arkiv.v1.innsyn.sok.Datevalues 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.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import org.w3._2001.xmlschema.Adapter1;


/**
 * 

Java class for datevalues complex type. * *

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

 * <complexType name="datevalues">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence maxOccurs="unbounded" minOccurs="0">
 *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "datevalues", propOrder = { "values" }) public class Datevalues { @XmlElement(name = "value", type = String.class) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "dateTime") protected List values; /** * Gets the value of the values property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the values property. * *

* For example, to add a new item, do as follows: *

     *    getValues().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getValues() { if (values == null) { values = new ArrayList(); } return this.values; } /** * 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 Datevalues.Builder<_B> _other) { if (this.values == null) { _other.values = null; } else { _other.values = new ArrayList(); for (ZonedDateTime _item: this.values) { _other.values.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } public<_B >Datevalues.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Datevalues.Builder<_B>(_parentBuilder, this, true); } public Datevalues.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Datevalues.Builder builder() { return new Datevalues.Builder(null, null, false); } public static<_B >Datevalues.Builder<_B> copyOf(final Datevalues _other) { final Datevalues.Builder<_B> _newBuilder = new Datevalues.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 Datevalues.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree valuesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("values")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(valuesPropertyTree!= null):((valuesPropertyTree == null)||(!valuesPropertyTree.isLeaf())))) { if (this.values == null) { _other.values = null; } else { _other.values = new ArrayList(); for (ZonedDateTime _item: this.values) { _other.values.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } public<_B >Datevalues.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Datevalues.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Datevalues.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Datevalues.Builder<_B> copyOf(final Datevalues _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Datevalues.Builder<_B> _newBuilder = new Datevalues.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Datevalues.Builder copyExcept(final Datevalues _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Datevalues.Builder copyOnly(final Datevalues _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Datevalues _storedValue; private List values; public Builder(final _B _parentBuilder, final Datevalues _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.values == null) { this.values = null; } else { this.values = new ArrayList(); for (ZonedDateTime _item: _other.values) { this.values.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Datevalues _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree valuesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("values")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(valuesPropertyTree!= null):((valuesPropertyTree == null)||(!valuesPropertyTree.isLeaf())))) { if (_other.values == null) { this.values = null; } else { this.values = new ArrayList(); for (ZonedDateTime _item: _other.values) { this.values.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Datevalues >_P init(final _P _product) { if (this.values!= null) { final List values = new ArrayList(this.values.size()); for (Buildable _item: this.values) { values.add(((ZonedDateTime) _item.build())); } _product.values = values; } return _product; } /** * Adds the given items to the value of "values" * * @param values * Items to add to the value of the "values" property */ public Datevalues.Builder<_B> addValues(final Iterable values) { if (values!= null) { if (this.values == null) { this.values = new ArrayList(); } for (ZonedDateTime _item: values) { this.values.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Sets the new value of "values" (any previous value will be replaced) * * @param values * New value of the "values" property. */ public Datevalues.Builder<_B> withValues(final Iterable values) { if (this.values!= null) { this.values.clear(); } return addValues(values); } /** * Adds the given items to the value of "values" * * @param values * Items to add to the value of the "values" property */ public Datevalues.Builder<_B> addValues(ZonedDateTime... values) { addValues(Arrays.asList(values)); return this; } /** * Sets the new value of "values" (any previous value will be replaced) * * @param values * New value of the "values" property. */ public Datevalues.Builder<_B> withValues(ZonedDateTime... values) { withValues(Arrays.asList(values)); return this; } @Override public Datevalues build() { if (_storedValue == null) { return this.init(new Datevalues()); } else { return ((Datevalues) _storedValue); } } public Datevalues.Builder<_B> copyOf(final Datevalues _other) { _other.copyTo(this); return this; } public Datevalues.Builder<_B> copyOf(final Datevalues.Builder _other) { return copyOf(_other.build()); } } public static class Select extends Datevalues.Selector { Select() { super(null, null, null); } public static Datevalues.Select _root() { return new Datevalues.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> values = 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.values!= null) { products.put("values", this.values.init()); } return products; } public com.kscs.util.jaxb.Selector> values() { return ((this.values == null)?this.values = new com.kscs.util.jaxb.Selector>(this._root, this, "values"):this.values); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy