Search in sources :

Example 6 with ModuleField

use of org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.ModuleField in project controller by opendaylight.

the class AbsModuleGeneratedObjectFactory method getCachesOfResolvedIdentityRefs.

private static String getCachesOfResolvedIdentityRefs(List<ModuleField> moduleFields) {
    StringBuilder result = new StringBuilder();
    for (ModuleField moduleField : moduleFields) {
        if (moduleField.isIdentityRef()) {
            IdentityRefModuleField field = (IdentityRefModuleField) moduleField;
            result.append(format("private %s %s;\n", field.getIdentityClassType(), field.getIdentityClassName()));
        }
    }
    return result.toString();
}
Also used : ModuleField(org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.ModuleField) IdentityRefModuleField(org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.IdentityRefModuleField) IdentityRefModuleField(org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.IdentityRefModuleField)

Aggregations

IdentityRefModuleField (org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.IdentityRefModuleField)6 ModuleField (org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.ModuleField)6 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 RuntimeBeanRegistratorAwareModule (org.opendaylight.controller.config.api.RuntimeBeanRegistratorAwareModule)1 RuntimeBeanEntry (org.opendaylight.controller.config.yangjmxgenerator.RuntimeBeanEntry)1 Annotation (org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Annotation)1 FullyQualifiedName (org.opendaylight.controller.config.yangjmxgenerator.plugin.java.FullyQualifiedName)1 GeneratedObjectBuilder (org.opendaylight.controller.config.yangjmxgenerator.plugin.java.GeneratedObjectBuilder)1 JavaFileInputBuilder (org.opendaylight.controller.config.yangjmxgenerator.plugin.java.JavaFileInputBuilder)1