Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Tag |
|
| 1.0;1 |
1 | package org.kuali.maven.mojo.s3; | |
2 | ||
3 | /** | |
4 | * Lightweight pojo for helping generate html. | |
5 | */ | |
6 | public class Tag { | |
7 | ||
8 | /** | |
9 | * The html tag name. | |
10 | */ | |
11 | private String name; | |
12 | ||
13 | /** | |
14 | * The html id. | |
15 | */ | |
16 | private String id; | |
17 | ||
18 | /** | |
19 | * The html class. | |
20 | */ | |
21 | private String clazz; | |
22 | ||
23 | /** | |
24 | * No args constructor. | |
25 | */ | |
26 | public Tag() { | |
27 | 1 | this(null); |
28 | 1 | } |
29 | ||
30 | /** | |
31 | * @param newName | |
32 | * the newName to set | |
33 | */ | |
34 | public Tag(final String newName) { | |
35 | 1 | this(newName, null); |
36 | 1 | } |
37 | ||
38 | /** | |
39 | * @param newName | |
40 | * the newName to set | |
41 | * @param newClazz | |
42 | * the newClazz to set | |
43 | */ | |
44 | public Tag(final String newName, final String newClazz) { | |
45 | 1 | this(newName, newClazz, null); |
46 | 1 | } |
47 | ||
48 | /** | |
49 | * @param newName | |
50 | * the newName to set | |
51 | * @param newClazz | |
52 | * the newClazz to set | |
53 | * @param newId | |
54 | * the newId to set | |
55 | */ | |
56 | public Tag(final String newName, final String newClazz, final String newId) { | |
57 | 1 | super(); |
58 | 1 | this.name = newName; |
59 | 1 | this.id = newId; |
60 | 1 | this.clazz = newClazz; |
61 | 1 | } |
62 | ||
63 | /** | |
64 | * @return the name | |
65 | */ | |
66 | public final String getName() { | |
67 | 0 | return name; |
68 | } | |
69 | ||
70 | /** | |
71 | * @param newName | |
72 | * the newName to set | |
73 | */ | |
74 | public final void setName(final String newName) { | |
75 | 0 | this.name = newName; |
76 | 0 | } |
77 | ||
78 | /** | |
79 | * @return the id | |
80 | */ | |
81 | public final String getId() { | |
82 | 1 | return id; |
83 | } | |
84 | ||
85 | /** | |
86 | * @param newId | |
87 | * the newId to set | |
88 | */ | |
89 | public final void setId(final String newId) { | |
90 | 1 | this.id = newId; |
91 | 1 | } |
92 | ||
93 | /** | |
94 | * @return the clazz | |
95 | */ | |
96 | public final String getClazz() { | |
97 | 0 | return clazz; |
98 | } | |
99 | ||
100 | /** | |
101 | * @param newClazz | |
102 | * the newClazz to set | |
103 | */ | |
104 | public final void setClazz(final String newClazz) { | |
105 | 0 | this.clazz = newClazz; |
106 | 0 | } |
107 | } |