|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) public @interface NamespaceList
The NamespaceList
annotation that is used to declare
namespaces that can be added to an element. This is used when
there are several namespaces to add to the element without setting
any namespace to the element. This is useful when the scope of a
namespace needs to span several nodes. All prefixes declared in
the namespaces will be available to the child nodes.
<example xmlns:root="http://www.example.com/root"> <anonymous>anonymous element</anonymous> </example>The above XML example shows how a prefixed namespace has been added to the element without qualifying that element. Such declarations will allow child elements to pick up the parents prefix when this is required, this avoids having to redeclare the same namespace.
Namespace
Optional Element Summary | |
---|---|
Namespace[] |
value
This is used to acquire the namespaces that are declared on the class. |
public abstract Namespace[] value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |