Coverage report

  %line %branch
org.apache.jetspeed.rewriter.rules.impl.TagImpl
0% 
0% 

 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  * 
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  * 
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.jetspeed.rewriter.rules.impl;
 18  
 
 19  
 import java.util.ArrayList;
 20  
 import java.util.Collection;
 21  
 
 22  
 import org.apache.jetspeed.rewriter.rules.Tag;
 23  
 
 24  
 /**
 25  
  * Tag
 26  
  *
 27  
  * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
 28  
  * @version $Id: TagImpl.java 516448 2007-03-09 16:25:47Z ate $
 29  
  */
 30  0
 public class TagImpl extends IdentifiedImpl implements Tag
 31  
 {
 32  0
     private boolean remove = false;
 33  0
     private boolean strip = false;
 34  0
     private Collection attributes = new ArrayList();    
 35  
 
 36  
     /* (non-Javadoc)
 37  
      * @see org.apache.jetspeed.cps.rewriter.rules.Ruleset#setId(java.lang.String)
 38  
      */
 39  
     public void setId(String id)
 40  
     {
 41  0
         if (id != null)
 42  
         {
 43  0
             this.id  = id.toUpperCase();
 44  
         }
 45  0
     }
 46  
 
 47  
     /* (non-Javadoc)
 48  
      * @see org.apache.jetspeed.cps.rewriter.rules.Tag#getRemove()
 49  
      */
 50  
     public boolean getRemove()
 51  
     {
 52  0
         return remove;
 53  
     }
 54  
 
 55  
     /* (non-Javadoc)
 56  
      * @see org.apache.jetspeed.cps.rewriter.rules.Tag#setRemove(boolean)
 57  
      */
 58  
     public void setRemove(boolean b)
 59  
     {
 60  0
         remove = b;
 61  0
     }
 62  
 
 63  
     public String toString()
 64  
     {
 65  0
         return id;
 66  
     }
 67  
 
 68  
     /**
 69  
      * Castor setter to set attributes for a Tag.
 70  
      * 
 71  
      * @param attributes
 72  
      */
 73  
     public void setAttributes(Collection attributes)
 74  
     {
 75  0
         this.attributes = attributes;
 76  0
     }
 77  
 
 78  
     /**
 79  
      * Castor getter to get attributes for a Tag.
 80  
      * 
 81  
      * @param attributes
 82  
      */
 83  
     public Collection getAttributes()
 84  
     {
 85  0
         return this.attributes;
 86  
     }
 87  
 
 88  
 
 89  
     /**
 90  
      * @return
 91  
      */
 92  
     public boolean getStrip()
 93  
     {
 94  0
         return strip;
 95  
     }
 96  
 
 97  
     /**
 98  
      * @param b
 99  
      */
 100  
     public void setStrip(boolean b)
 101  
     {
 102  0
         strip = b;
 103  0
     }
 104  
 
 105  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.