Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.w3.xlink.Extended Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2023.10.14 at 09:04:34 PM UTC
//
package org.w3.xlink;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
/**
*
* Intended for use as the type of user-declared elements to make them
* extended links.
* Note that the elements referenced in the content model are all abstract.
* The intention is that by simply declaring elements with these as their
* substitutionGroup, all the right things will happen.
*
*
* Java class for extended complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="extended">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <group ref="{http://www.w3.org/1999/xlink}extendedModel" maxOccurs="unbounded" minOccurs="0"/>
* <attGroup ref="{http://www.w3.org/1999/xlink}extendedAttrs"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "extended", propOrder = {
"extendedModel"
})
public class Extended {
@XmlElements({
@XmlElement(name = "title", type = TitleEltType.class),
@XmlElement(name = "resource", type = ResourceType.class),
@XmlElement(name = "locator", type = LocatorType.class),
@XmlElement(name = "arc", type = ArcType.class)
})
protected List extendedModel;
@XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true)
protected TypeType type;
@XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink")
protected String role;
@XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink")
protected String title;
/**
* Gets the value of the extendedModel 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 extendedModel property.
*
*
* For example, to add a new item, do as follows:
*
* getExtendedModel().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TitleEltType }
* {@link ResourceType }
* {@link LocatorType }
* {@link ArcType }
*
*
*/
public List getExtendedModel() {
if (extendedModel == null) {
extendedModel = new ArrayList();
}
return this.extendedModel;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TypeType }
*
*/
public TypeType getType() {
if (type == null) {
return TypeType.EXTENDED;
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TypeType }
*
*/
public void setType(TypeType value) {
this.type = value;
}
/**
* Gets the value of the role property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRole() {
return role;
}
/**
* Sets the value of the role property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRole(String value) {
this.role = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = 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 Extended.Builder<_B> _other) {
if (this.extendedModel == null) {
_other.extendedModel = null;
} else {
_other.extendedModel = new ArrayList();
for (Object _item: this.extendedModel) {
_other.extendedModel.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
_other.type = this.type;
_other.role = this.role;
_other.title = this.title;
}
public<_B >Extended.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Extended.Builder<_B>(_parentBuilder, this, true);
}
public Extended.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Extended.Builder builder() {
return new Extended.Builder(null, null, false);
}
public static<_B >Extended.Builder<_B> copyOf(final Extended _other) {
final Extended.Builder<_B> _newBuilder = new Extended.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 Extended.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree extendedModelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("extendedModel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(extendedModelPropertyTree!= null):((extendedModelPropertyTree == null)||(!extendedModelPropertyTree.isLeaf())))) {
if (this.extendedModel == null) {
_other.extendedModel = null;
} else {
_other.extendedModel = new ArrayList();
for (Object _item: this.extendedModel) {
_other.extendedModel.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
_other.type = this.type;
}
final PropertyTree rolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("role"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(rolePropertyTree!= null):((rolePropertyTree == null)||(!rolePropertyTree.isLeaf())))) {
_other.role = this.role;
}
final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) {
_other.title = this.title;
}
}
public<_B >Extended.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Extended.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Extended.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Extended.Builder<_B> copyOf(final Extended _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Extended.Builder<_B> _newBuilder = new Extended.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Extended.Builder copyExcept(final Extended _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Extended.Builder copyOnly(final Extended _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Extended _storedValue;
private List extendedModel;
private TypeType type;
private String role;
private String title;
public Builder(final _B _parentBuilder, final Extended _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
if (_other.extendedModel == null) {
this.extendedModel = null;
} else {
this.extendedModel = new ArrayList();
for (Object _item: _other.extendedModel) {
this.extendedModel.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
this.type = _other.type;
this.role = _other.role;
this.title = _other.title;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Extended _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree extendedModelPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("extendedModel"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(extendedModelPropertyTree!= null):((extendedModelPropertyTree == null)||(!extendedModelPropertyTree.isLeaf())))) {
if (_other.extendedModel == null) {
this.extendedModel = null;
} else {
this.extendedModel = new ArrayList();
for (Object _item: _other.extendedModel) {
this.extendedModel.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
this.type = _other.type;
}
final PropertyTree rolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("role"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(rolePropertyTree!= null):((rolePropertyTree == null)||(!rolePropertyTree.isLeaf())))) {
this.role = _other.role;
}
final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) {
this.title = _other.title;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Extended >_P init(final _P _product) {
if (this.extendedModel!= null) {
final List extendedModel = new ArrayList(this.extendedModel.size());
for (Buildable _item: this.extendedModel) {
extendedModel.add(((Object) _item.build()));
}
_product.extendedModel = extendedModel;
}
_product.type = this.type;
_product.role = this.role;
_product.title = this.title;
return _product;
}
/**
* Adds the given items to the value of "extendedModel"
*
* @param extendedModel
* Items to add to the value of the "extendedModel" property
*/
public Extended.Builder<_B> addExtendedModel(final Iterable> extendedModel) {
if (extendedModel!= null) {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
for (Object _item: extendedModel) {
this.extendedModel.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "extendedModel" (any previous value will be replaced)
*
* @param extendedModel
* New value of the "extendedModel" property.
*/
public Extended.Builder<_B> withExtendedModel(final Iterable> extendedModel) {
if (this.extendedModel!= null) {
this.extendedModel.clear();
}
return addExtendedModel(extendedModel);
}
/**
* Adds the given items to the value of "extendedModel"
*
* @param extendedModel
* Items to add to the value of the "extendedModel" property
*/
public Extended.Builder<_B> addExtendedModel(Object... extendedModel) {
addExtendedModel(Arrays.asList(extendedModel));
return this;
}
/**
* Sets the new value of "extendedModel" (any previous value will be replaced)
*
* @param extendedModel
* New value of the "extendedModel" property.
*/
public Extended.Builder<_B> withExtendedModel(Object... extendedModel) {
withExtendedModel(Arrays.asList(extendedModel));
return this;
}
/**
* Adds the given items to the value of "title_"
*
* @param title_
* Items to add to the value of the "title_" property
*/
public Extended.Builder<_B> addTitle(final Iterable extends TitleEltType> title_) {
if (title_!= null) {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
for (TitleEltType _item: title_) {
this.extendedModel.add(new TitleEltType.Builder>(this, _item, false));
}
}
return this;
}
/**
* Adds the given items to the value of "title_"
*
* @param title_
* Items to add to the value of the "title_" property
*/
public Extended.Builder<_B> addTitle(TitleEltType... title_) {
return addTitle(Arrays.asList(title_));
}
/**
* Returns a new builder to build an additional value of the "title" property.
* Use {@link org.w3.xlink.TitleEltType.Builder#end()} to return to the current
* builder.
*
* @return
* a new builder to build an additional value of the "title" property.
* Use {@link org.w3.xlink.TitleEltType.Builder#end()} to return to the current
* builder.
*/
public TitleEltType.Builder extends Extended.Builder<_B>> addTitle() {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
final TitleEltType.Builder> title_Builder = new TitleEltType.Builder>(this, null, false);
this.extendedModel.add(title_Builder);
return title_Builder;
}
/**
* Adds the given items to the value of "resource_"
*
* @param resource_
* Items to add to the value of the "resource_" property
*/
public Extended.Builder<_B> addResource(final Iterable extends ResourceType> resource_) {
if (resource_!= null) {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
for (ResourceType _item: resource_) {
this.extendedModel.add(new ResourceType.Builder>(this, _item, false));
}
}
return this;
}
/**
* Adds the given items to the value of "resource_"
*
* @param resource_
* Items to add to the value of the "resource_" property
*/
public Extended.Builder<_B> addResource(ResourceType... resource_) {
return addResource(Arrays.asList(resource_));
}
/**
* Returns a new builder to build an additional value of the "resource" property.
* Use {@link org.w3.xlink.ResourceType.Builder#end()} to return to the current
* builder.
*
* @return
* a new builder to build an additional value of the "resource" property.
* Use {@link org.w3.xlink.ResourceType.Builder#end()} to return to the current
* builder.
*/
public ResourceType.Builder extends Extended.Builder<_B>> addResource() {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
final ResourceType.Builder> resource_Builder = new ResourceType.Builder>(this, null, false);
this.extendedModel.add(resource_Builder);
return resource_Builder;
}
/**
* Adds the given items to the value of "locator_"
*
* @param locator_
* Items to add to the value of the "locator_" property
*/
public Extended.Builder<_B> addLocator(final Iterable extends LocatorType> locator_) {
if (locator_!= null) {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
for (LocatorType _item: locator_) {
this.extendedModel.add(new LocatorType.Builder>(this, _item, false));
}
}
return this;
}
/**
* Adds the given items to the value of "locator_"
*
* @param locator_
* Items to add to the value of the "locator_" property
*/
public Extended.Builder<_B> addLocator(LocatorType... locator_) {
return addLocator(Arrays.asList(locator_));
}
/**
* Returns a new builder to build an additional value of the "locator" property.
* Use {@link org.w3.xlink.LocatorType.Builder#end()} to return to the current
* builder.
*
* @return
* a new builder to build an additional value of the "locator" property.
* Use {@link org.w3.xlink.LocatorType.Builder#end()} to return to the current
* builder.
*/
public LocatorType.Builder extends Extended.Builder<_B>> addLocator() {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
final LocatorType.Builder> locator_Builder = new LocatorType.Builder>(this, null, false);
this.extendedModel.add(locator_Builder);
return locator_Builder;
}
/**
* Adds the given items to the value of "arc_"
*
* @param arc_
* Items to add to the value of the "arc_" property
*/
public Extended.Builder<_B> addArc(final Iterable extends ArcType> arc_) {
if (arc_!= null) {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
for (ArcType _item: arc_) {
this.extendedModel.add(new ArcType.Builder>(this, _item, false));
}
}
return this;
}
/**
* Adds the given items to the value of "arc_"
*
* @param arc_
* Items to add to the value of the "arc_" property
*/
public Extended.Builder<_B> addArc(ArcType... arc_) {
return addArc(Arrays.asList(arc_));
}
/**
* Returns a new builder to build an additional value of the "arc" property.
* Use {@link org.w3.xlink.ArcType.Builder#end()} to return to the current builder.
*
* @return
* a new builder to build an additional value of the "arc" property.
* Use {@link org.w3.xlink.ArcType.Builder#end()} to return to the current builder.
*/
public ArcType.Builder extends Extended.Builder<_B>> addArc() {
if (this.extendedModel == null) {
this.extendedModel = new ArrayList();
}
final ArcType.Builder> arc_Builder = new ArcType.Builder>(this, null, false);
this.extendedModel.add(arc_Builder);
return arc_Builder;
}
/**
* Sets the new value of "type" (any previous value will be replaced)
*
* @param type
* New value of the "type" property.
*/
public Extended.Builder<_B> withType(final TypeType type) {
this.type = type;
return this;
}
/**
* Sets the new value of "role" (any previous value will be replaced)
*
* @param role
* New value of the "role" property.
*/
public Extended.Builder<_B> withRole(final String role) {
this.role = role;
return this;
}
/**
* Sets the new value of "title" (any previous value will be replaced)
*
* @param title
* New value of the "title" property.
*/
public Extended.Builder<_B> withTitle(final String title) {
this.title = title;
return this;
}
@Override
public Extended build() {
if (_storedValue == null) {
return this.init(new Extended());
} else {
return ((Extended) _storedValue);
}
}
public Extended.Builder<_B> copyOf(final Extended _other) {
_other.copyTo(this);
return this;
}
public Extended.Builder<_B> copyOf(final Extended.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Extended.Selector
{
Select() {
super(null, null, null);
}
public static Extended.Select _root() {
return new Extended.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> extendedModel = null;
private com.kscs.util.jaxb.Selector> type = null;
private com.kscs.util.jaxb.Selector> role = null;
private com.kscs.util.jaxb.Selector> title = 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.extendedModel!= null) {
products.put("extendedModel", this.extendedModel.init());
}
if (this.type!= null) {
products.put("type", this.type.init());
}
if (this.role!= null) {
products.put("role", this.role.init());
}
if (this.title!= null) {
products.put("title", this.title.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> extendedModel() {
return ((this.extendedModel == null)?this.extendedModel = new com.kscs.util.jaxb.Selector>(this._root, this, "extendedModel"):this.extendedModel);
}
public com.kscs.util.jaxb.Selector> type() {
return ((this.type == null)?this.type = new com.kscs.util.jaxb.Selector>(this._root, this, "type"):this.type);
}
public com.kscs.util.jaxb.Selector> role() {
return ((this.role == null)?this.role = new com.kscs.util.jaxb.Selector>(this._root, this, "role"):this.role);
}
public com.kscs.util.jaxb.Selector> title() {
return ((this.title == null)?this.title = new com.kscs.util.jaxb.Selector>(this._root, this, "title"):this.title);
}
}
}