Coverage Report - org.apache.maven.model.ActivationFile
 
Classes in this File Line Coverage Branch Coverage Complexity
ActivationFile
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 file specification used to activate the profile. The
 15  
  * missing value
 16  
  *         will be the location of a file that needs to exist, and
 17  
  * if it doesn't the profile will be
 18  
  *         activated. On the other hand exists will test for the
 19  
  * existence of the file and if it is
 20  
  *         there the profile will be activated.
 21  
  * 
 22  
  * @version $Revision$ $Date$
 23  
  */
 24  0
 public class ActivationFile implements java.io.Serializable {
 25  
 
 26  
 
 27  
       //--------------------------/
 28  
      //- Class/Member Variables -/
 29  
     //--------------------------/
 30  
 
 31  
     /**
 32  
      * The name of the file that must be missing to activate the
 33  
      *           profile.
 34  
      */
 35  
     private String missing;
 36  
 
 37  
     /**
 38  
      * The name of the file that must exist to activate the profile.
 39  
      */
 40  
     private String exists;
 41  
 
 42  
 
 43  
       //-----------/
 44  
      //- Methods -/
 45  
     //-----------/
 46  
 
 47  
     /**
 48  
      * Get the name of the file that must exist to activate the
 49  
      * profile.
 50  
      * 
 51  
      * @return String
 52  
      */
 53  
     public String getExists()
 54  
     {
 55  0
         return this.exists;
 56  
     } //-- String getExists() 
 57  
 
 58  
     /**
 59  
      * Get the name of the file that must be missing to activate
 60  
      * the
 61  
      *           profile.
 62  
      * 
 63  
      * @return String
 64  
      */
 65  
     public String getMissing()
 66  
     {
 67  0
         return this.missing;
 68  
     } //-- String getMissing() 
 69  
 
 70  
     /**
 71  
      * Set the name of the file that must exist to activate the
 72  
      * profile.
 73  
      * 
 74  
      * @param exists
 75  
      */
 76  
     public void setExists( String exists )
 77  
     {
 78  0
         this.exists = exists;
 79  0
     } //-- void setExists( String ) 
 80  
 
 81  
     /**
 82  
      * Set the name of the file that must be missing to activate
 83  
      * the
 84  
      *           profile.
 85  
      * 
 86  
      * @param missing
 87  
      */
 88  
     public void setMissing( String missing )
 89  
     {
 90  0
         this.missing = missing;
 91  0
     } //-- void setMissing( String ) 
 92  
 
 93  
 
 94  0
     private String modelEncoding = "UTF-8";
 95  
 
 96  
     /**
 97  
      * Set an encoding used for reading/writing the model.
 98  
      *
 99  
      * @param modelEncoding the encoding used when reading/writing the model.
 100  
      */
 101  
     public void setModelEncoding( String modelEncoding )
 102  
     {
 103  0
         this.modelEncoding = modelEncoding;
 104  0
     }
 105  
 
 106  
     /**
 107  
      * @return the current encoding used when reading/writing this model.
 108  
      */
 109  
     public String getModelEncoding()
 110  
     {
 111  0
         return modelEncoding;
 112  
     }
 113  
 }