Clover coverage report - JFox Service-Oriented Application Framework - 1.0-M3
Coverage timestamp: 星期日 五月 22 2005 15:41:44 CST
file stats: LOC: 203   Methods: 15
NCLOC: 105   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
ConfigurationDescriptor.java - 84.8% 66.7% 80.3%
coverage coverage
 1   
 /**
 2   
  * @(#)ConfigurationDescriptor.java
 3   
  * 
 4   
  * JFoxSOAF, Service-Oriented Application Framework
 5   
  * 
 6   
  * Copyright(c) JFoxSOAF Team
 7   
  * 
 8   
  * Licensed under the GNU LGPL, Version 2.1 (the "License"); 
 9   
  * you may not use this file except in compliance with the License. 
 10   
  * You may obtain a copy of the License at  
 11   
  * 
 12   
  * http://www.gnu.org/copyleft/lesser.html
 13   
  * 
 14   
  * Unless required by applicable law or agreed to in writing, software
 15   
  * distributed under the License is distributed on an "AS IS" BASIS, 
 16   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 17   
  * See the License for the specific language governing permissions and 
 18   
  * limitations under the License. 
 19   
  * 
 20   
  * For more information, please visit:
 21   
  * http://www.jfox.cn/confluence/display/JFoxSOAF/Home
 22   
  * http://www.huihoo.org/jfox/jfoxsoaf
 23   
  */
 24   
 package org.huihoo.jfox.soaf.schema.config;
 25   
 
 26   
 /**
 27   
  * Class ConfigurationDescriptor.
 28   
  * 
 29   
  * @version $Revision: 1.8 $ $Date: 2005/05/22 06:47:43 $
 30   
  * @version Revision: 1.0
 31   
  */
 32   
 
 33   
 public class ConfigurationDescriptor extends
 34   
         org.exolab.castor.xml.util.XMLClassDescriptorImpl {
 35   
 
 36   
     /**
 37   
      * Field nsPrefix
 38   
      */
 39   
     private java.lang.String nsPrefix;
 40   
 
 41   
     /**
 42   
      * Field nsURI
 43   
      */
 44   
     private java.lang.String nsURI;
 45   
 
 46   
     /**
 47   
      * Field xmlName
 48   
      */
 49   
     private java.lang.String xmlName;
 50   
 
 51   
     /**
 52   
      * Field identity
 53   
      */
 54   
     private org.exolab.castor.xml.XMLFieldDescriptor identity;
 55   
 
 56  3
     public ConfigurationDescriptor() {
 57  3
         super();
 58  3
         xmlName = "configuration";
 59   
 
 60   
         //-- set grouping compositor
 61  3
         setCompositorAsSequence();
 62  3
         org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
 63  3
         org.exolab.castor.xml.XMLFieldHandler handler = null;
 64  3
         org.exolab.castor.xml.FieldValidator fieldValidator = null;
 65   
         //-- initialize attribute descriptors
 66   
 
 67   
         //-- initialize element descriptors
 68   
 
 69   
         //-- _serviceConfiguration
 70  3
         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
 71   
                 org.huihoo.jfox.soaf.schema.config.ServiceConfiguration.class,
 72   
                 "_serviceConfiguration", "service-configuration",
 73   
                 org.exolab.castor.xml.NodeType.Element);
 74  3
         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
 75  3
             public java.lang.Object getValue(java.lang.Object object)
 76   
                     throws IllegalStateException {
 77  3
                 Configuration target = (Configuration) object;
 78  3
                 return target.getServiceConfiguration();
 79   
             }
 80   
 
 81  3
             public void setValue(java.lang.Object object, java.lang.Object value)
 82   
                     throws IllegalStateException, IllegalArgumentException {
 83  3
                 try {
 84  3
                     Configuration target = (Configuration) object;
 85  3
                     target
 86   
                             .setServiceConfiguration((org.huihoo.jfox.soaf.schema.config.ServiceConfiguration) value);
 87   
                 } catch (java.lang.Exception ex) {
 88  0
                     throw new IllegalStateException(ex.toString());
 89   
                 }
 90   
             }
 91   
 
 92  3
             public java.lang.Object newInstance(java.lang.Object parent) {
 93  3
                 return new org.huihoo.jfox.soaf.schema.config.ServiceConfiguration();
 94   
             }
 95   
         });
 96  3
         desc.setHandler(handler);
 97  3
         desc.setRequired(true);
 98  3
         desc.setMultivalued(false);
 99  3
         addFieldDescriptor(desc);
 100   
 
 101   
         //-- validation code for: _serviceConfiguration
 102  3
         fieldValidator = new org.exolab.castor.xml.FieldValidator();
 103  3
         fieldValidator.setMinOccurs(1);
 104   
         { //-- local scope
 105   
         }
 106  3
         desc.setValidator(fieldValidator);
 107   
         //-- _systemInterceptor
 108  3
         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
 109   
                 org.huihoo.jfox.soaf.schema.config.SystemInterceptor.class,
 110   
                 "_systemInterceptor", "system-interceptor",
 111   
                 org.exolab.castor.xml.NodeType.Element);
 112  3
         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
 113  3
             public java.lang.Object getValue(java.lang.Object object)
 114   
                     throws IllegalStateException {
 115  3
                 Configuration target = (Configuration) object;
 116  3
                 return target.getSystemInterceptor();
 117   
             }
 118   
 
 119  3
             public void setValue(java.lang.Object object, java.lang.Object value)
 120   
                     throws IllegalStateException, IllegalArgumentException {
 121  3
                 try {
 122  3
                     Configuration target = (Configuration) object;
 123  3
                     target
 124   
                             .setSystemInterceptor((org.huihoo.jfox.soaf.schema.config.SystemInterceptor) value);
 125   
                 } catch (java.lang.Exception ex) {
 126  0
                     throw new IllegalStateException(ex.toString());
 127   
                 }
 128   
             }
 129   
 
 130  3
             public java.lang.Object newInstance(java.lang.Object parent) {
 131  3
                 return new org.huihoo.jfox.soaf.schema.config.SystemInterceptor();
 132   
             }
 133   
         });
 134  3
         desc.setHandler(handler);
 135  3
         desc.setRequired(true);
 136  3
         desc.setMultivalued(false);
 137  3
         addFieldDescriptor(desc);
 138   
 
 139   
         //-- validation code for: _systemInterceptor
 140  3
         fieldValidator = new org.exolab.castor.xml.FieldValidator();
 141  3
         fieldValidator.setMinOccurs(1);
 142   
         { //-- local scope
 143   
         }
 144  3
         desc.setValidator(fieldValidator);
 145   
     }
 146   
 
 147   
     /**
 148   
      * Method getAccessMode
 149   
      */
 150  0
     public org.exolab.castor.mapping.AccessMode getAccessMode() {
 151  0
         return null;
 152   
     }
 153   
 
 154   
     /**
 155   
      * Method getExtends
 156   
      */
 157  0
     public org.exolab.castor.mapping.ClassDescriptor getExtends() {
 158  0
         return null;
 159   
     }
 160   
 
 161   
     /**
 162   
      * Method getIdentity
 163   
      */
 164  6
     public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
 165  6
         return identity;
 166   
     }
 167   
 
 168   
     /**
 169   
      * Method getJavaClass
 170   
      */
 171  3
     public java.lang.Class getJavaClass() {
 172  3
         return org.huihoo.jfox.soaf.schema.config.Configuration.class;
 173   
     }
 174   
 
 175   
     /**
 176   
      * Method getNameSpacePrefix
 177   
      */
 178  0
     public java.lang.String getNameSpacePrefix() {
 179  0
         return nsPrefix;
 180   
     }
 181   
 
 182   
     /**
 183   
      * Method getNameSpaceURI
 184   
      */
 185  0
     public java.lang.String getNameSpaceURI() {
 186  0
         return nsURI;
 187   
     }
 188   
 
 189   
     /**
 190   
      * Method getValidator
 191   
      */
 192  3
     public org.exolab.castor.xml.TypeValidator getValidator() {
 193  3
         return this;
 194   
     }
 195   
 
 196   
     /**
 197   
      * Method getXMLName
 198   
      */
 199  0
     public java.lang.String getXMLName() {
 200  0
         return xmlName;
 201   
     }
 202   
 
 203   
 }