org.jooq.conf.MappedSchema Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.11.21 at 05:21:45 PM CET
//
package org.jooq.conf;
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;
/**
* Java class for MappedSchema complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MappedSchema">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="input" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="output" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="tables" type="{http://www.jooq.org/xsd/jooq-runtime-3.3.0.xsd}MappedTables" minOccurs="0"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MappedSchema", propOrder = {
})
@SuppressWarnings({
"all"
})
public class MappedSchema
extends SettingsBase
implements Serializable, Cloneable
{
private final static long serialVersionUID = 350L;
@XmlElement(required = true)
protected String input;
protected String output;
@XmlElementWrapper(name = "tables")
@XmlElement(name = "table")
protected List tables;
/**
* Gets the value of the input property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInput() {
return input;
}
/**
* Sets the value of the input property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInput(String value) {
this.input = value;
}
/**
* Gets the value of the output property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOutput() {
return output;
}
/**
* Sets the value of the output property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOutput(String value) {
this.output = value;
}
public List getTables() {
if (tables == null) {
tables = new ArrayList();
}
return tables;
}
public void setTables(List tables) {
this.tables = tables;
}
public MappedSchema withInput(String value) {
setInput(value);
return this;
}
public MappedSchema withOutput(String value) {
setOutput(value);
return this;
}
public MappedSchema withTables(MappedTable... values) {
if (values!= null) {
for (MappedTable value: values) {
getTables().add(value);
}
}
return this;
}
public MappedSchema withTables(Collection values) {
if (values!= null) {
getTables().addAll(values);
}
return this;
}
public MappedSchema withTables(List tables) {
setTables(tables);
return this;
}
}