package org.jooq.util.jaxb; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElementWrapper; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.jooq.util.jaxb.tools.StringAdapter; /** * <p>Java-Klasse für Catalog complex type. * * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * * <pre> * <complexType name="Catalog"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <all> * <element name="inputCatalog" type="{http://www.w3.org/2001/XMLSchema}string"/> * <element name="outputCatalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="outputCatalogToDefault" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <element name="schemata" type="{http://www.jooq.org/xsd/jooq-codegen-3.10.0.xsd}Schemata" minOccurs="0"/> * </all> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Catalog", propOrder = { }) @SuppressWarnings({ "all" }) public class Catalog implements Serializable { private final static long serialVersionUID = 31000L; @XmlElement(required = true, defaultValue = "") @XmlJavaTypeAdapter(StringAdapter.class) protected String inputCatalog = ""; @XmlJavaTypeAdapter(StringAdapter.class) protected String outputCatalog; @XmlElement(defaultValue = "false") protected Boolean outputCatalogToDefault = false; @XmlElementWrapper(name = "schemata") @XmlElement(name = "schema") protected List<Schema> schemata; /** * Ruft den Wert der inputCatalog-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getInputCatalog() { return inputCatalog; } /** * Legt den Wert der inputCatalog-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ public void setInputCatalog(String value) { this.inputCatalog = value; } /** * Ruft den Wert der outputCatalog-Eigenschaft ab. * * @return * possible object is * {@link String } * */ public String getOutputCatalog() { return outputCatalog; } /** * Legt den Wert der outputCatalog-Eigenschaft fest. * * @param value * allowed object is * {@link String } * */ public void setOutputCatalog(String value) { this.outputCatalog = value; } /** * Ruft den Wert der outputCatalogToDefault-Eigenschaft ab. * * @return * possible object is * {@link Boolean } * */ public Boolean isOutputCatalogToDefault() { return outputCatalogToDefault; } /** * Legt den Wert der outputCatalogToDefault-Eigenschaft fest. * * @param value * allowed object is * {@link Boolean } * */ public void setOutputCatalogToDefault(Boolean value) { this.outputCatalogToDefault = value; } public List<Schema> getSchemata() { if (schemata == null) { schemata = new ArrayList<Schema>(); } return schemata; } public void setSchemata(List<Schema> schemata) { this.schemata = schemata; } public Catalog withInputCatalog(String value) { setInputCatalog(value); return this; } public Catalog withOutputCatalog(String value) { setOutputCatalog(value); return this; } public Catalog withOutputCatalogToDefault(Boolean value) { setOutputCatalogToDefault(value); return this; } public Catalog withSchemata(Schema... values) { if (values!= null) { for (Schema value: values) { getSchemata().add(value); } } return this; } public Catalog withSchemata(Collection<Schema> values) { if (values!= null) { getSchemata().addAll(values); } return this; } public Catalog withSchemata(List<Schema> schemata) { setSchemata(schemata); return this; } }