Coverage Report - org.apache.commons.betwixt.AttributeDescriptor

Classes in this File Line Coverage Branch Coverage Complexity
AttributeDescriptor
50% 
N/A 
1

 1  
 /*
 2  
  * Copyright 2001-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  
 package org.apache.commons.betwixt;
 18  
 
 19  
 /** <p><code>AttributeDescriptor</code> describes the XML attributes
 20  
   * to be created for a bean instance.</p>
 21  
   *
 22  
   * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
 23  
   * @version $Revision: 155402 $
 24  
   */
 25  
 public class AttributeDescriptor extends NodeDescriptor {
 26  
 
 27  
     /** Base constructor */
 28  5473
     public AttributeDescriptor() {
 29  5473
     }
 30  
 
 31  
     /** 
 32  
      * Creates a AttributeDescriptor with no namespace URI or prefix 
 33  
      *
 34  
      * @param localName the local name for the attribute, excluding any namespace prefix
 35  
      */
 36  
     public AttributeDescriptor(String localName) {
 37  52
         super( localName );
 38  52
     }
 39  
 
 40  
     /** 
 41  
      * Creates a AttributeDescriptor with namespace URI and qualified name 
 42  
      *
 43  
      * @param localName the local name for the attribute, excluding any namespace prefix
 44  
      * @param qualifiedName the fully quanified name, including the namespace prefix
 45  
      * @param uri the namespace for the attribute - or "" for no namespace
 46  
      */
 47  
     public AttributeDescriptor(String localName, String qualifiedName, String uri) {
 48  0
         super(localName, qualifiedName, uri);
 49  0
     }
 50  
     
 51  
     /** 
 52  
      * Return something useful for logging 
 53  
      *
 54  
      * @return something useful for logging
 55  
      */
 56  
     public String toString() {
 57  0
         return "AttributeDescriptor[qname=" + getQualifiedName() 
 58  0
             + ",class=" + getPropertyType() + "]";
 59  
     }
 60  
 }