001package io.ebeaninternal.extraddl.model; 002 003import javax.xml.bind.annotation.XmlAccessType; 004import javax.xml.bind.annotation.XmlAccessorType; 005import javax.xml.bind.annotation.XmlElement; 006import javax.xml.bind.annotation.XmlRootElement; 007import javax.xml.bind.annotation.XmlType; 008import java.util.ArrayList; 009import java.util.List; 010 011 012/** 013 * <p>Java class for anonymous complex type. 014 * <p> 015 * <p>The following schema fragment specifies the expected content contained within this class. 016 * <p> 017 * <pre> 018 * <complexType> 019 * <complexContent> 020 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 021 * <sequence> 022 * <element ref="{http://ebean-orm.github.io/xml/ns/extraddl}ddl-script" maxOccurs="unbounded"/> 023 * </sequence> 024 * </restriction> 025 * </complexContent> 026 * </complexType> 027 * </pre> 028 */ 029@XmlAccessorType(XmlAccessType.FIELD) 030@XmlType(name = "", propOrder = { 031 "ddlScript" 032}) 033@XmlRootElement(name = "extra-ddl") 034public class ExtraDdl { 035 036 @XmlElement(name = "ddl-script", required = true) 037 protected List<DdlScript> ddlScript; 038 039 /** 040 * Gets the value of the ddlScript property. 041 * <p> 042 * <p> 043 * This accessor method returns a reference to the live list, 044 * not a snapshot. Therefore any modification you make to the 045 * returned list will be present inside the JAXB object. 046 * This is why there is not a <CODE>set</CODE> method for the ddlScript property. 047 * <p> 048 * <p> 049 * For example, to add a new item, do as follows: 050 * <pre> 051 * getDdlScript().add(newItem); 052 * </pre> 053 * <p> 054 * <p> 055 * <p> 056 * Objects of the following type(s) are allowed in the list 057 * {@link DdlScript } 058 */ 059 public List<DdlScript> getDdlScript() { 060 if (ddlScript == null) { 061 ddlScript = new ArrayList<>(); 062 } 063 return this.ddlScript; 064 } 065 066}