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

org.javastro.ivoa.entities.resource.dataservice.StandardSTC Maven / Gradle / Ivy


package org.javastro.ivoa.entities.resource.dataservice;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
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.Copyable;
import com.kscs.util.jaxb.PartialCopyable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import com.kscs.util.jaxb.PropertyVisitor;
import jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.javastro.ivoa.entities.resource.Content;
import org.javastro.ivoa.entities.resource.Curation;
import org.javastro.ivoa.entities.resource.Resource;
import org.javastro.ivoa.entities.resource.Validation;
import org.javastro.ivoa.entities.stc.v1.StcDescriptionType;
import org.jvnet.jaxb.lang.JAXBMergeStrategy;
import org.jvnet.jaxb.lang.JAXBToStringStrategy;
import org.jvnet.jaxb.lang.MergeFrom;
import org.jvnet.jaxb.lang.MergeStrategy;
import org.jvnet.jaxb.lang.ToString;
import org.jvnet.jaxb.lang.ToStringStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;


/**
 * This resource type is deprecated, and no resource records
 *             of this type exist in the Registry.  It will be removed
 *             in version 1.3 of VODataService.
 * 
 * 

Java class for StandardSTC complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StandardSTC", propOrder = { "stcDefinitions" }) @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public class StandardSTC extends Resource implements Cloneable, Copyable, PartialCopyable, MergeFrom, ToString { /** * Because the STC schema sets * elementFormDefault="qualified", it is * recommended that this element specify the STC * default namespace via an xmlns namespace. * */ @XmlElement(required = true) @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected List stcDefinitions; /** * Default no-arg constructor * */ public StandardSTC() { super(); } /** * Fully-initialising value constructor * */ public StandardSTC(final List validationLevels, final String title, final String shortName, final String identifier, final List altIdentifiers, final Curation curation, final Content content, final LocalDateTime created, final LocalDateTime updated, final String status, final String version, final List stcDefinitions) { super(validationLevels, title, shortName, identifier, altIdentifiers, curation, content, created, updated, status, version); this.stcDefinitions = stcDefinitions; } /** * Because the STC schema sets * elementFormDefault="qualified", it is * recommended that this element specify the STC * default namespace via an xmlns namespace. * * Gets the value of the stcDefinitions 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 stcDefinitions property.

* *

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

*
     * getStcDefinitions().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link StcDescriptionType } *

* * * @return * The value of the stcDefinitions property. */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public List getStcDefinitions() { if (stcDefinitions == null) { stcDefinitions = new ArrayList<>(); } return this.stcDefinitions; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } if (!super.equals(object)) { return false; } final StandardSTC that = ((StandardSTC) object); { List leftStcDefinitions; leftStcDefinitions = (((this.stcDefinitions!= null)&&(!this.stcDefinitions.isEmpty()))?this.getStcDefinitions():null); List rightStcDefinitions; rightStcDefinitions = (((that.stcDefinitions!= null)&&(!that.stcDefinitions.isEmpty()))?that.getStcDefinitions():null); if ((this.stcDefinitions!= null)&&(!this.stcDefinitions.isEmpty())) { if ((that.stcDefinitions!= null)&&(!that.stcDefinitions.isEmpty())) { if (!leftStcDefinitions.equals(rightStcDefinitions)) { return false; } } else { return false; } } else { if ((that.stcDefinitions!= null)&&(!that.stcDefinitions.isEmpty())) { return false; } } } return true; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public int hashCode() { int currentHashCode = 1; currentHashCode = ((currentHashCode* 31)+ super.hashCode()); { currentHashCode = (currentHashCode* 31); List theStcDefinitions; theStcDefinitions = (((this.stcDefinitions!= null)&&(!this.stcDefinitions.isEmpty()))?this.getStcDefinitions():null); if ((this.stcDefinitions!= null)&&(!this.stcDefinitions.isEmpty())) { currentHashCode += theStcDefinitions.hashCode(); } } return currentHashCode; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { List theStcDefinitions; theStcDefinitions = (((this.stcDefinitions!= null)&&(!this.stcDefinitions.isEmpty()))?this.getStcDefinitions():null); strategy.appendField(locator, this, "stcDefinitions", buffer, theStcDefinitions, ((this.stcDefinitions!= null)&&(!this.stcDefinitions.isEmpty()))); } return buffer; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void mergeFrom(Object left, Object right) { final MergeStrategy strategy = JAXBMergeStrategy.getInstance(); mergeFrom(null, null, left, right, strategy); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { super.mergeFrom(leftLocator, rightLocator, left, right, strategy); if (right instanceof StandardSTC) { final StandardSTC target = this; final StandardSTC leftObject = ((StandardSTC) left); final StandardSTC rightObject = ((StandardSTC) right); { Boolean stcDefinitionsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.stcDefinitions!= null)&&(!leftObject.stcDefinitions.isEmpty())), ((rightObject.stcDefinitions!= null)&&(!rightObject.stcDefinitions.isEmpty()))); if (stcDefinitionsShouldBeMergedAndSet == Boolean.TRUE) { List lhsStcDefinitions; lhsStcDefinitions = (((leftObject.stcDefinitions!= null)&&(!leftObject.stcDefinitions.isEmpty()))?leftObject.getStcDefinitions():null); List rhsStcDefinitions; rhsStcDefinitions = (((rightObject.stcDefinitions!= null)&&(!rightObject.stcDefinitions.isEmpty()))?rightObject.getStcDefinitions():null); List mergedStcDefinitions = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "stcDefinitions", lhsStcDefinitions), LocatorUtils.property(rightLocator, "stcDefinitions", rhsStcDefinitions), lhsStcDefinitions, rhsStcDefinitions, ((leftObject.stcDefinitions!= null)&&(!leftObject.stcDefinitions.isEmpty())), ((rightObject.stcDefinitions!= null)&&(!rightObject.stcDefinitions.isEmpty())))); target.stcDefinitions = null; if (mergedStcDefinitions!= null) { List uniqueStcDefinitionsl = target.getStcDefinitions(); uniqueStcDefinitionsl.addAll(mergedStcDefinitions); } } else { if (stcDefinitionsShouldBeMergedAndSet == Boolean.FALSE) { target.stcDefinitions = null; } } } } } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public Object createNewInstance() { return new StandardSTC(); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC clone() { final StandardSTC _newObject; _newObject = ((StandardSTC) super.clone()); if (this.stcDefinitions == null) { _newObject.stcDefinitions = null; } else { _newObject.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: this.stcDefinitions) { _newObject.stcDefinitions.add(((_item == null)?null:_item.clone())); } } return _newObject; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC createCopy() { final StandardSTC _newObject = ((StandardSTC) super.createCopy()); if (this.stcDefinitions == null) { _newObject.stcDefinitions = null; } else { _newObject.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: this.stcDefinitions) { _newObject.stcDefinitions.add(((_item == null)?null:_item.createCopy())); } } return _newObject; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC createCopy(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final StandardSTC _newObject = ((StandardSTC) super.createCopy(_propertyTree, _propertyTreeUse)); final PropertyTree stcDefinitionsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("stcDefinitions")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(stcDefinitionsPropertyTree!= null):((stcDefinitionsPropertyTree == null)||(!stcDefinitionsPropertyTree.isLeaf())))) { if (this.stcDefinitions == null) { _newObject.stcDefinitions = null; } else { _newObject.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: this.stcDefinitions) { _newObject.stcDefinitions.add(((_item == null)?null:_item.createCopy(stcDefinitionsPropertyTree, _propertyTreeUse))); } } } return _newObject; } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC copyExcept(final PropertyTree _propertyTree) { return createCopy(_propertyTree, PropertyTreeUse.EXCLUDE); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC copyOnly(final PropertyTree _propertyTree) { return createCopy(_propertyTree, PropertyTreeUse.INCLUDE); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new StandardSTC.Modifier(); } return ((StandardSTC.Modifier) this.__cachedModifier__); } /** * 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. */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >void copyTo(final StandardSTC.Builder<_B> _other) { super.copyTo(_other); if (this.stcDefinitions == null) { _other.stcDefinitions = null; } else { _other.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: this.stcDefinitions) { _other.stcDefinitions.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >StandardSTC.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new StandardSTC.Builder<_B>(_parentBuilder, this, true); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC.Builder newCopyBuilder() { return newCopyBuilder(null); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static StandardSTC.Builder builder() { return new StandardSTC.Builder<>(null, null, false); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static<_B >StandardSTC.Builder<_B> copyOf(final Resource _other) { final StandardSTC.Builder<_B> _newBuilder = new StandardSTC.Builder<>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static<_B >StandardSTC.Builder<_B> copyOf(final StandardSTC _other) { final StandardSTC.Builder<_B> _newBuilder = new StandardSTC.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. */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >void copyTo(final StandardSTC.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { super.copyTo(_other, _propertyTree, _propertyTreeUse); final PropertyTree stcDefinitionsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("stcDefinitions")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(stcDefinitionsPropertyTree!= null):((stcDefinitionsPropertyTree == null)||(!stcDefinitionsPropertyTree.isLeaf())))) { if (this.stcDefinitions == null) { _other.stcDefinitions = null; } else { _other.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: this.stcDefinitions) { _other.stcDefinitions.add(((_item == null)?null:_item.newCopyBuilder(_other, stcDefinitionsPropertyTree, _propertyTreeUse))); } } } } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >StandardSTC.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new StandardSTC.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return newCopyBuilder(null, _propertyTree, _propertyTreeUse); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static<_B >StandardSTC.Builder<_B> copyOf(final Resource _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final StandardSTC.Builder<_B> _newBuilder = new StandardSTC.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static<_B >StandardSTC.Builder<_B> copyOf(final StandardSTC _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final StandardSTC.Builder<_B> _newBuilder = new StandardSTC.Builder<>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static StandardSTC.Builder copyExcept(final Resource _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static StandardSTC.Builder copyExcept(final StandardSTC _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static StandardSTC.Builder copyOnly(final Resource _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public static StandardSTC.Builder copyOnly(final StandardSTC _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public StandardSTC visit(final PropertyVisitor _visitor_) { super.visit(_visitor_); if (_visitor_.visit(new CollectionProperty<>(StandardSTC.PropInfo.STC_DEFINITIONS, this))&&(this.stcDefinitions!= null)) { for (StcDescriptionType _item_: this.stcDefinitions) { if (_item_!= null) { _item_.visit(_visitor_); } } } return this; } public static class Builder<_B > extends Resource.Builder<_B> implements Buildable { private List>> stcDefinitions; public Builder(final _B _parentBuilder, final StandardSTC _other, final boolean _copy) { super(_parentBuilder, _other, _copy); if (_other!= null) { if (_other.stcDefinitions == null) { this.stcDefinitions = null; } else { this.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: _other.stcDefinitions) { this.stcDefinitions.add(((_item == null)?null:_item.newCopyBuilder(this))); } } } } public Builder(final _B _parentBuilder, final StandardSTC _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { super(_parentBuilder, _other, _copy, _propertyTree, _propertyTreeUse); if (_other!= null) { final PropertyTree stcDefinitionsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("stcDefinitions")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(stcDefinitionsPropertyTree!= null):((stcDefinitionsPropertyTree == null)||(!stcDefinitionsPropertyTree.isLeaf())))) { if (_other.stcDefinitions == null) { this.stcDefinitions = null; } else { this.stcDefinitions = new ArrayList<>(); for (StcDescriptionType _item: _other.stcDefinitions) { this.stcDefinitions.add(((_item == null)?null:_item.newCopyBuilder(this, stcDefinitionsPropertyTree, _propertyTreeUse))); } } } } } protected<_P extends StandardSTC >_P init(final _P _product) { if (this.stcDefinitions!= null) { final List stcDefinitions = new ArrayList<>(this.stcDefinitions.size()); for (StcDescriptionType.Builder> _item: this.stcDefinitions) { stcDefinitions.add(_item.build()); } _product.stcDefinitions = stcDefinitions; } return super.init(_product); } /** * Adds the given items to the value of "stcDefinitions" * * @param stcDefinitions * Items to add to the value of the "stcDefinitions" property */ public StandardSTC.Builder<_B> addStcDefinitions(final Iterable stcDefinitions) { if (stcDefinitions!= null) { if (this.stcDefinitions == null) { this.stcDefinitions = new ArrayList<>(); } for (StcDescriptionType _item: stcDefinitions) { this.stcDefinitions.add(new StcDescriptionType.Builder<>(this, _item, false)); } } return this; } /** * Sets the new value of "stcDefinitions" (any previous value will be replaced) * * @param stcDefinitions * New value of the "stcDefinitions" property. */ public StandardSTC.Builder<_B> withStcDefinitions(final Iterable stcDefinitions) { if (this.stcDefinitions!= null) { this.stcDefinitions.clear(); } return addStcDefinitions(stcDefinitions); } /** * Adds the given items to the value of "stcDefinitions" * * @param stcDefinitions * Items to add to the value of the "stcDefinitions" property */ public StandardSTC.Builder<_B> addStcDefinitions(StcDescriptionType... stcDefinitions) { addStcDefinitions(Arrays.asList(stcDefinitions)); return this; } /** * Sets the new value of "stcDefinitions" (any previous value will be replaced) * * @param stcDefinitions * New value of the "stcDefinitions" property. */ public StandardSTC.Builder<_B> withStcDefinitions(StcDescriptionType... stcDefinitions) { withStcDefinitions(Arrays.asList(stcDefinitions)); return this; } /** * Returns a new builder to build an additional value of the "StcDefinitions" * property. * Use {@link org.javastro.ivoa.entities.stc.v1.StcDescriptionType.Builder#end()} * to return to the current builder. * * @return * a new builder to build an additional value of the "StcDefinitions" property. * Use {@link org.javastro.ivoa.entities.stc.v1.StcDescriptionType.Builder#end()} * to return to the current builder. */ public StcDescriptionType.Builder> addStcDefinitions() { if (this.stcDefinitions == null) { this.stcDefinitions = new ArrayList<>(); } final StcDescriptionType.Builder> stcDefinitions_Builder = new StcDescriptionType.Builder<>(this, null, false); this.stcDefinitions.add(stcDefinitions_Builder); return stcDefinitions_Builder; } /** * Adds the given items to the value of "validationLevels" * * @param validationLevels * Items to add to the value of the "validationLevels" property */ @Override public StandardSTC.Builder<_B> addValidationLevels(final Iterable validationLevels) { super.addValidationLevels(validationLevels); return this; } /** * Adds the given items to the value of "validationLevels" * * @param validationLevels * Items to add to the value of the "validationLevels" property */ @Override public StandardSTC.Builder<_B> addValidationLevels(Validation... validationLevels) { super.addValidationLevels(validationLevels); return this; } /** * Sets the new value of "validationLevels" (any previous value will be replaced) * * @param validationLevels * New value of the "validationLevels" property. */ @Override public StandardSTC.Builder<_B> withValidationLevels(final Iterable validationLevels) { super.withValidationLevels(validationLevels); return this; } /** * Sets the new value of "validationLevels" (any previous value will be replaced) * * @param validationLevels * New value of the "validationLevels" property. */ @Override public StandardSTC.Builder<_B> withValidationLevels(Validation... validationLevels) { super.withValidationLevels(validationLevels); return this; } /** * Sets the new value of "title" (any previous value will be replaced) * * @param title * New value of the "title" property. */ @Override public StandardSTC.Builder<_B> withTitle(final String title) { super.withTitle(title); return this; } /** * Sets the new value of "shortName" (any previous value will be replaced) * * @param shortName * New value of the "shortName" property. */ @Override public StandardSTC.Builder<_B> withShortName(final String shortName) { super.withShortName(shortName); return this; } /** * Sets the new value of "identifier" (any previous value will be replaced) * * @param identifier * New value of the "identifier" property. */ @Override public StandardSTC.Builder<_B> withIdentifier(final String identifier) { super.withIdentifier(identifier); return this; } /** * Adds the given items to the value of "altIdentifiers" * * @param altIdentifiers * Items to add to the value of the "altIdentifiers" property */ @Override public StandardSTC.Builder<_B> addAltIdentifiers(final Iterable altIdentifiers) { super.addAltIdentifiers(altIdentifiers); return this; } /** * Adds the given items to the value of "altIdentifiers" * * @param altIdentifiers * Items to add to the value of the "altIdentifiers" property */ @Override public StandardSTC.Builder<_B> addAltIdentifiers(String... altIdentifiers) { super.addAltIdentifiers(altIdentifiers); return this; } /** * Sets the new value of "altIdentifiers" (any previous value will be replaced) * * @param altIdentifiers * New value of the "altIdentifiers" property. */ @Override public StandardSTC.Builder<_B> withAltIdentifiers(final Iterable altIdentifiers) { super.withAltIdentifiers(altIdentifiers); return this; } /** * Sets the new value of "altIdentifiers" (any previous value will be replaced) * * @param altIdentifiers * New value of the "altIdentifiers" property. */ @Override public StandardSTC.Builder<_B> withAltIdentifiers(String... altIdentifiers) { super.withAltIdentifiers(altIdentifiers); return this; } /** * Sets the new value of "curation" (any previous value will be replaced) * * @param curation * New value of the "curation" property. */ @Override public StandardSTC.Builder<_B> withCuration(final Curation curation) { super.withCuration(curation); return this; } /** * Returns the existing builder or a new builder to build the value of the * "curation" property. * Use {@link org.javastro.ivoa.entities.resource.Curation.Builder#end()} to return * to the current builder. * * @return * A new builder to build the value of the "curation" property. * Use {@link org.javastro.ivoa.entities.resource.Curation.Builder#end()} to return * to the current builder. */ public Curation.Builder> withCuration() { return ((Curation.Builder> ) super.withCuration()); } /** * Sets the new value of "content" (any previous value will be replaced) * * @param content * New value of the "content" property. */ @Override public StandardSTC.Builder<_B> withContent(final Content content) { super.withContent(content); return this; } /** * Returns the existing builder or a new builder to build the value of the * "content" property. * Use {@link org.javastro.ivoa.entities.resource.Content.Builder#end()} to return * to the current builder. * * @return * A new builder to build the value of the "content" property. * Use {@link org.javastro.ivoa.entities.resource.Content.Builder#end()} to return * to the current builder. */ public Content.Builder> withContent() { return ((Content.Builder> ) super.withContent()); } /** * Sets the new value of "created" (any previous value will be replaced) * * @param created * New value of the "created" property. */ @Override public StandardSTC.Builder<_B> withCreated(final LocalDateTime created) { super.withCreated(created); return this; } /** * Sets the new value of "updated" (any previous value will be replaced) * * @param updated * New value of the "updated" property. */ @Override public StandardSTC.Builder<_B> withUpdated(final LocalDateTime updated) { super.withUpdated(updated); return this; } /** * Sets the new value of "status" (any previous value will be replaced) * * @param status * New value of the "status" property. */ @Override public StandardSTC.Builder<_B> withStatus(final String status) { super.withStatus(status); return this; } /** * Sets the new value of "version" (any previous value will be replaced) * * @param version * New value of the "version" property. */ @Override public StandardSTC.Builder<_B> withVersion(final String version) { super.withVersion(version); return this; } @Override public StandardSTC build() { if (_storedValue == null) { return this.init(new StandardSTC()); } else { return ((StandardSTC) _storedValue); } } public StandardSTC.Builder<_B> copyOf(final StandardSTC _other) { _other.copyTo(this); return this; } public StandardSTC.Builder<_B> copyOf(final StandardSTC.Builder _other) { return copyOf(_other.build()); } } public class Modifier extends Resource.Modifier { public List getStcDefinitions() { if (StandardSTC.this.stcDefinitions == null) { StandardSTC.this.stcDefinitions = new ArrayList<>(); } return StandardSTC.this.stcDefinitions; } } public static class PropInfo { public static final transient CollectionPropertyInfo STC_DEFINITIONS = new CollectionPropertyInfo("stcDefinitions", StandardSTC.class, StcDescriptionType.class, true, null, new QName("", "stcDefinitions"), new QName("http://www.ivoa.net/xml/STC/stc-v1.30.xsd", "stcDescriptionType"), false) { @Override public List get(final StandardSTC _instance_) { return ((_instance_ == null)?null:_instance_.stcDefinitions); } @Override public void set(final StandardSTC _instance_, final List _value_) { if (_instance_!= null) { _instance_.stcDefinitions = _value_; } } } ; } public static class Select extends StandardSTC.Selector { Select() { super(null, null, null); } public static StandardSTC.Select _root() { return new StandardSTC.Select(); } } public static class Selector , TParent > extends Resource.Selector { private StcDescriptionType.Selector> stcDefinitions = 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.stcDefinitions!= null) { products.put("stcDefinitions", this.stcDefinitions.init()); } return products; } public StcDescriptionType.Selector> stcDefinitions() { return ((this.stcDefinitions == null)?this.stcDefinitions = new StcDescriptionType.Selector<>(this._root, this, "stcDefinitions"):this.stcDefinitions); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy