KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > lifecycle > mapping > Lifecycle


1 package org.apache.maven.lifecycle.mapping;
2
3 /*
4  * Copyright 2001-2005 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 import java.util.ArrayList JavaDoc;
20 import java.util.List JavaDoc;
21 import java.util.Map JavaDoc;
22
23 /**
24  * Class Lifecycle.
25  */

26 public class Lifecycle
27 {
28     /**
29      * Field id
30      */

31     private String JavaDoc id;
32
33     /**
34      * Field phases
35      */

36     private Map JavaDoc phases;
37     
38     private List JavaDoc optionalMojos = new ArrayList JavaDoc();
39
40     /**
41      * Method getId
42      */

43     public String JavaDoc getId()
44     {
45         return this.id;
46     } //-- String getId()
47

48     /**
49      * Method getPhases
50      */

51     public Map JavaDoc getPhases()
52     {
53         return this.phases;
54     }
55
56     /**
57      * Method setId
58      *
59      * @param id
60      */

61     public void setId( String JavaDoc id )
62     {
63         this.id = id;
64     } //-- void setId(String)
65

66     public void addOptionalMojo( String JavaDoc optionalMojo )
67     {
68         this.optionalMojos.add( optionalMojo );
69     }
70     
71     public void setOptionalMojos( List JavaDoc optionalMojos )
72     {
73         this.optionalMojos = optionalMojos;
74     }
75     
76     public List JavaDoc getOptionalMojos()
77     {
78         return this.optionalMojos;
79     }
80 }
81
Popular Tags