View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.9.2-SNAPSHOT,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.codehaus.modello.test.features;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.codehaus.modello.test.features.other.PackageNameFeature;
15  import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
16  
17  /**
18   * <code>&lt;field xml.transient="true"&gt;</code>: fields marked
19   * as transient are ignored by
20   *       parsers and writers, they hold runtime state that should
21   * not be persisted.
22   *       
23   * 
24   * @version $Revision$ $Date$
25   */
26  @SuppressWarnings( "all" )
27  public class XmlTransientFields
28      implements java.io.Serializable
29  {
30  
31        //--------------------------/
32       //- Class/Member Variables -/
33      //--------------------------/
34  
35      /**
36       * Field persistentField.
37       */
38      private String persistentField;
39  
40      /**
41       * Field transientString.
42       */
43      private String transientString;
44  
45      /**
46       * Field transientStringList.
47       */
48      private java.util.List<String> transientStringList;
49  
50  
51        //-----------/
52       //- Methods -/
53      //-----------/
54  
55      /**
56       * Method addTransientStringList.
57       * 
58       * @param string
59       */
60      public void addTransientStringList( String string )
61      {
62          getTransientStringList().add( string );
63      } //-- void addTransientStringList( String )
64  
65      /**
66       * Get the persistentField field.
67       * 
68       * @return String
69       */
70      public String getPersistentField()
71      {
72          return this.persistentField;
73      } //-- String getPersistentField()
74  
75      /**
76       * Get the transientString field.
77       * 
78       * @return String
79       */
80      public String getTransientString()
81      {
82          return this.transientString;
83      } //-- String getTransientString()
84  
85      /**
86       * Method getTransientStringList.
87       * 
88       * @return List
89       */
90      public java.util.List<String> getTransientStringList()
91      {
92          if ( this.transientStringList == null )
93          {
94              this.transientStringList = new java.util.ArrayList<String>();
95          }
96  
97          return this.transientStringList;
98      } //-- java.util.List<String> getTransientStringList()
99  
100     /**
101      * Method removeTransientStringList.
102      * 
103      * @param string
104      */
105     public void removeTransientStringList( String string )
106     {
107         getTransientStringList().remove( string );
108     } //-- void removeTransientStringList( String )
109 
110     /**
111      * Set the persistentField field.
112      * 
113      * @param persistentField
114      */
115     public void setPersistentField( String persistentField )
116     {
117         this.persistentField = persistentField;
118     } //-- void setPersistentField( String )
119 
120     /**
121      * Set the transientString field.
122      * 
123      * @param transientString
124      */
125     public void setTransientString( String transientString )
126     {
127         this.transientString = transientString;
128     } //-- void setTransientString( String )
129 
130     /**
131      * Set the transientStringList field.
132      * 
133      * @param transientStringList
134      */
135     public void setTransientStringList( java.util.List<String> transientStringList )
136     {
137         this.transientStringList = transientStringList;
138     } //-- void setTransientStringList( java.util.List )
139 
140 }