001/*
002 =================== DO NOT EDIT THIS FILE ====================
003 Generated by Modello 1.9.0-SNAPSHOT,
004 any modifications will be overwritten.
005 ==============================================================
006 */
007
008package org.codehaus.modello.test.features;
009
010  //---------------------------------/
011 //- Imported classes and packages -/
012//---------------------------------/
013
014import org.codehaus.modello.test.features.other.PackageNameFeature;
015import org.codehaus.modello.test.features.other.SubInterfaceInPackage;
016
017/**
018 * <code>&lt;field xml.transient="true"&gt;</code>: fields marked
019 * as transient are ignored by
020 *       parsers and writers, they hold runtime state that should
021 * not be persisted.
022 *       
023 * 
024 * @version $Revision$ $Date$
025 */
026@SuppressWarnings( "all" )
027public class XmlTransientFields
028    implements java.io.Serializable
029{
030
031      //--------------------------/
032     //- Class/Member Variables -/
033    //--------------------------/
034
035    /**
036     * Field persistentField.
037     */
038    private String persistentField;
039
040    /**
041     * Field transientString.
042     */
043    private String transientString;
044
045    /**
046     * Field transientStringList.
047     */
048    private java.util.List<String> transientStringList;
049
050
051      //-----------/
052     //- Methods -/
053    //-----------/
054
055    /**
056     * Method addTransientStringList.
057     * 
058     * @param string
059     */
060    public void addTransientStringList( String string )
061    {
062        getTransientStringList().add( string );
063    } //-- void addTransientStringList( String )
064
065    /**
066     * Get the persistentField field.
067     * 
068     * @return String
069     */
070    public String getPersistentField()
071    {
072        return this.persistentField;
073    } //-- String getPersistentField()
074
075    /**
076     * Get the transientString field.
077     * 
078     * @return String
079     */
080    public String getTransientString()
081    {
082        return this.transientString;
083    } //-- String getTransientString()
084
085    /**
086     * Method getTransientStringList.
087     * 
088     * @return List
089     */
090    public java.util.List<String> getTransientStringList()
091    {
092        if ( this.transientStringList == null )
093        {
094            this.transientStringList = new java.util.ArrayList<String>();
095        }
096
097        return this.transientStringList;
098    } //-- java.util.List<String> getTransientStringList()
099
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}