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

org.w3.soap.Reasontext Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.08.02 at 04:34:46 PM UTC 
//


package org.w3.soap;

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.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;


/**
 * 

Java class for reasontext complex type. * *

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

 * <complexType name="reasontext">
 *   <simpleContent>
 *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "reasontext", propOrder = { "value" }) public class Reasontext { @XmlValue protected String value; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace", required = true) protected String lang; /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = 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 Reasontext.Builder<_B> _other) { _other.value = this.value; _other.lang = this.lang; } public<_B >Reasontext.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Reasontext.Builder<_B>(_parentBuilder, this, true); } public Reasontext.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Reasontext.Builder builder() { return new Reasontext.Builder(null, null, false); } public static<_B >Reasontext.Builder<_B> copyOf(final Reasontext _other) { final Reasontext.Builder<_B> _newBuilder = new Reasontext.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 Reasontext.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree valuePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("value")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(valuePropertyTree!= null):((valuePropertyTree == null)||(!valuePropertyTree.isLeaf())))) { _other.value = this.value; } final PropertyTree langPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("lang")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(langPropertyTree!= null):((langPropertyTree == null)||(!langPropertyTree.isLeaf())))) { _other.lang = this.lang; } } public<_B >Reasontext.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Reasontext.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Reasontext.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Reasontext.Builder<_B> copyOf(final Reasontext _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Reasontext.Builder<_B> _newBuilder = new Reasontext.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Reasontext.Builder copyExcept(final Reasontext _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Reasontext.Builder copyOnly(final Reasontext _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Reasontext _storedValue; private String value; private String lang; public Builder(final _B _parentBuilder, final Reasontext _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.value = _other.value; this.lang = _other.lang; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Reasontext _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree valuePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("value")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(valuePropertyTree!= null):((valuePropertyTree == null)||(!valuePropertyTree.isLeaf())))) { this.value = _other.value; } final PropertyTree langPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("lang")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(langPropertyTree!= null):((langPropertyTree == null)||(!langPropertyTree.isLeaf())))) { this.lang = _other.lang; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Reasontext >_P init(final _P _product) { _product.value = this.value; _product.lang = this.lang; return _product; } /** * Sets the new value of "value" (any previous value will be replaced) * * @param value * New value of the "value" property. */ public Reasontext.Builder<_B> withValue(final String value) { this.value = value; return this; } /** * Sets the new value of "lang" (any previous value will be replaced) * * @param lang * New value of the "lang" property. */ public Reasontext.Builder<_B> withLang(final String lang) { this.lang = lang; return this; } @Override public Reasontext build() { if (_storedValue == null) { return this.init(new Reasontext()); } else { return ((Reasontext) _storedValue); } } } public static class Select extends Reasontext.Selector { Select() { super(null, null, null); } public static Reasontext.Select _root() { return new Reasontext.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> value = null; private com.kscs.util.jaxb.Selector> lang = 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.value!= null) { products.put("value", this.value.init()); } if (this.lang!= null) { products.put("lang", this.lang.init()); } return products; } public com.kscs.util.jaxb.Selector> value() { return ((this.value == null)?this.value = new com.kscs.util.jaxb.Selector>(this._root, this, "value"):this.value); } public com.kscs.util.jaxb.Selector> lang() { return ((this.lang == null)?this.lang = new com.kscs.util.jaxb.Selector>(this._root, this, "lang"):this.lang); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy