Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## com.sun.xml.txw2.annotation
Annotation Type XmlAttribute

    @Retention(value=RUNTIME)
    @Target(value=METHOD)
    public @interface XmlAttribute

Specifies that the invocation of the method will produce an attribute.

The method signature has to match the form `R foo(DT1,DT2,..)`

R is either `void` or the type to which the interface that declares this method is assignable. In the case of the latter, the method will return `this` object, allowing you to chain the multiple attribute method invocations like `StringBuffer`.

DTi must be datatype objects.

When this method is called, a new attribute is added to the current element, whose value is whitespace-separated text from each of the datatype objects.

Author:
  Kohsuke Kawaguchi

Optional Element Summary
`java.lang.String` | `ns` The namespace URI of the attribute.
`java.lang.String` | `value` The local name of the attribute.

### value

    public abstract java.lang.String value

  The local name of the attribute.

  If left unspecified, the method name is used as the attribute name.

  Default:
    ""

### ns

    public abstract java.lang.String ns

  The namespace URI of the attribute.

  Default:
    ""

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT