1 package org.apache.maven.lifecycle; 2 3 18 19 import java.util.ArrayList ; 20 import java.util.List ; 21 import java.util.Map ; 22 23 26 public class Lifecycle 27 { 28 31 private String id; 32 33 36 private List phases; 37 38 41 private Map defaultPhases; 42 43 48 public void addPhase( String phase ) 49 { 50 getPhases().add( phase ); 51 } 53 56 public String getId() 57 { 58 return this.id; 59 } 61 64 public List getPhases() 65 { 66 if ( this.phases == null ) 67 { 68 this.phases = new ArrayList (); 69 } 70 71 return this.phases; 72 } 74 79 public void setId( String id ) 80 { 81 this.id = id; 82 } 84 89 public void setPhases( List phases ) 90 { 91 this.phases = phases; 92 } 94 public Map getDefaultPhases() 95 { 96 return defaultPhases; 97 } 98 } 99 | Popular Tags |