ecologylab.xml
Annotation Type ElementState.xml_map


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Inherited
public static @interface ElementState.xml_map

Metalanguage declaration that tells ecologylab.xml translators that each Field it is applied to as an annotation is of type Map. An argument may be passed to declare the tag name of the child elements. The XML may define any number of child elements with this tag. In this case, the class of the elements will be dervied from the instantiated generic type declaration of the children.

For example, @xml_map("foo") HashMap<String, FooFoo> items;
The values of the Map must implement the Mappable interface, to supply a key which matches the key declaration in the Map's instantiated generic types.

Without the tag name declaration, the tag name will be derived from the class name of the children, and in translate from XML, the class name will be derived from the tag name, and then resolved in the TranslationSpace.

Author:
andruid

Optional Element Summary
 java.lang.String value
           
 

value

public abstract java.lang.String value
Default:
""