2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model;
11 import java.util.Date;
12 import org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator;
14 public class HeaderSerializer {
15 private static final String GENERATOR_CLASS = JMXGenerator.class.getCanonicalName();
17 public static String toString(Header header) {
18 StringBuilder build = new StringBuilder();
21 build.append("Generated file");
24 build.append("Generated from: ");
25 //build.append(header.toString());
27 build.append("yang module name: ");
28 build.append(header.getYangModuleName());
29 build.append(" yang module local name: ");
30 build.append(header.getYangModuleLocalName());
33 build.append("Generated by: " + GENERATOR_CLASS);
35 build.append("Generated at: " + new Date());
38 build.append("Do not modify this file unless it is present under src/main directory ");
40 return build.toString();