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;
13 import org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator;
15 public class HeaderSerializer {
16 private static final String GENERATOR_CLASS = JMXGenerator.class.getCanonicalName();
18 public static String toString(Header header) {
19 return "Generated file" + "\n" +
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" +
27 "Do not modify this file unless it is present under src/main directory ";