All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xmlparser.annotations.XmlDynamicList Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package xmlparser.annotations;

import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/*
 * Should deal with lists that have a wrapper tag and the name of the item determines the
 * type of the item. So:
 *
 * 
 *     String here
 *     2.5
 * 
 *
 * We want to turn that into; List list
 */
@Retention(RUNTIME)
public @interface XmlDynamicList {
    @interface TypeMap {
        String name();
        Class type();
    }

    String name();
    TypeMap[] types();
}