Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 39   Methods: 3
NCLOC: 19   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
QualifiedName.java - 100% 100% 100%
 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.parser;
 11   
 
 12   
 import org.jbind.xml.base.QName;
 13   
 
 14   
 /**
 15   
  * A qualified name that has line and column information. The QName is constructed
 16   
  * in two steps: first the prefix and local part is supplied and after that the namespace is set.
 17   
  */
 18   
 public class QualifiedName extends QName {
 19   
 
 20   
   public final int line;
 21   
   public final int column;
 22   
 
 23  23505
   public QualifiedName(String aPrefix, String aLocalPart, int aLine, int aColumn) {
 24  23505
     super(aPrefix, aLocalPart, null);
 25  23505
     line = aLine;
 26  23505
     column = aColumn;
 27   
   }
 28   
 
 29  9
   public QualifiedName(String aNamespace, String aLocalPart) {
 30  9
     super(null, aLocalPart, aNamespace);
 31  9
     line = -1;
 32  9
     column = -1;
 33   
   }
 34   
 
 35  18023
   public void setNamespace(String aNamespace) {
 36  18023
     myNamespace = aNamespace;
 37   
   }
 38   
 }
 39