Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
Component |
|
| 1.0;1 |
1 | /* |
|
2 | * $Id$ |
|
3 | */ |
|
4 | ||
5 | package org.apache.maven.plugin.tools.model; |
|
6 | ||
7 | //---------------------------------/ |
|
8 | //- Imported classes and packages -/ |
|
9 | //---------------------------------/ |
|
10 | ||
11 | import java.util.Date; |
|
12 | ||
13 | /** |
|
14 | * |
|
15 | * A reference to a plexus component, assumed to be |
|
16 | * available to the plugin container. |
|
17 | * |
|
18 | * |
|
19 | * @version $Revision$ $Date$ |
|
20 | */ |
|
21 | 0 | public class Component implements java.io.Serializable { |
22 | ||
23 | ||
24 | //--------------------------/ |
|
25 | //- Class/Member Variables -/ |
|
26 | //--------------------------/ |
|
27 | ||
28 | /** |
|
29 | * Field role |
|
30 | */ |
|
31 | private String role; |
|
32 | ||
33 | /** |
|
34 | * Field hint |
|
35 | */ |
|
36 | private String hint; |
|
37 | ||
38 | ||
39 | //-----------/ |
|
40 | //- Methods -/ |
|
41 | //-----------/ |
|
42 | ||
43 | /** |
|
44 | * Get The role-hint to lookup. |
|
45 | */ |
|
46 | public String getHint() |
|
47 | { |
|
48 | 0 | return this.hint; |
49 | } //-- String getHint() |
|
50 | ||
51 | /** |
|
52 | * Get The component role to lookup. |
|
53 | */ |
|
54 | public String getRole() |
|
55 | { |
|
56 | 0 | return this.role; |
57 | } //-- String getRole() |
|
58 | ||
59 | /** |
|
60 | * Set The role-hint to lookup. |
|
61 | * |
|
62 | * @param hint |
|
63 | */ |
|
64 | public void setHint(String hint) |
|
65 | { |
|
66 | 0 | this.hint = hint; |
67 | 0 | } //-- void setHint(String) |
68 | ||
69 | /** |
|
70 | * Set The component role to lookup. |
|
71 | * |
|
72 | * @param role |
|
73 | */ |
|
74 | public void setRole(String role) |
|
75 | { |
|
76 | 0 | this.role = role; |
77 | 0 | } //-- void setRole(String) |
78 | ||
79 | ||
80 | 0 | private String modelEncoding = "UTF-8"; |
81 | ||
82 | public void setModelEncoding( String modelEncoding ) |
|
83 | { |
|
84 | 0 | this.modelEncoding = modelEncoding; |
85 | 0 | } |
86 | ||
87 | public String getModelEncoding() |
|
88 | { |
|
89 | 0 | return modelEncoding; |
90 | }} |