001package io.ebeaninternal.dbmigration.migration; 002 003import javax.xml.bind.annotation.XmlAccessType; 004import javax.xml.bind.annotation.XmlAccessorType; 005import javax.xml.bind.annotation.XmlAttribute; 006import javax.xml.bind.annotation.XmlElement; 007import javax.xml.bind.annotation.XmlType; 008import java.util.ArrayList; 009import java.util.List; 010 011 012/** 013 * <p>Java class for ddl-script complex type. 014 * 015 * <p>The following schema fragment specifies the expected content contained within this class. 016 * 017 * <pre> 018 * <complexType name="ddl-script"> 019 * <complexContent> 020 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 021 * <sequence> 022 * <element name="ddl" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> 023 * </sequence> 024 * <attribute name="platforms" type="{http://www.w3.org/2001/XMLSchema}string" /> 025 * </restriction> 026 * </complexContent> 027 * </complexType> 028 * </pre> 029 */ 030@XmlAccessorType(XmlAccessType.FIELD) 031@XmlType(name = "ddl-script", propOrder = { 032 "ddl" 033}) 034public class DdlScript { 035 036 @XmlElement(required = true) 037 protected List<String> ddl; 038 @XmlAttribute(name = "platforms") 039 protected String platforms; 040 041 /** 042 * Gets the value of the ddl property. 043 * 044 * <p> 045 * This accessor method returns a reference to the live list, 046 * not a snapshot. Therefore any modification you make to the 047 * returned list will be present inside the JAXB object. 048 * This is why there is not a <CODE>set</CODE> method for the ddl property. 049 * 050 * <p> 051 * For example, to add a new item, do as follows: 052 * <pre> 053 * getDdl().add(newItem); 054 * </pre> 055 * 056 * 057 * <p> 058 * Objects of the following type(s) are allowed in the list 059 * {@link String } 060 */ 061 public List<String> getDdl() { 062 if (ddl == null) { 063 ddl = new ArrayList<>(); 064 } 065 return this.ddl; 066 } 067 068 /** 069 * Gets the value of the platforms property. 070 * 071 * @return possible object is 072 * {@link String } 073 */ 074 public String getPlatforms() { 075 return platforms; 076 } 077 078 /** 079 * Sets the value of the platforms property. 080 * 081 * @param value allowed object is 082 * {@link String } 083 */ 084 public void setPlatforms(String value) { 085 this.platforms = value; 086 } 087 088}