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

org.w3._1998.math.mathml.Math Maven / Gradle / Ivy

//
// Diese Datei wurde mit der Eclipse Implementation of JAXB, v4.0.2 generiert 
// Siehe https://eclipse-ee4j.github.io/jaxb-ri 
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
//


package org.w3._1998.math.mathml;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.CollectionProperty;
import com.kscs.util.jaxb.CollectionPropertyInfo;
import com.kscs.util.jaxb.CollectionPropertyInfo;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import com.kscs.util.jaxb.PropertyVisitor;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyAttribute;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlMixed;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;


/**
 * 

Java-Klasse für anonymous complex type. * *

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * *

{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "math") public class Math implements Cloneable { @XmlMixed @XmlAnyElement protected List content; @XmlAnyAttribute private Map otherAttributes = new HashMap<>(); protected transient List content_RO = null; protected transient Math.Modifier __cachedModifier__; /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * *

* the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map getOtherAttributes() { return otherAttributes; } @Override public Math clone() { final Math _newObject; try { _newObject = ((Math) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.content = ((this.content == null)?null:new ArrayList<>(this.content)); _newObject.content_RO = ((content == null)?null:Collections.unmodifiableList(_newObject.content)); return _newObject; } /** * Copies all state of this object to a builder. This method is used by the 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 Math.Builder<_B> _other) { if (this.content == null) { _other.content = null; } else { _other.content = new ArrayList<>(); for (Object _item: this.content) { _other.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } public<_B >Math.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Math.Builder<_B>(_parentBuilder, this, true); } public Math.Builder newCopyBuilder() { return newCopyBuilder(null); } public static Math.Builder builder() { return new Math.Builder<>(null, null, false); } public static<_B >Math.Builder<_B> copyOf(final Math _other) { final Math.Builder<_B> _newBuilder = new Math.Builder<>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; } /** * Copies all state of this object to a builder. This method is used by the 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 Math.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree contentPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("content")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(contentPropertyTree!= null):((contentPropertyTree == null)||(!contentPropertyTree.isLeaf())))) { if (this.content == null) { _other.content = null; } else { _other.content = new ArrayList<>(); for (Object _item: this.content) { _other.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } public<_B >Math.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Math.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } public Math.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } public static<_B >Math.Builder<_B> copyOf(final Math _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Math.Builder<_B> _newBuilder = new Math.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } public static Math.Builder copyExcept(final Math _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } public static Math.Builder copyOnly(final Math _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } public List getContent() { if (this.content == null) { this.content = new ArrayList<>(); } if (this.content_RO == null) { this.content_RO = ((content == null)?null:Collections.unmodifiableList(this.content)); } return this.content_RO; } public Math.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new Math.Modifier(); } return ((Math.Modifier) this.__cachedModifier__); } public Math visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new CollectionProperty<>(Math.PropInfo.content, this)); return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Math _storedValue; private List content; public Builder(final _B _parentBuilder, final Math _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; if (_other.content == null) { this.content = null; } else { this.content = new ArrayList<>(); for (Object _item: _other.content) { this.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Math _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree contentPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("content")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(contentPropertyTree!= null):((contentPropertyTree == null)||(!contentPropertyTree.isLeaf())))) { if (_other.content == null) { this.content = null; } else { this.content = new ArrayList<>(); for (Object _item: _other.content) { this.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item))); } } } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Math >_P init(final _P _product) { if (this.content!= null) { final List content = new ArrayList<>(this.content.size()); for (Buildable _item: this.content) { content.add(((Object) _item.build())); } _product.content = content; } _product.content_RO = ((content == null)?null:Collections.unmodifiableList(_product.content)); return _product; } /** * Fügt Werte zur Eigenschaft "content" hinzu. * * @param content * Werte, die zur Eigenschaft "content" hinzugefügt werden. */ public Math.Builder<_B> addContent(final Iterable content) { if (content!= null) { if (this.content == null) { this.content = new ArrayList<>(); } for (Object _item: content) { this.content.add(new Buildable.PrimitiveBuildable(_item)); } } return this; } /** * Setzt den neuen Wert der Eigenschaft "content" (Vorher zugewiesener Wert wird * ersetzt) * * @param content * Neuer Wert der Eigenschaft "content". */ public Math.Builder<_B> withContent(final Iterable content) { if (this.content!= null) { this.content.clear(); } return addContent(content); } /** * Fügt Werte zur Eigenschaft "content" hinzu. * * @param content * Werte, die zur Eigenschaft "content" hinzugefügt werden. */ public Math.Builder<_B> addContent(Object... content) { addContent(Arrays.asList(content)); return this; } /** * Setzt den neuen Wert der Eigenschaft "content" (Vorher zugewiesener Wert wird * ersetzt) * * @param content * Neuer Wert der Eigenschaft "content". */ public Math.Builder<_B> withContent(Object... content) { withContent(Arrays.asList(content)); return this; } @Override public Math build() { if (_storedValue == null) { return this.init(new Math()); } else { return ((Math) _storedValue); } } public Math.Builder<_B> copyOf(final Math _other) { _other.copyTo(this); return this; } public Math.Builder<_B> copyOf(final Math.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public List getContent() { if (Math.this.content == null) { Math.this.content = new ArrayList<>(); } return Math.this.content; } } public static class PropInfo { public static final transient CollectionPropertyInfo content = new CollectionPropertyInfo("content", Math.class, Object.class, true, null, new QName("http://www.w3.org/1998/Math/MathML", "anonymousComplexType"), new QName("http://www.w3.org/1998/Math/MathML", "anonymousComplexType"), false) { @Override public List get(final Math _instance_) { return ((_instance_ == null)?null:_instance_.content); } @Override public void set(final Math _instance_, final List _value_) { if (_instance_!= null) { _instance_.content = _value_; } } } ; } public static class Select extends Math.Selector { Select() { super(null, null, null); } public static Math.Select _root() { return new Math.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> content = 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.content!= null) { products.put("content", this.content.init()); } return products; } public com.kscs.util.jaxb.Selector> content() { return ((this.content == null)?this.content = new com.kscs.util.jaxb.Selector<>(this._root, this, "content"):this.content); } } }