| Specifies the name of the XML element.
Used on method
When used on methods declared on interfaces that derive
from
TypedXmlWriter , it specifies that the invocation
of the method will produce an element of the specified name.
The method signature has to match one of the following patterns.
- Child writer: TW foo()
- TW must be an interface derived from
TypedXmlWriter .
When this method is called, a new child element is started,
and its content can be written by using the returned TW
object. This child element will be ended when its _commit method
is called.
- Leaf element: void foo(DT1,DT2,...)
- DTi must be datatype objects.
When this method is called, a new child element is started,
followed by the whitespace-separated text data from each of
the datatype objects, followed by the end tag.
Used on interface
When used on interfaces that derive from
TypedXmlWriter ,
it associates an element name with that interface. This name is
used in a few places, such as in
TXW.create(ClassXmlSerializer) and
TypedXmlWriter._element(Class) .
author: Kohsuke Kawaguchi |