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

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


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

import java.math.BigInteger;
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.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 com.kscs.util.jaxb.SingleProperty;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyAttribute;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;


/**
 * 

Java class for Table complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *         
 *         
 *         
 *         
 *         
 *         
 *       
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Table", propOrder = { "name", "title", "description", "utype", "nrows", "columns", "foreignKeies" }) @XmlSeeAlso({ org.javastro.ivoa.entities.vosi.tables.Table.class }) @XmlRootElement(name = "table", namespace = "http://www.ivoa.net/xml/VOSITables/v1.0") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public class Table implements Cloneable, Copyable, PartialCopyable, MergeFrom, ToString { /** * In general, the format of the qualified name may * depend on the context; however, when the * table is intended to be queryable via ADQL, then the * catalogue and schema qualifiers are delimited from the * table name with dots (.). * */ @XmlElement(required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected String name; /** * This is used for display purposes. There is no requirement * regarding uniqueness. * */ @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected String title; /** * A free-text description of the table's contents * */ @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected String description; /** * The form of the utype string depends on the data * model; common forms are sequences of dotted identifiers * (e.g., in SSA) or URIs (e.g., in RegTAP). * */ @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected String utype; /** * This is not expected to be exact. For instance, the * estimates on table sizes databases keep for query * planning purposes are suitable for this field. * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected BigInteger nrows; /** * A description of a table column. * */ @XmlElement(name = "column") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected List columns; /** * A description of a foreign keys, one or more columns * from the current table that can be used to join with * another table. * */ @XmlElement(name = "foreignKey") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected List foreignKeies; /** * A name for the role this table plays. Recognized * values include “output”, indicating this table is output * from a query; “base_table", indicating a table * whose records represent the main subjects of its * schema; and “view”, indicating that the table represents * a useful combination or subset of other tables. Other * values are allowed. * */ @XmlAttribute(name = "type") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected String type; @XmlAnyAttribute @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") private Map otherAttributes = new HashMap<>(); @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") protected transient Table.Modifier __cachedModifier__; /** * Default no-arg constructor * */ public Table() { super(); } /** * Fully-initialising value constructor * */ public Table(final String name, final String title, final String description, final String utype, final BigInteger nrows, final List columns, final List foreignKeies, final String type, final Map otherAttributes) { this.name = name; this.title = title; this.description = description; this.utype = utype; this.nrows = nrows; this.columns = columns; this.foreignKeies = foreignKeies; this.type = type; this.otherAttributes = otherAttributes; } /** * In general, the format of the qualified name may * depend on the context; however, when the * table is intended to be queryable via ADQL, then the * catalogue and schema qualifiers are delimited from the * table name with dots (.). * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * * @see #getName() */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void setName(String value) { this.name = value; } /** * This is used for display purposes. There is no requirement * regarding uniqueness. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * * @see #getTitle() */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void setTitle(String value) { this.title = value; } /** * A free-text description of the table's contents * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * * @see #getDescription() */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void setDescription(String value) { this.description = value; } /** * The form of the utype string depends on the data * model; common forms are sequences of dotted identifiers * (e.g., in SSA) or URIs (e.g., in RegTAP). * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public String getUtype() { return utype; } /** * Sets the value of the utype property. * * @param value * allowed object is * {@link String } * * @see #getUtype() */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void setUtype(String value) { this.utype = value; } /** * This is not expected to be exact. For instance, the * estimates on table sizes databases keep for query * planning purposes are suitable for this field. * * @return * possible object is * {@link BigInteger } * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public BigInteger getNrows() { return nrows; } /** * Sets the value of the nrows property. * * @param value * allowed object is * {@link BigInteger } * * @see #getNrows() */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void setNrows(BigInteger value) { this.nrows = value; } /** * A description of a table column. * * Gets the value of the columns 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 columns property.

* *

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

*
     * getColumns().add(newItem);
     * 
* * *

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

* * * @return * The value of the columns property. */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public List getColumns() { if (columns == null) { columns = new ArrayList<>(); } return this.columns; } /** * A description of a foreign keys, one or more columns * from the current table that can be used to join with * another table. * * Gets the value of the foreignKeies 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 foreignKeies property.

* *

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

*
     * getForeignKeies().add(newItem);
     * 
* * *

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

* * * @return * The value of the foreignKeies property. */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public List getForeignKeies() { if (foreignKeies == null) { foreignKeies = new ArrayList<>(); } return this.foreignKeies; } /** * A name for the role this table plays. Recognized * values include “output”, indicating this table is output * from a query; “base_table", indicating a table * whose records represent the main subjects of its * schema; and “view”, indicating that the table represents * a useful combination or subset of other tables. Other * values are allowed. * * @return * possible object is * {@link String } * */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * * @see #getType() */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public void setType(String value) { this.type = value; } /** * 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 */ @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public Map getOtherAttributes() { return otherAttributes; } @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; } final Table that = ((Table) object); { String leftName; leftName = this.getName(); String rightName; rightName = that.getName(); if (this.name!= null) { if (that.name!= null) { if (!leftName.equals(rightName)) { return false; } } else { return false; } } else { if (that.name!= null) { return false; } } } { String leftTitle; leftTitle = this.getTitle(); String rightTitle; rightTitle = that.getTitle(); if (this.title!= null) { if (that.title!= null) { if (!leftTitle.equals(rightTitle)) { return false; } } else { return false; } } else { if (that.title!= null) { return false; } } } { String leftDescription; leftDescription = this.getDescription(); String rightDescription; rightDescription = that.getDescription(); if (this.description!= null) { if (that.description!= null) { if (!leftDescription.equals(rightDescription)) { return false; } } else { return false; } } else { if (that.description!= null) { return false; } } } { String leftUtype; leftUtype = this.getUtype(); String rightUtype; rightUtype = that.getUtype(); if (this.utype!= null) { if (that.utype!= null) { if (!leftUtype.equals(rightUtype)) { return false; } } else { return false; } } else { if (that.utype!= null) { return false; } } } { BigInteger leftNrows; leftNrows = this.getNrows(); BigInteger rightNrows; rightNrows = that.getNrows(); if (this.nrows!= null) { if (that.nrows!= null) { if (!leftNrows.equals(rightNrows)) { return false; } } else { return false; } } else { if (that.nrows!= null) { return false; } } } { List leftColumns; leftColumns = (((this.columns!= null)&&(!this.columns.isEmpty()))?this.getColumns():null); List rightColumns; rightColumns = (((that.columns!= null)&&(!that.columns.isEmpty()))?that.getColumns():null); if ((this.columns!= null)&&(!this.columns.isEmpty())) { if ((that.columns!= null)&&(!that.columns.isEmpty())) { if (!leftColumns.equals(rightColumns)) { return false; } } else { return false; } } else { if ((that.columns!= null)&&(!that.columns.isEmpty())) { return false; } } } { List leftForeignKeies; leftForeignKeies = (((this.foreignKeies!= null)&&(!this.foreignKeies.isEmpty()))?this.getForeignKeies():null); List rightForeignKeies; rightForeignKeies = (((that.foreignKeies!= null)&&(!that.foreignKeies.isEmpty()))?that.getForeignKeies():null); if ((this.foreignKeies!= null)&&(!this.foreignKeies.isEmpty())) { if ((that.foreignKeies!= null)&&(!that.foreignKeies.isEmpty())) { if (!leftForeignKeies.equals(rightForeignKeies)) { return false; } } else { return false; } } else { if ((that.foreignKeies!= null)&&(!that.foreignKeies.isEmpty())) { return false; } } } { String leftType; leftType = this.getType(); String rightType; rightType = that.getType(); if (this.type!= null) { if (that.type!= null) { if (!leftType.equals(rightType)) { return false; } } else { return false; } } else { if (that.type!= null) { 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); String theName; theName = this.getName(); if (this.name!= null) { currentHashCode += theName.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theTitle; theTitle = this.getTitle(); if (this.title!= null) { currentHashCode += theTitle.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theDescription; theDescription = this.getDescription(); if (this.description!= null) { currentHashCode += theDescription.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theUtype; theUtype = this.getUtype(); if (this.utype!= null) { currentHashCode += theUtype.hashCode(); } } { currentHashCode = (currentHashCode* 31); BigInteger theNrows; theNrows = this.getNrows(); if (this.nrows!= null) { currentHashCode += theNrows.hashCode(); } } { currentHashCode = (currentHashCode* 31); List theColumns; theColumns = (((this.columns!= null)&&(!this.columns.isEmpty()))?this.getColumns():null); if ((this.columns!= null)&&(!this.columns.isEmpty())) { currentHashCode += theColumns.hashCode(); } } { currentHashCode = (currentHashCode* 31); List theForeignKeies; theForeignKeies = (((this.foreignKeies!= null)&&(!this.foreignKeies.isEmpty()))?this.getForeignKeies():null); if ((this.foreignKeies!= null)&&(!this.foreignKeies.isEmpty())) { currentHashCode += theForeignKeies.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theType; theType = this.getType(); if (this.type!= null) { currentHashCode += theType.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) { { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null)); } { String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { String theUtype; theUtype = this.getUtype(); strategy.appendField(locator, this, "utype", buffer, theUtype, (this.utype!= null)); } { BigInteger theNrows; theNrows = this.getNrows(); strategy.appendField(locator, this, "nrows", buffer, theNrows, (this.nrows!= null)); } { List theColumns; theColumns = (((this.columns!= null)&&(!this.columns.isEmpty()))?this.getColumns():null); strategy.appendField(locator, this, "columns", buffer, theColumns, ((this.columns!= null)&&(!this.columns.isEmpty()))); } { List theForeignKeies; theForeignKeies = (((this.foreignKeies!= null)&&(!this.foreignKeies.isEmpty()))?this.getForeignKeies():null); strategy.appendField(locator, this, "foreignKeies", buffer, theForeignKeies, ((this.foreignKeies!= null)&&(!this.foreignKeies.isEmpty()))); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } 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) { if (right instanceof Table) { final Table target = this; final Table leftObject = ((Table) left); final Table rightObject = ((Table) right); { Boolean nameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.name!= null), (rightObject.name!= null)); if (nameShouldBeMergedAndSet == Boolean.TRUE) { String lhsName; lhsName = leftObject.getName(); String rhsName; rhsName = rightObject.getName(); String mergedName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "name", lhsName), LocatorUtils.property(rightLocator, "name", rhsName), lhsName, rhsName, (leftObject.name!= null), (rightObject.name!= null))); target.setName(mergedName); } else { if (nameShouldBeMergedAndSet == Boolean.FALSE) { target.name = null; } } } { Boolean titleShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.title!= null), (rightObject.title!= null)); if (titleShouldBeMergedAndSet == Boolean.TRUE) { String lhsTitle; lhsTitle = leftObject.getTitle(); String rhsTitle; rhsTitle = rightObject.getTitle(); String mergedTitle = ((String) strategy.merge(LocatorUtils.property(leftLocator, "title", lhsTitle), LocatorUtils.property(rightLocator, "title", rhsTitle), lhsTitle, rhsTitle, (leftObject.title!= null), (rightObject.title!= null))); target.setTitle(mergedTitle); } else { if (titleShouldBeMergedAndSet == Boolean.FALSE) { target.title = null; } } } { Boolean descriptionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.description!= null), (rightObject.description!= null)); if (descriptionShouldBeMergedAndSet == Boolean.TRUE) { String lhsDescription; lhsDescription = leftObject.getDescription(); String rhsDescription; rhsDescription = rightObject.getDescription(); String mergedDescription = ((String) strategy.merge(LocatorUtils.property(leftLocator, "description", lhsDescription), LocatorUtils.property(rightLocator, "description", rhsDescription), lhsDescription, rhsDescription, (leftObject.description!= null), (rightObject.description!= null))); target.setDescription(mergedDescription); } else { if (descriptionShouldBeMergedAndSet == Boolean.FALSE) { target.description = null; } } } { Boolean utypeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.utype!= null), (rightObject.utype!= null)); if (utypeShouldBeMergedAndSet == Boolean.TRUE) { String lhsUtype; lhsUtype = leftObject.getUtype(); String rhsUtype; rhsUtype = rightObject.getUtype(); String mergedUtype = ((String) strategy.merge(LocatorUtils.property(leftLocator, "utype", lhsUtype), LocatorUtils.property(rightLocator, "utype", rhsUtype), lhsUtype, rhsUtype, (leftObject.utype!= null), (rightObject.utype!= null))); target.setUtype(mergedUtype); } else { if (utypeShouldBeMergedAndSet == Boolean.FALSE) { target.utype = null; } } } { Boolean nrowsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.nrows!= null), (rightObject.nrows!= null)); if (nrowsShouldBeMergedAndSet == Boolean.TRUE) { BigInteger lhsNrows; lhsNrows = leftObject.getNrows(); BigInteger rhsNrows; rhsNrows = rightObject.getNrows(); BigInteger mergedNrows = ((BigInteger) strategy.merge(LocatorUtils.property(leftLocator, "nrows", lhsNrows), LocatorUtils.property(rightLocator, "nrows", rhsNrows), lhsNrows, rhsNrows, (leftObject.nrows!= null), (rightObject.nrows!= null))); target.setNrows(mergedNrows); } else { if (nrowsShouldBeMergedAndSet == Boolean.FALSE) { target.nrows = null; } } } { Boolean columnsShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.columns!= null)&&(!leftObject.columns.isEmpty())), ((rightObject.columns!= null)&&(!rightObject.columns.isEmpty()))); if (columnsShouldBeMergedAndSet == Boolean.TRUE) { List lhsColumns; lhsColumns = (((leftObject.columns!= null)&&(!leftObject.columns.isEmpty()))?leftObject.getColumns():null); List rhsColumns; rhsColumns = (((rightObject.columns!= null)&&(!rightObject.columns.isEmpty()))?rightObject.getColumns():null); List mergedColumns = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "columns", lhsColumns), LocatorUtils.property(rightLocator, "columns", rhsColumns), lhsColumns, rhsColumns, ((leftObject.columns!= null)&&(!leftObject.columns.isEmpty())), ((rightObject.columns!= null)&&(!rightObject.columns.isEmpty())))); target.columns = null; if (mergedColumns!= null) { List uniqueColumnsl = target.getColumns(); uniqueColumnsl.addAll(mergedColumns); } } else { if (columnsShouldBeMergedAndSet == Boolean.FALSE) { target.columns = null; } } } { Boolean foreignKeiesShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, ((leftObject.foreignKeies!= null)&&(!leftObject.foreignKeies.isEmpty())), ((rightObject.foreignKeies!= null)&&(!rightObject.foreignKeies.isEmpty()))); if (foreignKeiesShouldBeMergedAndSet == Boolean.TRUE) { List lhsForeignKeies; lhsForeignKeies = (((leftObject.foreignKeies!= null)&&(!leftObject.foreignKeies.isEmpty()))?leftObject.getForeignKeies():null); List rhsForeignKeies; rhsForeignKeies = (((rightObject.foreignKeies!= null)&&(!rightObject.foreignKeies.isEmpty()))?rightObject.getForeignKeies():null); List mergedForeignKeies = ((List ) strategy.merge(LocatorUtils.property(leftLocator, "foreignKeies", lhsForeignKeies), LocatorUtils.property(rightLocator, "foreignKeies", rhsForeignKeies), lhsForeignKeies, rhsForeignKeies, ((leftObject.foreignKeies!= null)&&(!leftObject.foreignKeies.isEmpty())), ((rightObject.foreignKeies!= null)&&(!rightObject.foreignKeies.isEmpty())))); target.foreignKeies = null; if (mergedForeignKeies!= null) { List uniqueForeignKeiesl = target.getForeignKeies(); uniqueForeignKeiesl.addAll(mergedForeignKeies); } } else { if (foreignKeiesShouldBeMergedAndSet == Boolean.FALSE) { target.foreignKeies = null; } } } { Boolean typeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.type!= null), (rightObject.type!= null)); if (typeShouldBeMergedAndSet == Boolean.TRUE) { String lhsType; lhsType = leftObject.getType(); String rhsType; rhsType = rightObject.getType(); String mergedType = ((String) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType, (leftObject.type!= null), (rightObject.type!= null))); target.setType(mergedType); } else { if (typeShouldBeMergedAndSet == Boolean.FALSE) { target.type = 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 Table(); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public Table clone() { final Table _newObject; try { _newObject = ((Table) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } if (this.columns == null) { _newObject.columns = null; } else { _newObject.columns = new ArrayList<>(); for (TableParam _item: this.columns) { _newObject.columns.add(((_item == null)?null:_item.clone())); } } if (this.foreignKeies == null) { _newObject.foreignKeies = null; } else { _newObject.foreignKeies = new ArrayList<>(); for (ForeignKey _item: this.foreignKeies) { _newObject.foreignKeies.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 Table createCopy() { final Table _newObject; try { _newObject = ((Table) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } _newObject.name = this.name; _newObject.title = this.title; _newObject.description = this.description; _newObject.utype = this.utype; _newObject.nrows = this.nrows; if (this.columns == null) { _newObject.columns = null; } else { _newObject.columns = new ArrayList<>(); for (TableParam _item: this.columns) { _newObject.columns.add(((_item == null)?null:_item.createCopy())); } } if (this.foreignKeies == null) { _newObject.foreignKeies = null; } else { _newObject.foreignKeies = new ArrayList<>(); for (ForeignKey _item: this.foreignKeies) { _newObject.foreignKeies.add(((_item == null)?null:_item.createCopy())); } } _newObject.type = this.type; 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 Table createCopy(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Table _newObject; try { _newObject = ((Table) super.clone()); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } final PropertyTree namePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("name")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(namePropertyTree!= null):((namePropertyTree == null)||(!namePropertyTree.isLeaf())))) { _newObject.name = this.name; } final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) { _newObject.title = this.title; } final PropertyTree descriptionPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("description")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(descriptionPropertyTree!= null):((descriptionPropertyTree == null)||(!descriptionPropertyTree.isLeaf())))) { _newObject.description = this.description; } final PropertyTree utypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("utype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(utypePropertyTree!= null):((utypePropertyTree == null)||(!utypePropertyTree.isLeaf())))) { _newObject.utype = this.utype; } final PropertyTree nrowsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nrows")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nrowsPropertyTree!= null):((nrowsPropertyTree == null)||(!nrowsPropertyTree.isLeaf())))) { _newObject.nrows = this.nrows; } final PropertyTree columnsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("columns")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(columnsPropertyTree!= null):((columnsPropertyTree == null)||(!columnsPropertyTree.isLeaf())))) { if (this.columns == null) { _newObject.columns = null; } else { _newObject.columns = new ArrayList<>(); for (TableParam _item: this.columns) { _newObject.columns.add(((_item == null)?null:_item.createCopy(columnsPropertyTree, _propertyTreeUse))); } } } final PropertyTree foreignKeiesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("foreignKeies")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(foreignKeiesPropertyTree!= null):((foreignKeiesPropertyTree == null)||(!foreignKeiesPropertyTree.isLeaf())))) { if (this.foreignKeies == null) { _newObject.foreignKeies = null; } else { _newObject.foreignKeies = new ArrayList<>(); for (ForeignKey _item: this.foreignKeies) { _newObject.foreignKeies.add(((_item == null)?null:_item.createCopy(foreignKeiesPropertyTree, _propertyTreeUse))); } } } final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) { _newObject.type = this.type; } 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 Table 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 Table 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 Table.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new Table.Modifier(); } return ((Table.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 Table.Builder<_B> _other) { _other.name = this.name; _other.title = this.title; _other.description = this.description; _other.utype = this.utype; _other.nrows = this.nrows; if (this.columns == null) { _other.columns = null; } else { _other.columns = new ArrayList<>(); for (TableParam _item: this.columns) { _other.columns.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } if (this.foreignKeies == null) { _other.foreignKeies = null; } else { _other.foreignKeies = new ArrayList<>(); for (ForeignKey _item: this.foreignKeies) { _other.foreignKeies.add(((_item == null)?null:_item.newCopyBuilder(_other))); } } _other.type = this.type; } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >Table.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new Table.Builder<_B>(_parentBuilder, this, true); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public Table.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 Table.Builder builder() { return new Table.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 >Table.Builder<_B> copyOf(final Table _other) { final Table.Builder<_B> _newBuilder = new Table.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 Table.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final PropertyTree namePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("name")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(namePropertyTree!= null):((namePropertyTree == null)||(!namePropertyTree.isLeaf())))) { _other.name = this.name; } final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) { _other.title = this.title; } final PropertyTree descriptionPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("description")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(descriptionPropertyTree!= null):((descriptionPropertyTree == null)||(!descriptionPropertyTree.isLeaf())))) { _other.description = this.description; } final PropertyTree utypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("utype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(utypePropertyTree!= null):((utypePropertyTree == null)||(!utypePropertyTree.isLeaf())))) { _other.utype = this.utype; } final PropertyTree nrowsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nrows")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nrowsPropertyTree!= null):((nrowsPropertyTree == null)||(!nrowsPropertyTree.isLeaf())))) { _other.nrows = this.nrows; } final PropertyTree columnsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("columns")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(columnsPropertyTree!= null):((columnsPropertyTree == null)||(!columnsPropertyTree.isLeaf())))) { if (this.columns == null) { _other.columns = null; } else { _other.columns = new ArrayList<>(); for (TableParam _item: this.columns) { _other.columns.add(((_item == null)?null:_item.newCopyBuilder(_other, columnsPropertyTree, _propertyTreeUse))); } } } final PropertyTree foreignKeiesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("foreignKeies")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(foreignKeiesPropertyTree!= null):((foreignKeiesPropertyTree == null)||(!foreignKeiesPropertyTree.isLeaf())))) { if (this.foreignKeies == null) { _other.foreignKeies = null; } else { _other.foreignKeies = new ArrayList<>(); for (ForeignKey _item: this.foreignKeies) { _other.foreignKeies.add(((_item == null)?null:_item.newCopyBuilder(_other, foreignKeiesPropertyTree, _propertyTreeUse))); } } } final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) { _other.type = this.type; } } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >Table.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new Table.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public Table.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 >Table.Builder<_B> copyOf(final Table _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final Table.Builder<_B> _newBuilder = new Table.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 Table.Builder copyExcept(final Table _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 Table.Builder copyOnly(final Table _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 Table visit(final PropertyVisitor _visitor_) { _visitor_.visit(this); _visitor_.visit(new SingleProperty<>(Table.PropInfo.NAME, this)); _visitor_.visit(new SingleProperty<>(Table.PropInfo.TITLE, this)); _visitor_.visit(new SingleProperty<>(Table.PropInfo.DESCRIPTION, this)); _visitor_.visit(new SingleProperty<>(Table.PropInfo.UTYPE, this)); _visitor_.visit(new SingleProperty<>(Table.PropInfo.NROWS, this)); if (_visitor_.visit(new CollectionProperty<>(Table.PropInfo.COLUMNS, this))&&(this.columns!= null)) { for (TableParam _item_: this.columns) { if (_item_!= null) { _item_.visit(_visitor_); } } } if (_visitor_.visit(new CollectionProperty<>(Table.PropInfo.FOREIGN_KEIES, this))&&(this.foreignKeies!= null)) { for (ForeignKey _item_: this.foreignKeies) { if (_item_!= null) { _item_.visit(_visitor_); } } } _visitor_.visit(new SingleProperty<>(Table.PropInfo.TYPE, this)); return this; } public static class Builder<_B >implements Buildable { protected final _B _parentBuilder; protected final Table _storedValue; private String name; private String title; private String description; private String utype; private BigInteger nrows; private List>> columns; private List>> foreignKeies; private String type; public Builder(final _B _parentBuilder, final Table _other, final boolean _copy) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; this.name = _other.name; this.title = _other.title; this.description = _other.description; this.utype = _other.utype; this.nrows = _other.nrows; if (_other.columns == null) { this.columns = null; } else { this.columns = new ArrayList<>(); for (TableParam _item: _other.columns) { this.columns.add(((_item == null)?null:_item.newCopyBuilder(this))); } } if (_other.foreignKeies == null) { this.foreignKeies = null; } else { this.foreignKeies = new ArrayList<>(); for (ForeignKey _item: _other.foreignKeies) { this.foreignKeies.add(((_item == null)?null:_item.newCopyBuilder(this))); } } this.type = _other.type; } else { _storedValue = _other; } } else { _storedValue = null; } } public Builder(final _B _parentBuilder, final Table _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { this._parentBuilder = _parentBuilder; if (_other!= null) { if (_copy) { _storedValue = null; final PropertyTree namePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("name")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(namePropertyTree!= null):((namePropertyTree == null)||(!namePropertyTree.isLeaf())))) { this.name = _other.name; } final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) { this.title = _other.title; } final PropertyTree descriptionPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("description")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(descriptionPropertyTree!= null):((descriptionPropertyTree == null)||(!descriptionPropertyTree.isLeaf())))) { this.description = _other.description; } final PropertyTree utypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("utype")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(utypePropertyTree!= null):((utypePropertyTree == null)||(!utypePropertyTree.isLeaf())))) { this.utype = _other.utype; } final PropertyTree nrowsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("nrows")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(nrowsPropertyTree!= null):((nrowsPropertyTree == null)||(!nrowsPropertyTree.isLeaf())))) { this.nrows = _other.nrows; } final PropertyTree columnsPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("columns")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(columnsPropertyTree!= null):((columnsPropertyTree == null)||(!columnsPropertyTree.isLeaf())))) { if (_other.columns == null) { this.columns = null; } else { this.columns = new ArrayList<>(); for (TableParam _item: _other.columns) { this.columns.add(((_item == null)?null:_item.newCopyBuilder(this, columnsPropertyTree, _propertyTreeUse))); } } } final PropertyTree foreignKeiesPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("foreignKeies")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(foreignKeiesPropertyTree!= null):((foreignKeiesPropertyTree == null)||(!foreignKeiesPropertyTree.isLeaf())))) { if (_other.foreignKeies == null) { this.foreignKeies = null; } else { this.foreignKeies = new ArrayList<>(); for (ForeignKey _item: _other.foreignKeies) { this.foreignKeies.add(((_item == null)?null:_item.newCopyBuilder(this, foreignKeiesPropertyTree, _propertyTreeUse))); } } } final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type")); if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) { this.type = _other.type; } } else { _storedValue = _other; } } else { _storedValue = null; } } public _B end() { return this._parentBuilder; } protected<_P extends Table >_P init(final _P _product) { _product.name = this.name; _product.title = this.title; _product.description = this.description; _product.utype = this.utype; _product.nrows = this.nrows; if (this.columns!= null) { final List columns = new ArrayList<>(this.columns.size()); for (TableParam.Builder> _item: this.columns) { columns.add(_item.build()); } _product.columns = columns; } if (this.foreignKeies!= null) { final List foreignKeies = new ArrayList<>(this.foreignKeies.size()); for (ForeignKey.Builder> _item: this.foreignKeies) { foreignKeies.add(_item.build()); } _product.foreignKeies = foreignKeies; } _product.type = this.type; return _product; } /** * Sets the new value of "name" (any previous value will be replaced) * * @param name * New value of the "name" property. */ public Table.Builder<_B> withName(final String name) { this.name = name; return this; } /** * Sets the new value of "title" (any previous value will be replaced) * * @param title * New value of the "title" property. */ public Table.Builder<_B> withTitle(final String title) { this.title = title; return this; } /** * Sets the new value of "description" (any previous value will be replaced) * * @param description * New value of the "description" property. */ public Table.Builder<_B> withDescription(final String description) { this.description = description; return this; } /** * Sets the new value of "utype" (any previous value will be replaced) * * @param utype * New value of the "utype" property. */ public Table.Builder<_B> withUtype(final String utype) { this.utype = utype; return this; } /** * Sets the new value of "nrows" (any previous value will be replaced) * * @param nrows * New value of the "nrows" property. */ public Table.Builder<_B> withNrows(final BigInteger nrows) { this.nrows = nrows; return this; } /** * Adds the given items to the value of "columns" * * @param columns * Items to add to the value of the "columns" property */ public Table.Builder<_B> addColumns(final Iterable columns) { if (columns!= null) { if (this.columns == null) { this.columns = new ArrayList<>(); } for (TableParam _item: columns) { this.columns.add(new TableParam.Builder<>(this, _item, false)); } } return this; } /** * Sets the new value of "columns" (any previous value will be replaced) * * @param columns * New value of the "columns" property. */ public Table.Builder<_B> withColumns(final Iterable columns) { if (this.columns!= null) { this.columns.clear(); } return addColumns(columns); } /** * Adds the given items to the value of "columns" * * @param columns * Items to add to the value of the "columns" property */ public Table.Builder<_B> addColumns(TableParam... columns) { addColumns(Arrays.asList(columns)); return this; } /** * Sets the new value of "columns" (any previous value will be replaced) * * @param columns * New value of the "columns" property. */ public Table.Builder<_B> withColumns(TableParam... columns) { withColumns(Arrays.asList(columns)); return this; } /** * Returns a new builder to build an additional value of the "Columns" property. * Use {@link * org.javastro.ivoa.entities.resource.dataservice.TableParam.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "Columns" property. * Use {@link * org.javastro.ivoa.entities.resource.dataservice.TableParam.Builder#end()} to * return to the current builder. */ public TableParam.Builder> addColumns() { if (this.columns == null) { this.columns = new ArrayList<>(); } final TableParam.Builder> columns_Builder = new TableParam.Builder<>(this, null, false); this.columns.add(columns_Builder); return columns_Builder; } /** * Adds the given items to the value of "foreignKeies" * * @param foreignKeies * Items to add to the value of the "foreignKeies" property */ public Table.Builder<_B> addForeignKeies(final Iterable foreignKeies) { if (foreignKeies!= null) { if (this.foreignKeies == null) { this.foreignKeies = new ArrayList<>(); } for (ForeignKey _item: foreignKeies) { this.foreignKeies.add(new ForeignKey.Builder<>(this, _item, false)); } } return this; } /** * Sets the new value of "foreignKeies" (any previous value will be replaced) * * @param foreignKeies * New value of the "foreignKeies" property. */ public Table.Builder<_B> withForeignKeies(final Iterable foreignKeies) { if (this.foreignKeies!= null) { this.foreignKeies.clear(); } return addForeignKeies(foreignKeies); } /** * Adds the given items to the value of "foreignKeies" * * @param foreignKeies * Items to add to the value of the "foreignKeies" property */ public Table.Builder<_B> addForeignKeies(ForeignKey... foreignKeies) { addForeignKeies(Arrays.asList(foreignKeies)); return this; } /** * Sets the new value of "foreignKeies" (any previous value will be replaced) * * @param foreignKeies * New value of the "foreignKeies" property. */ public Table.Builder<_B> withForeignKeies(ForeignKey... foreignKeies) { withForeignKeies(Arrays.asList(foreignKeies)); return this; } /** * Returns a new builder to build an additional value of the "ForeignKeies" * property. * Use {@link * org.javastro.ivoa.entities.resource.dataservice.ForeignKey.Builder#end()} to * return to the current builder. * * @return * a new builder to build an additional value of the "ForeignKeies" property. * Use {@link * org.javastro.ivoa.entities.resource.dataservice.ForeignKey.Builder#end()} to * return to the current builder. */ public ForeignKey.Builder> addForeignKeies() { if (this.foreignKeies == null) { this.foreignKeies = new ArrayList<>(); } final ForeignKey.Builder> foreignKeies_Builder = new ForeignKey.Builder<>(this, null, false); this.foreignKeies.add(foreignKeies_Builder); return foreignKeies_Builder; } /** * Sets the new value of "type" (any previous value will be replaced) * * @param type * New value of the "type" property. */ public Table.Builder<_B> withType(final String type) { this.type = type; return this; } @Override public Table build() { if (_storedValue == null) { return this.init(new Table()); } else { return ((Table) _storedValue); } } public Table.Builder<_B> copyOf(final Table _other) { _other.copyTo(this); return this; } public Table.Builder<_B> copyOf(final Table.Builder _other) { return copyOf(_other.build()); } } public class Modifier { public void setName(final String name) { Table.this.setName(name); } public void setTitle(final String title) { Table.this.setTitle(title); } public void setDescription(final String description) { Table.this.setDescription(description); } public void setUtype(final String utype) { Table.this.setUtype(utype); } public void setNrows(final BigInteger nrows) { Table.this.setNrows(nrows); } public List getColumns() { if (Table.this.columns == null) { Table.this.columns = new ArrayList<>(); } return Table.this.columns; } public List getForeignKeies() { if (Table.this.foreignKeies == null) { Table.this.foreignKeies = new ArrayList<>(); } return Table.this.foreignKeies; } public void setType(final String type) { Table.this.setType(type); } } public static class PropInfo { public static final transient SinglePropertyInfo NAME = new SinglePropertyInfo("name", Table.class, String.class, false, null, new QName("", "name"), new QName("http://www.w3.org/2001/XMLSchema", "token"), false) { @Override public String get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.name); } @Override public void set(final Table _instance_, final String _value_) { if (_instance_!= null) { _instance_.name = _value_; } } } ; public static final transient SinglePropertyInfo TITLE = new SinglePropertyInfo("title", Table.class, String.class, false, null, new QName("", "title"), new QName("http://www.w3.org/2001/XMLSchema", "token"), false) { @Override public String get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.title); } @Override public void set(final Table _instance_, final String _value_) { if (_instance_!= null) { _instance_.title = _value_; } } } ; public static final transient SinglePropertyInfo DESCRIPTION = new SinglePropertyInfo("description", Table.class, String.class, false, null, new QName("", "description"), new QName("http://www.w3.org/2001/XMLSchema", "token"), false) { @Override public String get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.description); } @Override public void set(final Table _instance_, final String _value_) { if (_instance_!= null) { _instance_.description = _value_; } } } ; public static final transient SinglePropertyInfo UTYPE = new SinglePropertyInfo("utype", Table.class, String.class, false, null, new QName("", "utype"), new QName("http://www.w3.org/2001/XMLSchema", "token"), false) { @Override public String get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.utype); } @Override public void set(final Table _instance_, final String _value_) { if (_instance_!= null) { _instance_.utype = _value_; } } } ; public static final transient SinglePropertyInfo NROWS = new SinglePropertyInfo("nrows", Table.class, BigInteger.class, false, null, new QName("", "nrows"), new QName("http://www.w3.org/2001/XMLSchema", "integer"), false) { @Override public BigInteger get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.nrows); } @Override public void set(final Table _instance_, final BigInteger _value_) { if (_instance_!= null) { _instance_.nrows = _value_; } } } ; public static final transient CollectionPropertyInfo COLUMNS = new CollectionPropertyInfo("columns", Table.class, TableParam.class, true, null, new QName("", "column"), new QName("http://www.ivoa.net/xml/VODataService/v1.1", "TableParam"), false) { @Override public List get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.columns); } @Override public void set(final Table _instance_, final List _value_) { if (_instance_!= null) { _instance_.columns = _value_; } } } ; public static final transient CollectionPropertyInfo FOREIGN_KEIES = new CollectionPropertyInfo("foreignKeies", Table.class, ForeignKey.class, true, null, new QName("", "foreignKey"), new QName("http://www.ivoa.net/xml/VODataService/v1.1", "ForeignKey"), false) { @Override public List get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.foreignKeies); } @Override public void set(final Table _instance_, final List _value_) { if (_instance_!= null) { _instance_.foreignKeies = _value_; } } } ; public static final transient SinglePropertyInfo TYPE = new SinglePropertyInfo("type", Table.class, String.class, false, null, new QName("", "type"), new QName("http://www.w3.org/2001/XMLSchema", "string"), true) { @Override public String get(final Table _instance_) { return ((_instance_ == null)?null:_instance_.type); } @Override public void set(final Table _instance_, final String _value_) { if (_instance_!= null) { _instance_.type = _value_; } } } ; } public static class Select extends Table.Selector { Select() { super(null, null, null); } public static Table.Select _root() { return new Table.Select(); } } public static class Selector , TParent > extends com.kscs.util.jaxb.Selector { private com.kscs.util.jaxb.Selector> name = null; private com.kscs.util.jaxb.Selector> title = null; private com.kscs.util.jaxb.Selector> description = null; private com.kscs.util.jaxb.Selector> utype = null; private com.kscs.util.jaxb.Selector> nrows = null; private TableParam.Selector> columns = null; private ForeignKey.Selector> foreignKeies = null; private com.kscs.util.jaxb.Selector> type = 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.name!= null) { products.put("name", this.name.init()); } if (this.title!= null) { products.put("title", this.title.init()); } if (this.description!= null) { products.put("description", this.description.init()); } if (this.utype!= null) { products.put("utype", this.utype.init()); } if (this.nrows!= null) { products.put("nrows", this.nrows.init()); } if (this.columns!= null) { products.put("columns", this.columns.init()); } if (this.foreignKeies!= null) { products.put("foreignKeies", this.foreignKeies.init()); } if (this.type!= null) { products.put("type", this.type.init()); } return products; } public com.kscs.util.jaxb.Selector> name() { return ((this.name == null)?this.name = new com.kscs.util.jaxb.Selector<>(this._root, this, "name"):this.name); } 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); } public com.kscs.util.jaxb.Selector> description() { return ((this.description == null)?this.description = new com.kscs.util.jaxb.Selector<>(this._root, this, "description"):this.description); } public com.kscs.util.jaxb.Selector> utype() { return ((this.utype == null)?this.utype = new com.kscs.util.jaxb.Selector<>(this._root, this, "utype"):this.utype); } public com.kscs.util.jaxb.Selector> nrows() { return ((this.nrows == null)?this.nrows = new com.kscs.util.jaxb.Selector<>(this._root, this, "nrows"):this.nrows); } public TableParam.Selector> columns() { return ((this.columns == null)?this.columns = new TableParam.Selector<>(this._root, this, "columns"):this.columns); } public ForeignKey.Selector> foreignKeies() { return ((this.foreignKeies == null)?this.foreignKeies = new ForeignKey.Selector<>(this._root, this, "foreignKeies"):this.foreignKeies); } 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); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy