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