Fix checkstyle warnings in yang-jmx-generator-plugin
[controller.git] / opendaylight / config / yang-jmx-generator-plugin / src / main / java / org / opendaylight / controller / config / yangjmxgenerator / plugin / ftl / model / HeaderSerializer.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl.model;
10
11 import java.util.Date;
12 import org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator;
13
14 public class HeaderSerializer {
15     private static final String GENERATOR_CLASS = JMXGenerator.class.getCanonicalName();
16
17     public static String toString(Header header) {
18         StringBuilder build = new StringBuilder();
19
20
21         build.append("Generated file");
22         build.append("\n");
23         build.append("\n");
24         build.append("Generated from: ");
25         //build.append(header.toString());
26
27         build.append("yang module name: ");
28         build.append(header.getYangModuleName());
29         build.append(" yang module local name: ");
30         build.append(header.getYangModuleLocalName());
31
32         build.append("\n");
33         build.append("Generated by: " + GENERATOR_CLASS);
34         build.append("\n");
35         build.append("Generated at: " + new Date());
36         build.append("\n");
37         build.append("\n");
38         build.append("Do not modify this file unless it is present under src/main directory ");
39
40         return build.toString();
41     }
42
43 }