001package io.ebeaninternal.extraddl.model;
002
003import javax.xml.bind.annotation.XmlAccessType;
004import javax.xml.bind.annotation.XmlAccessorType;
005import javax.xml.bind.annotation.XmlAttribute;
006import javax.xml.bind.annotation.XmlRootElement;
007import javax.xml.bind.annotation.XmlType;
008import javax.xml.bind.annotation.XmlValue;
009
010
011/**
012 * <p>Java class for anonymous complex type.
013 * <p>
014 * <p>The following schema fragment specifies the expected content contained within this class.
015 * <p>
016 * <pre>
017 * &lt;complexType>
018 *   &lt;simpleContent>
019 *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
020 *       &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
021 *       &lt;attribute name="platforms" type="{http://www.w3.org/2001/XMLSchema}string" />
022 *     &lt;/extension>
023 *   &lt;/simpleContent>
024 * &lt;/complexType>
025 * </pre>
026 */
027@XmlAccessorType(XmlAccessType.FIELD)
028@XmlType(name = "", propOrder = {
029  "value"
030})
031@XmlRootElement(name = "ddl-script")
032public class DdlScript {
033
034  @XmlValue
035  protected String value;
036  @XmlAttribute(name = "name", required = true)
037  protected String name;
038  @XmlAttribute(name = "platforms")
039  protected String platforms;
040  @XmlAttribute(name = "drop")
041  protected boolean drop;
042  @XmlAttribute(name = "init")
043  protected boolean init;
044  /**
045   * Gets the value of the value property.
046   *
047   * @return possible object is
048   * {@link String }
049   */
050  public String getValue() {
051    return value;
052  }
053
054  /**
055   * Sets the value of the value property.
056   *
057   * @param value allowed object is
058   *              {@link String }
059   */
060  public void setValue(String value) {
061    this.value = value;
062  }
063
064  /**
065   * Gets the value of the name property.
066   *
067   * @return possible object is
068   * {@link String }
069   */
070  public String getName() {
071    return name;
072  }
073
074  /**
075   * Sets the value of the name property.
076   *
077   * @param value allowed object is
078   *              {@link String }
079   */
080  public void setName(String value) {
081    this.name = value;
082  }
083
084  /**
085   * Gets the value of the platforms property.
086   *
087   * @return possible object is
088   * {@link String }
089   */
090  public String getPlatforms() {
091    return platforms;
092  }
093
094  /**
095   * Sets the value of the platforms property.
096   *
097   * @param value allowed object is
098   *              {@link String }
099   */
100  public void setPlatforms(String value) {
101    this.platforms = value;
102  }
103
104  /**
105   * Return if this a drop script.
106   */
107  public boolean isDrop() {
108    return drop;
109  }
110
111  /**
112   * Sets that this is a drop script.
113   */
114  public void setDrop(boolean drop) {
115    this.drop = drop;
116  }
117
118  /**
119   * Return if this a init script.
120   */
121  public boolean isInit() {
122    return init;
123  }
124
125  /**
126   * Sets that this is a init script.
127   */
128  public void setInit(boolean init) {
129    this.init = init;
130  }
131}