Example usage for com.google.gwt.core.ext.typeinfo HasMetaData getMetaDataTags

List of usage examples for com.google.gwt.core.ext.typeinfo HasMetaData getMetaDataTags

Introduction

In this page you can find the example usage for com.google.gwt.core.ext.typeinfo HasMetaData getMetaDataTags.

Prototype

@Deprecated
String[] getMetaDataTags();

Source Link

Document

Gets the name of available metadata tags.

Usage

From source file:com.gwtent.gen.reflection.GeneratorHelper.java

License:Apache License

/**
 * generator metaData/*  w  ww  .  j  a  v  a2 s  . c  o m*/
 * @param dest field or method or class
 * @param source source to print code
 * @param metaData 
 */
public static void addMetaDatas(String dest, SourceWriter source,
        com.google.gwt.core.ext.typeinfo.HasMetaData metaData) {
    String[] tags = metaData.getMetaDataTags();
    for (int j = 0; j < tags.length; j++) {
        String[][] metas = metaData.getMetaData(tags[j]);
        for (int k = 0; k < metas.length; k++) {
            source.println(dest + ".addMetaData(\"" + tags[j] + "\", "
                    + GeneratorHelper.stringArrayToCode(metas[k]) + ");");
        }
    }
}