Merge "Package names for enclosed Types of TOs were changed to fully qualified. Fully...
[controller.git] / opendaylight / sal / yang-prototype / yang / maven-yang / src / test / java / org / opendaylight / controller / yang2sources / spi / CodeGeneratorTestImpl.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 package org.opendaylight.controller.yang2sources.spi;
9
10 import java.io.File;
11 import java.util.Collection;
12 import java.util.Map;
13 import java.util.Set;
14
15 import org.apache.maven.plugin.logging.Log;
16 import org.apache.maven.project.MavenProject;
17 import org.opendaylight.controller.yang.model.api.Module;
18 import org.opendaylight.controller.yang.model.api.SchemaContext;
19
20 public class CodeGeneratorTestImpl implements CodeGenerator {
21
22     private Log log;
23
24     @Override
25     public Collection<File> generateSources(SchemaContext context,
26             File outputBaseDir, Set<Module> currentModuleBuilders) {
27         if (log != null) {
28             log.debug(getClass().getCanonicalName()
29                     + " generateSources:context: " + context);
30             log.debug(getClass().getCanonicalName()
31                     + " generateSources:outputBaseDir: " + outputBaseDir);
32             log.debug(getClass().getCanonicalName()
33                     + " generateSources:currentModuleBuilders: "
34                     + currentModuleBuilders);
35
36         }
37         return null;
38     }
39
40     @Override
41     public void setLog(Log log) {
42         this.log = log;
43     }
44
45     @Override
46     public void setAdditionalConfig(Map<String, String> additionalConfiguration) {
47         if (log != null)
48             log.debug(getClass().getCanonicalName() + " additionalConfig: "
49                     + additionalConfiguration);
50     }
51
52
53     @Override
54     public void setResourceBaseDir(File resourceBaseDir) {
55         if (log != null)
56             log.debug(getClass().getCanonicalName() + " resourceBaseDir: "
57                     + resourceBaseDir);
58     }
59
60     @Override
61     public void setMavenProject(MavenProject project) {
62         if (log != null)
63             log.debug(getClass().getCanonicalName() + " maven project: "
64                     + project);
65     }
66
67 }