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

books.BooksForm Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2020.03.31 at 04:48:39 AM UTC 
//


package books;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.github.jcustenborder.kafka.connect.xml.Connectable;
import com.github.jcustenborder.kafka.connect.xml.ConnectableHelper;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.SchemaBuilder;
import org.apache.kafka.connect.data.Struct;


/**
 * 

Java class for BooksForm complex type. * *

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

 * <complexType name="BooksForm">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="book" type="{urn:books}BookForm" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BooksForm", propOrder = { "book" }) public class BooksForm implements Connectable { protected List book; public final static Schema CONNECT_SCHEMA; static { SchemaBuilder builder = SchemaBuilder.struct(); builder.name("books.BooksForm"); builder.optional(); SchemaBuilder fieldBuilder; fieldBuilder = SchemaBuilder.array(BookForm.CONNECT_SCHEMA); fieldBuilder.optional(); builder.field("book", fieldBuilder.build()); CONNECT_SCHEMA = builder.build(); } /** * Gets the value of the book 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 book property. * *

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

     *    getBook().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link BookForm } * * */ public List getBook() { if (book == null) { book = new ArrayList(); } return this.book; } public boolean equals(Object object) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final BooksForm that = ((BooksForm) object); { List leftBook; leftBook = (((this.book!= null)&&(!this.book.isEmpty()))?this.getBook():null); List rightBook; rightBook = (((that.book!= null)&&(!that.book.isEmpty()))?that.getBook():null); if ((this.book!= null)&&(!this.book.isEmpty())) { if ((that.book!= null)&&(!that.book.isEmpty())) { if (!leftBook.equals(rightBook)) { return false; } } else { return false; } } else { if ((that.book!= null)&&(!that.book.isEmpty())) { return false; } } } return true; } @Override public Struct toStruct() { Struct struct = new Struct(CONNECT_SCHEMA); ConnectableHelper.toArray(struct, "book", this.book); return struct; } @Override public void fromStruct(Struct struct) { this.book = ConnectableHelper.fromArray(struct, "book", BookForm.class); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy