1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 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 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 localName, String qualifiedName, String 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 toString() {
57 return "AttributeDescriptor[qname=" + getQualifiedName()
58 + ",class=" + getPropertyType() + "]";
59 }
60 }