use of org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model.Header in project controller by opendaylight.
the class TemplateFactory method tOsFromMbe.
public static Map<String, GeneralClassTemplate> tOsFromMbe(final ModuleMXBeanEntry mbe) {
final Map<String, GeneralClassTemplate> retVal = Maps.newHashMap();
final TOAttributesProcessor processor = new TOAttributesProcessor();
processor.processAttributes(mbe.getAttributes());
for (final org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.TemplateFactory.TOAttributesProcessor.TOInternal to : processor.getTOs()) {
final List<Constructor> constructors = Lists.newArrayList();
constructors.add(new Constructor(to.getName(), "super();"));
final Header header = getHeaderFromEntry(mbe);
retVal.put(to.getType(), new GeneralClassTemplate(header, mbe.getPackageName(), to.getName(), Collections.<String>emptyList(), Collections.<String>emptyList(), to.getFields(), to.getMethods(), false, false, constructors));
}
return retVal;
}
Aggregations