View Javadoc

1   /*
2    * $Id$
3    */
4   
5   package org.apache.maven.model;
6   
7     //---------------------------------/
8    //- Imported classes and packages -/
9   //---------------------------------/
10  
11  import java.util.Date;
12  
13  /**
14   * Contains the configuration information of the container like
15   * Plugin.
16   * 
17   * @version $Revision$ $Date$
18   */
19  public class ConfigurationContainer implements java.io.Serializable {
20  
21  
22        //--------------------------/
23       //- Class/Member Variables -/
24      //--------------------------/
25  
26      /**
27       * Whether any configuration should be propagated to child POMs.
28       */
29      private String inherited;
30  
31      /**
32       * The configuration as DOM object.
33       */
34      private Object configuration;
35  
36  
37        //-----------/
38       //- Methods -/
39      //-----------/
40  
41      /**
42       * Get the configuration as DOM object.
43       * 
44       * @return Object
45       */
46      public Object getConfiguration()
47      {
48          return this.configuration;
49      } //-- Object getConfiguration() 
50  
51      /**
52       * Get whether any configuration should be propagated to child
53       * POMs.
54       * 
55       * @return String
56       */
57      public String getInherited()
58      {
59          return this.inherited;
60      } //-- String getInherited() 
61  
62      /**
63       * Set the configuration as DOM object.
64       * 
65       * @param configuration
66       */
67      public void setConfiguration( Object configuration )
68      {
69          this.configuration = configuration;
70      } //-- void setConfiguration( Object ) 
71  
72      /**
73       * Set whether any configuration should be propagated to child
74       * POMs.
75       * 
76       * @param inherited
77       */
78      public void setInherited( String inherited )
79      {
80          this.inherited = inherited;
81      } //-- void setInherited( String ) 
82  
83  
84              
85      private boolean inheritanceApplied = true;
86  
87      public void unsetInheritanceApplied()
88      {
89          this.inheritanceApplied = false;
90      }
91  
92      public boolean isInheritanceApplied()
93      {
94          return inheritanceApplied;
95      }
96              
97            
98      private String modelEncoding = "UTF-8";
99  
100     /**
101      * Set an encoding used for reading/writing the model.
102      *
103      * @param modelEncoding the encoding used when reading/writing the model.
104      */
105     public void setModelEncoding( String modelEncoding )
106     {
107         this.modelEncoding = modelEncoding;
108     }
109 
110     /**
111      * @return the current encoding used when reading/writing this model.
112      */
113     public String getModelEncoding()
114     {
115         return modelEncoding;
116     }
117 }