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