001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one or more
003     * contributor license agreements.  See the NOTICE file distributed with
004     * this work for additional information regarding copyright ownership.
005     * The ASF licenses this file to You under the Apache License, Version 2.0
006     * (the "License"); you may not use this file except in compliance with
007     * the License.  You may obtain a copy of the License at
008     * 
009     *      http://www.apache.org/licenses/LICENSE-2.0
010     * 
011     * Unless required by applicable law or agreed to in writing, software
012     * distributed under the License is distributed on an "AS IS" BASIS,
013     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014     * See the License for the specific language governing permissions and
015     * limitations under the License.
016     */ 
017     
018    package org.apache.commons.betwixt;
019    
020    /** <p><code>AttributeDescriptor</code> describes the XML attributes
021      * to be created for a bean instance.</p>
022      *
023      * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
024      * @version $Revision: 438373 $
025      */
026    public class AttributeDescriptor extends NodeDescriptor {
027    
028        /** Base constructor */
029        public AttributeDescriptor() {
030        }
031    
032        /** 
033         * Creates a AttributeDescriptor with no namespace URI or prefix 
034         *
035         * @param localName the local name for the attribute, excluding any namespace prefix
036         */
037        public AttributeDescriptor(String localName) {
038            super( localName );
039        }
040    
041        /** 
042         * Creates a AttributeDescriptor with namespace URI and qualified name 
043         *
044         * @param localName the local name for the attribute, excluding any namespace prefix
045         * @param qualifiedName the fully quanified name, including the namespace prefix
046         * @param uri the namespace for the attribute - or "" for no namespace
047         */
048        public AttributeDescriptor(String localName, String qualifiedName, String uri) {
049            super(localName, qualifiedName, uri);
050        }
051        
052        /** 
053         * Return something useful for logging 
054         *
055         * @return something useful for logging
056         */
057        public String toString() {
058            return "AttributeDescriptor[qname=" + getQualifiedName() 
059                + ",class=" + getPropertyType() + "]";
060        }
061    }