View Javadoc
1   /*
2    * Copyright (c) 2002-2025, City of Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.pluginwizard.service.generator;
35  
36  import java.util.ArrayList;
37  import java.util.List;
38  
39  /**
40   * GeneratorsList
41   */
42  public class GenerationScheme
43  {
44      private String _strName;
45      private String _strCoreVersion;
46      private List<Generator> _listGenerators;
47      private boolean _bIsDefault = false;
48      private boolean _bIsWorkflow = false;
49  
50      /**
51       * @return the _strName
52       */
53      public String getName( )
54      {
55          return _strName;
56      }
57  
58      /**
59       * @param strName
60       *            the _strName to set
61       */
62      public void setName( String strName )
63      {
64          _strName = strName;
65      }
66  
67      /**
68       * @return the _strCoreVersion
69       */
70      public String getCoreVersion( )
71      {
72          return _strCoreVersion;
73      }
74  
75      /**
76       * @param strCoreVersion
77       *            the _strCoreVersion to set
78       */
79      public void setCoreVersion( String strCoreVersion )
80      {
81          _strCoreVersion = strCoreVersion;
82      }
83  
84      /**
85       * @return the _generatorsList
86       */
87      public List<Generator> getGeneratorsList( )
88      {
89          if ( _listGenerators != null )
90          {
91              return (List<Generator>) ( ( (ArrayList<Generator>) _listGenerators ).clone( ) );
92          }
93          else
94          {
95              return null;
96          }
97      }
98  
99      /**
100      * @param generatorsList
101      *            the _generatorsList to set
102      */
103     public void setGeneratorsList( List<Generator> generatorsList )
104     {
105         if ( generatorsList != null )
106         {
107             _listGenerators = (List<Generator>) ( ( (ArrayList<Generator>) generatorsList ).clone( ) );
108         }
109         else
110         {
111             _listGenerators = null;
112         }
113     }
114 
115     /**
116      * get is default
117      * 
118      * @return true if default
119      */
120     public boolean isDefault( )
121     {
122         return _bIsDefault;
123     }
124 
125     /**
126      * set is default
127      * 
128      * @param _bIsDefault
129      */
130     public void setIsDefault( boolean bIsDefault )
131     {
132         this._bIsDefault = bIsDefault;
133     }
134 
135        /**
136      * get is workflow schema
137      * 
138      * @return true if it's a workflow schema
139      */
140     public boolean isWorkflow( )
141     {
142         return _bIsWorkflow;
143     }
144 
145     /**
146      * set is workflow schema
147      * 
148      * @param _bIsWorkflow
149      */
150     public void setIsWorkflow( boolean bIsWorkflow )
151     {
152         this._bIsWorkflow = bIsWorkflow;
153     }
154 
155 }