Clover coverage report - Maven Clover report
Coverage timestamp: Sun Aug 20 2006 04:01:04 PDT
file stats: LOC: 86   Methods: 8
NCLOC: 46   Classes: 2
 
 Source file Conditionals Statements Methods TOTAL
Provider.java 0% 0% 0% 0%
coverage
 1    /**
 2    *
 3    * Copyright 2003-2004 The Apache Software Foundation
 4    *
 5    * Licensed under the Apache License, Version 2.0 (the "License");
 6    * you may not use this file except in compliance with the License.
 7    * 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   
 18    package javax.mail;
 19   
 20    /**
 21    * @version $Rev: 126350 $ $Date: 2005-01-24 22:35:47 -0800 (Mon, 24 Jan 2005) $
 22    */
 23    public class Provider {
 24    /**
 25    * A enumeration inner class that defines Provider types.
 26    */
 27    public static class Type {
 28    /**
 29    * A message store provider such as POP3 or IMAP4.
 30    */
 31    public static final Type STORE = new Type();
 32   
 33    /**
 34    * A message transport provider such as SMTP.
 35    */
 36    public static final Type TRANSPORT = new Type();
 37   
 38  0 private Type() {
 39    }
 40    }
 41   
 42    private final String className;
 43    private final String protocol;
 44    private final Type type;
 45    private final String vendor;
 46    private final String version;
 47   
 48  0 Provider(String protocol, String className, Type type, String vendor, String version) {
 49  0 this.protocol = protocol;
 50  0 this.className = className;
 51  0 this.type = type;
 52  0 this.vendor = vendor;
 53  0 this.version = version;
 54    }
 55   
 56  0 public String getClassName() {
 57  0 return className;
 58    }
 59   
 60  0 public String getProtocol() {
 61  0 return protocol;
 62    }
 63   
 64  0 public Type getType() {
 65  0 return type;
 66    }
 67   
 68  0 public String getVendor() {
 69  0 return vendor;
 70    }
 71   
 72  0 public String getVersion() {
 73  0 return version;
 74    }
 75   
 76  0 public String toString() {
 77  0 return "protocol="
 78    + protocol
 79    + "; type="
 80    + type
 81    + "; class="
 82    + className
 83  0 + (vendor == null ? "" : "; vendor=" + vendor)
 84  0 + (version == null ? "" : ";version=" + version);
 85    }
 86    }