Top Description Methods
com.sun.xml.txw2.annotation

public @Interface XmlAttribute

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.Retention, .Target

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

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the namespace URI
ns
()

The namespace URI of the attribute.

public String

Returns:

the local name
value
()

The local name of the attribute.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nsback to summary
public String ns()

The namespace URI of the attribute.

Returns:String

the namespace URI

valueback to summary
public String value()

The local name of the attribute.

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

Returns:String

the local name