Coverage report

  %line %branch
org.apache.portals.graffito.jcr.mapper.model.CollectionDescriptor
0% 
0% 

 1  
 /*
 2  
  * Copyright 2000-2005 The Apache Software Foundation.
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.apache.portals.graffito.jcr.mapper.model;
 17  
 
 18  
 /**
 19  
  * 
 20  
  * CollectionDescriptor is used by the mapper to read general information on a collection field
 21  
  * 
 22  
  * @author <a href="mailto:christophe.lombart@sword-technologies.com">Lombart Christophe </a>
 23  
  * 
 24  
  */
 25  0
 public class CollectionDescriptor
 26  
 {
 27  
 
 28  
      private String fieldName;
 29  
      private String jcrName;     
 30  
      private String elementClassName; 
 31  
      private String collectionConverterClassName;
 32  
      private String collectionClassName;
 33  
      private boolean proxy;
 34  
      private String jcrNodeType;
 35  
      private boolean jcrAutoCreated;
 36  
      private boolean jcrMandatory;
 37  
      private String jcrOnParentVersion;
 38  
      private boolean jcrProtected;
 39  
      private boolean jcrSameNameSiblings;     
 40  
      
 41  
      private ClassDescriptor classDescriptor;
 42  
     
 43  
     /**
 44  
      * @return Returns the fieldName.
 45  
      */
 46  
     public String getFieldName()
 47  
     {
 48  0
         return fieldName;
 49  
     }
 50  
     /**
 51  
      * @param fieldName The fieldName to set.
 52  
      */
 53  
     public void setFieldName(String fieldName)
 54  
     {
 55  0
         this.fieldName = fieldName;
 56  0
     }
 57  
     /**
 58  
      * @return Returns the jcrName.
 59  
      */
 60  
     public String getJcrName()
 61  
     {
 62  0
         return jcrName;
 63  
     }
 64  
     /**
 65  
      * @param jcrName The jcrName to set.
 66  
      */
 67  
     public void setJcrName(String jcrName)
 68  
     {
 69  0
         this.jcrName = jcrName;
 70  0
     }
 71  
     
 72  
     
 73  
     /**
 74  
      * @return Returns the elementClassName.
 75  
      */
 76  
     public String getElementClassName()
 77  
     {
 78  0
         return elementClassName;
 79  
     }
 80  
     /**
 81  
      * @param elementClassName The collection element class name to set.
 82  
      *
 83  
      */
 84  
     public void setElementClassName(String elementClassName)
 85  
     {
 86  0
         this.elementClassName = elementClassName;
 87  0
     }
 88  
 
 89  
     /**
 90  
      * @return Returns the proxy.
 91  
      */
 92  
     public boolean isProxy()
 93  
     {
 94  0
         return proxy;
 95  
     }
 96  
     /**
 97  
      * @param proxy The proxy to set.
 98  
      */
 99  
     public void setProxy(boolean proxy)
 100  
     {
 101  0
         this.proxy = proxy;
 102  0
     }
 103  
     
 104  
     /**
 105  
      * 
 106  
      * @return The collection converter class name 
 107  
      */
 108  
     public String getCollectionConverterClassName()
 109  
     {
 110  0
         return collectionConverterClassName;
 111  
     }
 112  
     
 113  
     /**
 114  
      * Set the collection converter class name
 115  
      * @param collectionConverterClassName The converter to set
 116  
      */
 117  
     public void setCollectionConverterClassName(String collectionConverterClassName)
 118  
     {
 119  0
         this.collectionConverterClassName = collectionConverterClassName;
 120  0
     }
 121  
     
 122  
     /**
 123  
      *  
 124  
      * @return the collection class name (can be also a Map)
 125  
      */
 126  
     public String getCollectionClassName()
 127  
     {
 128  0
         return collectionClassName;
 129  
     }
 130  
     
 131  
     /**
 132  
      * Set the collection class name. 
 133  
      * This collection class has to implement {@link org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollection}
 134  
      * @param collectionClassName The collection class name to set
 135  
      */
 136  
     public void setCollectionClassName(String collectionClassName)
 137  
     {
 138  0
         this.collectionClassName = collectionClassName;
 139  0
     }
 140  
     
 141  
     /**
 142  
      * 
 143  
      * @return The associated class descriptor
 144  
      */
 145  
     public ClassDescriptor getClassDescriptor()
 146  
     {
 147  0
         return classDescriptor;
 148  
     }
 149  
     
 150  
     /**
 151  
      * Set the associated class descriptor
 152  
      * @param classDescriptor the class descriptor to set 
 153  
      */
 154  
     public void setClassDescriptor(ClassDescriptor classDescriptor)
 155  
     {
 156  0
         this.classDescriptor = classDescriptor;
 157  0
     }
 158  
     
 159  
     /** Getter for property jcrNodeType.
 160  
      * 
 161  
      * @return jcrNodeType
 162  
      */
 163  
     public String getJcrNodeType()
 164  
     {
 165  0
         return jcrNodeType;
 166  
     }
 167  
 
 168  
     /** Setter for property jcrNodeType.
 169  
      * 
 170  
      * @param value jcrNodeType
 171  
      */
 172  
     public void setJcrNodeType(String value)
 173  
     {
 174  0
         this.jcrNodeType = value;
 175  0
     }
 176  
 
 177  
     /** Getter for property jcrAutoCreated.
 178  
      * 
 179  
      * @return jcrAutoCreated
 180  
      */
 181  
     public boolean isJcrAutoCreated()
 182  
     {
 183  0
         return jcrAutoCreated;
 184  
     }
 185  
 
 186  
     /** Setter for property jcrAutoCreated.
 187  
      * 
 188  
      * @param value jcrAutoCreated
 189  
      */
 190  
     public void setJcrAutoCreated(boolean value)
 191  
     {
 192  0
         this.jcrAutoCreated = value;
 193  0
     }
 194  
 
 195  
     /** Getter for property jcrMandatory.
 196  
      * 
 197  
      * @return jcrMandatory
 198  
      */
 199  
     public boolean isJcrMandatory()
 200  
     {
 201  0
         return jcrMandatory;
 202  
     }
 203  
 
 204  
     /** Setter for property jcrMandatory.
 205  
      * 
 206  
      * @param value jcrMandatory
 207  
      */
 208  
     public void setJcrMandatory(boolean value)
 209  
     {
 210  0
         this.jcrMandatory = value;
 211  0
     }
 212  
 
 213  
     /** Getter for property jcrOnParentVersion.
 214  
      * 
 215  
      * @return jcrOnParentVersion
 216  
      */
 217  
     public String getJcrOnParentVersion()
 218  
     {
 219  0
         return jcrOnParentVersion;
 220  
     }
 221  
 
 222  
     /** Setter for property jcrOnParentVersion.
 223  
      * 
 224  
      * @param value jcrOnParentVersion
 225  
      */
 226  
     public void setJcrOnParentVersion(String value)
 227  
     {
 228  0
         this.jcrOnParentVersion = value;
 229  0
     }
 230  
 
 231  
     /** Getter for property jcrProtected.
 232  
      * 
 233  
      * @return jcrProtected
 234  
      */
 235  
     public boolean isJcrProtected()
 236  
     {
 237  0
         return jcrProtected;
 238  
     }
 239  
 
 240  
     /** Setter for property jcrProtected.
 241  
      * 
 242  
      * @param value jcrProtected
 243  
      */
 244  
     public void setJcrProtected(boolean value)
 245  
     {
 246  0
         this.jcrProtected = value;
 247  0
     }
 248  
 
 249  
     /** Getter for property jcrSameNameSiblings.
 250  
      * 
 251  
      * @return jcrSameNameSiblings
 252  
      */
 253  
     public boolean isJcrSameNameSiblings()
 254  
     {
 255  0
         return jcrSameNameSiblings;
 256  
     }
 257  
 
 258  
     /** Setter for property jcrSameNameSiblings.
 259  
      * 
 260  
      * @param value jcrSameNameSiblings
 261  
      */
 262  
     public void setJcrSameNameSiblings(boolean value)
 263  
     {
 264  0
         this.jcrSameNameSiblings = value;
 265  0
     }    
 266  
 }

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