1 // =================== DO NOT EDIT THIS FILE ====================
2 // Generated by Modello 2.4.0,
3 // any modifications will be overwritten.
4 // ==============================================================
5
6 package org.codehaus.mojo.taglist.options;
7
8 /**
9 * The options for the specific tag class.
10 *
11 * @version $Revision$ $Date$
12 */
13 @SuppressWarnings( "all" )
14 public class TagClass
15 implements java.io.Serializable
16 {
17
18 //--------------------------/
19 //- Class/Member Variables -/
20 //--------------------------/
21
22 /**
23 * The name to display for this tag class in the output HTML.
24 */
25 private String displayName;
26
27 /**
28 * Field tags.
29 */
30 private java.util.List<Tag> tags;
31
32
33 //-----------/
34 //- Methods -/
35 //-----------/
36
37 /**
38 * Method addTag.
39 *
40 * @param tag a tag object.
41 */
42 public void addTag( Tag tag )
43 {
44 getTags().add( tag );
45 } //-- void addTag( Tag )
46
47 /**
48 * Get the name to display for this tag class in the output
49 * HTML.
50 *
51 * @return String
52 */
53 public String getDisplayName()
54 {
55 return this.displayName;
56 } //-- String getDisplayName()
57
58 /**
59 * Method getTags.
60 *
61 * @return List
62 */
63 public java.util.List<Tag> getTags()
64 {
65 if ( this.tags == null )
66 {
67 this.tags = new java.util.ArrayList<Tag>();
68 }
69
70 return this.tags;
71 } //-- java.util.List<Tag> getTags()
72
73 /**
74 * Method removeTag.
75 *
76 * @param tag a tag object.
77 */
78 public void removeTag( Tag tag )
79 {
80 getTags().remove( tag );
81 } //-- void removeTag( Tag )
82
83 /**
84 * Set the name to display for this tag class in the output
85 * HTML.
86 *
87 * @param displayName a displayName object.
88 */
89 public void setDisplayName( String displayName )
90 {
91 this.displayName = displayName;
92 } //-- void setDisplayName( String )
93
94 /**
95 * Set the tags field.
96 *
97 * @param tags a tags object.
98 */
99 public void setTags( java.util.List<Tag> tags )
100 {
101 this.tags = tags;
102 } //-- void setTags( java.util.List )
103
104 }