Coverage Report - org.apache.maven.plugins.changes.model.Component
 
Classes in this File Line Coverage Branch Coverage Complexity
Component
0%
0/20
0%
0/6
1,625
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.0.1 on 2012-09-11 21:40:40,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.plugins.changes.model;
 9  
 
 10  
 /**
 11  
  * 
 12  
  *         A component as a part of current release.
 13  
  *       
 14  
  * 
 15  
  * @version $Revision$ $Date$
 16  
  */
 17  0
 public class Component
 18  
     implements java.io.Serializable
 19  
 {
 20  
 
 21  
       //--------------------------/
 22  
      //- Class/Member Variables -/
 23  
     //--------------------------/
 24  
 
 25  
     /**
 26  
      * 
 27  
      *             The component name.
 28  
      *           
 29  
      */
 30  
     private String name;
 31  
 
 32  
     /**
 33  
      * 
 34  
      *             The component description.
 35  
      *           
 36  
      */
 37  
     private String description;
 38  
 
 39  
     /**
 40  
      * Field actions.
 41  
      */
 42  
     private java.util.List<Action> actions;
 43  
 
 44  
 
 45  
       //-----------/
 46  
      //- Methods -/
 47  
     //-----------/
 48  
 
 49  
     /**
 50  
      * Method addAction.
 51  
      * 
 52  
      * @param action
 53  
      */
 54  
     public void addAction( Action action )
 55  
     {
 56  0
         if ( !(action instanceof Action) )
 57  
         {
 58  0
             throw new ClassCastException( "Component.addActions(action) parameter must be instanceof " + Action.class.getName() );
 59  
         }
 60  0
         getActions().add( action );
 61  0
     } //-- void addAction( Action )
 62  
 
 63  
     /**
 64  
      * Method getActions.
 65  
      * 
 66  
      * @return List
 67  
      */
 68  
     public java.util.List<Action> getActions()
 69  
     {
 70  0
         if ( this.actions == null )
 71  
         {
 72  0
             this.actions = new java.util.ArrayList<Action>();
 73  
         }
 74  
 
 75  0
         return this.actions;
 76  
     } //-- java.util.List<Action> getActions()
 77  
 
 78  
     /**
 79  
      * Get the component description.
 80  
      * 
 81  
      * @return String
 82  
      */
 83  
     public String getDescription()
 84  
     {
 85  0
         return this.description;
 86  
     } //-- String getDescription()
 87  
 
 88  
     /**
 89  
      * Get the component name.
 90  
      * 
 91  
      * @return String
 92  
      */
 93  
     public String getName()
 94  
     {
 95  0
         return this.name;
 96  
     } //-- String getName()
 97  
 
 98  
     /**
 99  
      * Method removeAction.
 100  
      * 
 101  
      * @param action
 102  
      */
 103  
     public void removeAction( Action action )
 104  
     {
 105  0
         if ( !(action instanceof Action) )
 106  
         {
 107  0
             throw new ClassCastException( "Component.removeActions(action) parameter must be instanceof " + Action.class.getName() );
 108  
         }
 109  0
         getActions().remove( action );
 110  0
     } //-- void removeAction( Action )
 111  
 
 112  
     /**
 113  
      * Set the list of actions for this component.
 114  
      * 
 115  
      * @param actions
 116  
      */
 117  
     public void setActions( java.util.List<Action> actions )
 118  
     {
 119  0
         this.actions = actions;
 120  0
     } //-- void setActions( java.util.List )
 121  
 
 122  
     /**
 123  
      * Set the component description.
 124  
      * 
 125  
      * @param description
 126  
      */
 127  
     public void setDescription( String description )
 128  
     {
 129  0
         this.description = description;
 130  0
     } //-- void setDescription( String )
 131  
 
 132  
     /**
 133  
      * Set the component name.
 134  
      * 
 135  
      * @param name
 136  
      */
 137  
     public void setName( String name )
 138  
     {
 139  0
         this.name = name;
 140  0
     } //-- void setName( String )
 141  
 
 142  
 
 143  
 }