KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > AttributeDescriptor


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: 1.6 $
24   */

25 public class AttributeDescriptor extends NodeDescriptor {
26
27     /** Base constructor */
28     public AttributeDescriptor() {
29     }
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 JavaDoc localName) {
37         super( localName );
38     }
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 JavaDoc localName, String JavaDoc qualifiedName, String JavaDoc uri) {
48         super(localName, qualifiedName, uri);
49     }
50     
51     /**
52      * Return something useful for logging
53      *
54      * @return something useful for logging
55      */

56     public String JavaDoc toString() {
57         return "AttributeDescriptor[qname=" + getQualifiedName()
58             + ",class=" + getPropertyType() + "]";
59     }
60 }
61
Popular Tags