Remove yang-test
[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
13 import org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator;
14
15 public class HeaderSerializer {
16     private static final String GENERATOR_CLASS = JMXGenerator.class.getCanonicalName();
17
18     public static String toString(Header header) {
19         return "Generated file" + "\n" +
20                 "\n" +
21                 "Generated from: " +
22                 "yang module name: " + header.getYangModuleName() +
23                 " yang module local name: " + header.getYangModuleLocalName() + "\n" +
24                 "Generated by: " + GENERATOR_CLASS + "\n" +
25                 "Generated at: " + new Date() + "\n" +
26                 "\n" +
27                 "Do not modify this file unless it is present under src/main directory ";
28     }
29
30 }