1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello 1.0.1 on 2011-09-14 22:12:56,
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.codehaus.mojo.javascript.assembler;
9
10 /**
11 *
12 *
13 * Merge multiple source scripts into a target script.
14 *
15 *
16 *
17 * @version $Revision$ $Date$
18 */
19 public class Script
20 implements java.io.Serializable
21 {
22
23 //--------------------------/
24 //- Class/Member Variables -/
25 //--------------------------/
26
27 /**
28 *
29 * The script to be created by the merge.
30 *
31 */
32 private String fileName;
33
34 /**
35 * Field includes.
36 */
37 private java.util.List/*<String>*/ includes;
38
39
40 //-----------/
41 //- Methods -/
42 //-----------/
43
44 /**
45 * Method addInclude.
46 *
47 * @param string
48 */
49 public void addInclude( String string )
50 {
51 if ( !(string instanceof String) )
52 {
53 throw new ClassCastException( "Script.addIncludes(string) parameter must be instanceof " + String.class.getName() );
54 }
55 getIncludes().add( string );
56 } //-- void addInclude( String )
57
58 /**
59 * Get the script to be created by the merge.
60 *
61 * @return String
62 */
63 public String getFileName()
64 {
65 return this.fileName;
66 } //-- String getFileName()
67
68 /**
69 * Method getIncludes.
70 *
71 * @return List
72 */
73 public java.util.List/*<String>*/ getIncludes()
74 {
75 if ( this.includes == null )
76 {
77 this.includes = new java.util.ArrayList/*<String>*/();
78 }
79
80 return this.includes;
81 } //-- java.util.List/*<String>*/ getIncludes()
82
83 /**
84 * Method removeInclude.
85 *
86 * @param string
87 */
88 public void removeInclude( String string )
89 {
90 if ( !(string instanceof String) )
91 {
92 throw new ClassCastException( "Script.removeIncludes(string) parameter must be instanceof " + String.class.getName() );
93 }
94 getIncludes().remove( string );
95 } //-- void removeInclude( String )
96
97 /**
98 * Set the script to be created by the merge.
99 *
100 * @param fileName
101 */
102 public void setFileName( String fileName )
103 {
104 this.fileName = fileName;
105 } //-- void setFileName( String )
106
107 /**
108 * Set this is a list of <include/> subelements, each
109 * containing a
110 * source script reference. Scripts matching these
111 * elements will be
112 * merged in the target script, in the order they
113 * are configured.
114 *
115 * @param includes
116 */
117 public void setIncludes( java.util.List/*<String>*/ includes )
118 {
119 this.includes = includes;
120 } //-- void setIncludes( java.util.List )
121
122
123 }