View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2007.08.06 at 08:17:38 PM MSD 
6   //
7   
8   
9   package org.riverock.dbrevision.annotation.schema.db;
10  
11  import java.util.ArrayList;
12  import java.util.List;
13  import javax.xml.bind.annotation.XmlAccessType;
14  import javax.xml.bind.annotation.XmlAccessorType;
15  import javax.xml.bind.annotation.XmlAttribute;
16  import javax.xml.bind.annotation.XmlElement;
17  import javax.xml.bind.annotation.XmlElements;
18  import javax.xml.bind.annotation.XmlRootElement;
19  import javax.xml.bind.annotation.XmlType;
20  
21  
22  /**
23   * <p>Java class for anonymous complex type.
24   * 
25   * <p>The following schema fragment specifies the expected content contained within this class.
26   * 
27   * <pre>
28   * &lt;complexType>
29   *   &lt;complexContent>
30   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31   *       &lt;sequence>
32   *         &lt;element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
33   *         &lt;element name="PreviousName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
34   *         &lt;element ref="{}Validator" minOccurs="0"/>
35   *         &lt;choice maxOccurs="unbounded" minOccurs="0">
36   *           &lt;element ref="{}Action"/>
37   *           &lt;element ref="{}CustomClassAction"/>
38   *           &lt;element ref="{}SqlAction"/>
39   *           &lt;element ref="{}AddTableFieldAction"/>
40   *           &lt;element ref="{}TableData"/>
41   *           &lt;element name="Table" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbTable"/>
42   *           &lt;element name="Sequence" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbSequence"/>
43   *           &lt;element name="ForeignKey" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbForeignKey"/>
44   *           &lt;element name="Index" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbIndex"/>
45   *           &lt;element name="PrimaryKey" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbPrimaryKey"/>
46   *           &lt;element name="View" type="{http://dbrevision.sourceforge.net/xsd/dbrevision-structure.xsd}DbView"/>
47   *         &lt;/choice>
48   *       &lt;/sequence>
49   *       &lt;attribute name="isProcessed" type="{http://www.w3.org/2001/XMLSchema}boolean" />
50   *     &lt;/restriction>
51   *   &lt;/complexContent>
52   * &lt;/complexType>
53   * </pre>
54   * 
55   * 
56   */
57  @XmlAccessorType(XmlAccessType.FIELD)
58  @XmlType(name = "", propOrder = {
59      "name",
60      "previousName",
61      "validator",
62      "actionOrCustomClassActionOrSqlAction"
63  })
64  @XmlRootElement(name = "Patch", namespace = "")
65  public class Patch {
66  
67      @XmlElement(name = "Name", required = true)
68      protected String name;
69      @XmlElement(name = "PreviousName")
70      protected String previousName;
71      @XmlElement(name = "Validator")
72      protected Validator validator;
73      @XmlElements({
74          @XmlElement(name = "View", type = DbView.class),
75          @XmlElement(name = "TableData", type = TableData.class),
76          @XmlElement(name = "ForeignKey", type = DbForeignKey.class),
77          @XmlElement(name = "PrimaryKey", type = DbPrimaryKey.class),
78          @XmlElement(name = "Index", type = DbIndex.class),
79          @XmlElement(name = "Table", type = DbTable.class),
80          @XmlElement(name = "Action", type = Action.class),
81          @XmlElement(name = "Sequence", type = DbSequence.class),
82          @XmlElement(name = "SqlAction", type = SqlAction.class),
83          @XmlElement(name = "CustomClassAction", type = CustomClassAction.class),
84          @XmlElement(name = "AddTableFieldAction", type = AddTableFieldAction.class)
85      })
86      protected List<Object> actionOrCustomClassActionOrSqlAction;
87      @XmlAttribute(name = "isProcessed")
88      protected Boolean processed;
89  
90      /**
91       * Gets the value of the name property.
92       * 
93       * @return
94       *     possible object is
95       *     {@link String }
96       *     
97       */
98      public String getName() {
99          return name;
100     }
101 
102     /**
103      * Sets the value of the name property.
104      * 
105      * @param value
106      *     allowed object is
107      *     {@link String }
108      *     
109      */
110     public void setName(String value) {
111         this.name = value;
112     }
113 
114     /**
115      * Gets the value of the previousName property.
116      * 
117      * @return
118      *     possible object is
119      *     {@link String }
120      *     
121      */
122     public String getPreviousName() {
123         return previousName;
124     }
125 
126     /**
127      * Sets the value of the previousName property.
128      * 
129      * @param value
130      *     allowed object is
131      *     {@link String }
132      *     
133      */
134     public void setPreviousName(String value) {
135         this.previousName = value;
136     }
137 
138     /**
139      * Gets the value of the validator property.
140      * 
141      * @return
142      *     possible object is
143      *     {@link Validator }
144      *     
145      */
146     public Validator getValidator() {
147         return validator;
148     }
149 
150     /**
151      * Sets the value of the validator property.
152      * 
153      * @param value
154      *     allowed object is
155      *     {@link Validator }
156      *     
157      */
158     public void setValidator(Validator value) {
159         this.validator = value;
160     }
161 
162     /**
163      * Gets the value of the actionOrCustomClassActionOrSqlAction property.
164      * 
165      * <p>
166      * This accessor method returns a reference to the live list,
167      * not a snapshot. Therefore any modification you make to the
168      * returned list will be present inside the JAXB object.
169      * This is why there is not a <CODE>set</CODE> method for the actionOrCustomClassActionOrSqlAction property.
170      * 
171      * <p>
172      * For example, to add a new item, do as follows:
173      * <pre>
174      *    getActionOrCustomClassActionOrSqlAction().add(newItem);
175      * </pre>
176      * 
177      * 
178      * <p>
179      * Objects of the following type(s) are allowed in the list
180      * {@link DbView }
181      * {@link TableData }
182      * {@link DbForeignKey }
183      * {@link DbPrimaryKey }
184      * {@link DbIndex }
185      * {@link DbTable }
186      * {@link Action }
187      * {@link DbSequence }
188      * {@link SqlAction }
189      * {@link CustomClassAction }
190      * {@link AddTableFieldAction }
191      * 
192      * 
193      */
194     public List<Object> getActionOrCustomClassActionOrSqlAction() {
195         if (actionOrCustomClassActionOrSqlAction == null) {
196             actionOrCustomClassActionOrSqlAction = new ArrayList<Object>();
197         }
198         return this.actionOrCustomClassActionOrSqlAction;
199     }
200 
201     /**
202      * Gets the value of the processed property.
203      * 
204      * @return
205      *     possible object is
206      *     {@link Boolean }
207      *     
208      */
209     public Boolean isProcessed() {
210         return processed;
211     }
212 
213     /**
214      * Sets the value of the processed property.
215      * 
216      * @param value
217      *     allowed object is
218      *     {@link Boolean }
219      *     
220      */
221     public void setProcessed(Boolean value) {
222         this.processed = value;
223     }
224 
225 }