Coverage Report - org.apache.maven.settings.ActivationProperty
 
Classes in this File Line Coverage Branch Coverage Complexity
ActivationProperty
0%
0/11
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.settings;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * 
 15  
  *         
 16  
  *         This is the property specification used to activate a
 17  
  * profile. If the value field is empty,
 18  
  *         then the existence of the named property will activate
 19  
  * the profile, otherwise it does a case-sensitive
 20  
  *         match against the property value as well.
 21  
  *         
 22  
  *       
 23  
  * 
 24  
  * @version $Revision$ $Date$
 25  
  */
 26  0
 public class ActivationProperty implements java.io.Serializable {
 27  
 
 28  
 
 29  
       //--------------------------/
 30  
      //- Class/Member Variables -/
 31  
     //--------------------------/
 32  
 
 33  
     /**
 34  
      * 
 35  
      *             The name of the property to be used to activate
 36  
      * a profile.
 37  
      *           
 38  
      */
 39  
     private String name;
 40  
 
 41  
     /**
 42  
      * 
 43  
      *             The value of the property to be used to activate
 44  
      * a profile.
 45  
      *           
 46  
      */
 47  
     private String value;
 48  
 
 49  
 
 50  
       //-----------/
 51  
      //- Methods -/
 52  
     //-----------/
 53  
 
 54  
     /**
 55  
      * Get 
 56  
      *             The name of the property to be used to activate
 57  
      * a profile.
 58  
      *           
 59  
      * 
 60  
      * @return String
 61  
      */
 62  
     public String getName()
 63  
     {
 64  0
         return this.name;
 65  
     } //-- String getName() 
 66  
 
 67  
     /**
 68  
      * Get 
 69  
      *             The value of the property to be used to activate
 70  
      * a profile.
 71  
      *           
 72  
      * 
 73  
      * @return String
 74  
      */
 75  
     public String getValue()
 76  
     {
 77  0
         return this.value;
 78  
     } //-- String getValue() 
 79  
 
 80  
     /**
 81  
      * Set 
 82  
      *             The name of the property to be used to activate
 83  
      * a profile.
 84  
      *           
 85  
      * 
 86  
      * @param name
 87  
      */
 88  
     public void setName( String name )
 89  
     {
 90  0
         this.name = name;
 91  0
     } //-- void setName( String ) 
 92  
 
 93  
     /**
 94  
      * Set 
 95  
      *             The value of the property to be used to activate
 96  
      * a profile.
 97  
      *           
 98  
      * 
 99  
      * @param value
 100  
      */
 101  
     public void setValue( String value )
 102  
     {
 103  0
         this.value = value;
 104  0
     } //-- void setValue( String ) 
 105  
 
 106  
 
 107  0
     private String modelEncoding = "UTF-8";
 108  
 
 109  
     /**
 110  
      * Set an encoding used for reading/writing the model.
 111  
      *
 112  
      * @param modelEncoding the encoding used when reading/writing the model.
 113  
      */
 114  
     public void setModelEncoding( String modelEncoding )
 115  
     {
 116  0
         this.modelEncoding = modelEncoding;
 117  0
     }
 118  
 
 119  
     /**
 120  
      * @return the current encoding used when reading/writing this model.
 121  
      */
 122  
     public String getModelEncoding()
 123  
     {
 124  0
         return modelEncoding;
 125  
     }
 126  
 }