Clover coverage report - Apache Addressing - 1.0
Coverage timestamp: Tue Mar 22 2005 07:59:24 EST
file stats: LOC: 108   Methods: 11
NCLOC: 63   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
FaultSubcodeValues.java 0% 16.7% 9.1% 12.9%
coverage coverage
 1   
 /*
 2   
  * Copyright  1999-2004 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   
  */
 17   
 
 18   
 package org.apache.axis.message.addressing;
 19   
 
 20   
 /**
 21   
  * Java content class for FaultSubcodeValues element declaration.
 22   
  * <p>The following schema fragment specifies the expected content contained within this java content object. (defined at http://schemas.xmlsoap.org/ws/2004/08/addressing line 110)
 23   
  * <p>
 24   
  * <pre>
 25   
  * &lt;xs:simpleType name="FaultSubcodeValues"&gt;
 26   
  *  &lt;xs:restriction base="xs:QName"&gt;
 27   
  *      &lt;xs:enumeration value="wsa:InvalidMessageInformationHeader"/&gt;
 28   
  *      &lt;xs:enumeration value="wsa:MessageInformationHeaderRequired"/&gt;
 29   
  *      &lt;xs:enumeration value="wsa:DestinationUnreachable"/&gt;
 30   
  *      &lt;xs:enumeration value="wsa:ActionNotSupported"/&gt;
 31   
  *      &lt;xs:enumeration value="wsa:EndpointUnavailable"/&gt;
 32   
  *  &lt;/xs:restriction&gt;
 33   
  * &lt;/xs:simpleType&gt;  
 34   
  * </pre>
 35   
  * 
 36   
  * @author Davanum Srinivas (dims@yahoo.com)
 37   
  */
 38   
 public class FaultSubcodeValues implements java.io.Serializable {
 39   
     private javax.xml.namespace.QName _value_;
 40   
     private static java.util.HashMap _table_ = new java.util.HashMap();
 41   
 
 42   
     // Constructor
 43  5
     protected FaultSubcodeValues(javax.xml.namespace.QName value) {
 44  5
         _value_ = value;
 45  5
         _table_.put(_value_,this);
 46   
     }
 47   
 
 48   
     public static final javax.xml.namespace.QName _value1 = javax.xml.namespace.QName.valueOf("{" + Constants.NS_URI_ADDRESSING_DEFAULT + "}InvalidMessageInformationHeader");
 49   
     public static final javax.xml.namespace.QName _value2 = javax.xml.namespace.QName.valueOf("{" + Constants.NS_URI_ADDRESSING_DEFAULT + "}MessageInformationHeaderRequired");
 50   
     public static final javax.xml.namespace.QName _value3 = javax.xml.namespace.QName.valueOf("{" + Constants.NS_URI_ADDRESSING_DEFAULT + "}DestinationUnreachable");
 51   
     public static final javax.xml.namespace.QName _value4 = javax.xml.namespace.QName.valueOf("{" + Constants.NS_URI_ADDRESSING_DEFAULT + "}ActionNotSupported");
 52   
     public static final javax.xml.namespace.QName _value5 = javax.xml.namespace.QName.valueOf("{" + Constants.NS_URI_ADDRESSING_DEFAULT + "}EndpointUnavailable");
 53   
     public static final FaultSubcodeValues value1 = new FaultSubcodeValues(_value1);
 54   
     public static final FaultSubcodeValues value2 = new FaultSubcodeValues(_value2);
 55   
     public static final FaultSubcodeValues value3 = new FaultSubcodeValues(_value3);
 56   
     public static final FaultSubcodeValues value4 = new FaultSubcodeValues(_value4);
 57   
     public static final FaultSubcodeValues value5 = new FaultSubcodeValues(_value5);
 58  0
     public javax.xml.namespace.QName getValue() { return _value_;}
 59  0
     public static FaultSubcodeValues fromValue(javax.xml.namespace.QName value)
 60   
           throws java.lang.IllegalArgumentException {
 61  0
         FaultSubcodeValues enumeration = (FaultSubcodeValues)
 62   
             _table_.get(value);
 63  0
         if (enumeration==null) throw new java.lang.IllegalArgumentException();
 64  0
         return enumeration;
 65   
     }
 66  0
     public static FaultSubcodeValues fromString(java.lang.String value)
 67   
           throws java.lang.IllegalArgumentException {
 68  0
         try {
 69  0
             return fromValue(javax.xml.namespace.QName.valueOf(value));
 70   
         } catch (Exception e) {
 71  0
             throw new java.lang.IllegalArgumentException();
 72   
         }
 73   
     }
 74  0
     public boolean equals(java.lang.Object obj) {return (obj == this);}
 75  0
     public int hashCode() { return toString().hashCode();}
 76  0
     public java.lang.String toString() { return _value_.toString();}
 77  0
     public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
 78  0
     public static org.apache.axis.encoding.Serializer getSerializer(
 79   
            java.lang.String mechType, 
 80   
            java.lang.Class _javaType,  
 81   
            javax.xml.namespace.QName _xmlType) {
 82  0
         return 
 83   
           new org.apache.axis.encoding.ser.EnumSerializer(
 84   
             _javaType, _xmlType);
 85   
     }
 86  0
     public static org.apache.axis.encoding.Deserializer getDeserializer(
 87   
            java.lang.String mechType, 
 88   
            java.lang.Class _javaType,  
 89   
            javax.xml.namespace.QName _xmlType) {
 90  0
         return 
 91   
           new org.apache.axis.encoding.ser.EnumDeserializer(
 92   
             _javaType, _xmlType);
 93   
     }
 94   
     // Type metadata
 95   
     private static org.apache.axis.description.TypeDesc typeDesc =
 96   
         new org.apache.axis.description.TypeDesc(FaultSubcodeValues.class);
 97   
 
 98   
     static {
 99  1
         typeDesc.setXmlType(new javax.xml.namespace.QName(Constants.NS_URI_ADDRESSING_DEFAULT, "FaultSubcodeValues"));
 100   
     }
 101   
     /**
 102   
      * Return type metadata object
 103   
      */
 104  0
     public static org.apache.axis.description.TypeDesc getTypeDesc() {
 105  0
         return typeDesc;
 106   
     }
 107   
 }
 108