Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 60   Methods: 7
NCLOC: 40   Classes: 1
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
ResourceIdentifier.java 0% 28,6% 42,9% 28%
 1   
 /*
 2   
  * JBind
 3   
  *
 4   
  * Copyright (c) by Stefan Wachter. All rights reserved.
 5   
  *
 6   
  * Usage, modification, and redistribution is subject to license terms that are
 7   
  * available at 'http://www.jbind.org'. The JBind license is like the
 8   
  * 'Apache Software License V 1.1'.
 9   
  */
 10   
 package org.jbind.xml.base;
 11   
 
 12   
 import java.net.MalformedURLException;
 13   
 import java.net.URL;
 14   
 
 15   
 public class ResourceIdentifier implements IResourceIdentifier {
 16   
 
 17   
   private URL myBaseSystemId = null;
 18   
   private URL myExpandedSystemId = null;
 19   
   private String myLiteralSystemId = null;
 20   
   private String myPublicId = null;
 21   
 
 22  0
   public ResourceIdentifier(URL aBaseSystemId, String aLiteralSystemId, String aPublicId) throws MalformedURLException {
 23  0
     myBaseSystemId = aBaseSystemId;
 24  0
     myLiteralSystemId = aLiteralSystemId;
 25  0
     myPublicId = aPublicId;
 26  0
     if (null != myLiteralSystemId) {
 27  0
       if (null != myBaseSystemId) {
 28  0
         myExpandedSystemId = new URL(myBaseSystemId, myLiteralSystemId);
 29   
       } else {
 30  0
         myExpandedSystemId = new URL(myLiteralSystemId);
 31   
       }
 32   
     }
 33   
   }
 34   
 
 35  15373
   public ResourceIdentifier(URL anExpandedSystemId, String aPublicId) {
 36  15373
     myExpandedSystemId = anExpandedSystemId;
 37  15373
     myPublicId = aPublicId;
 38   
   }
 39   
 
 40  0
   public URL getBaseSystemId() {
 41  0
     return myBaseSystemId;
 42   
   }
 43   
 
 44  65
   public URL getExpandedSystemId() {
 45  65
     return myExpandedSystemId;
 46   
   }
 47   
 
 48  0
   public String getLiteralSystemId() {
 49  0
     return myLiteralSystemId;
 50   
   }
 51   
 
 52  0
   public String getPublicId() {
 53  0
     return myPublicId;
 54   
   }
 55   
 
 56  461
   public String toString() {
 57  461
     return new StringBuffer().append((null != myBaseSystemId) ? myBaseSystemId.toString() : "").append(":").append((null != myExpandedSystemId) ? myExpandedSystemId.toString() : "").append(":").append((null != myLiteralSystemId) ? myLiteralSystemId : "").append(":").append((null != myPublicId) ? myPublicId : "").toString();
 58   
   }
 59   
 }
 60