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
8 package org.opendaylight.yangtools.yang2sources.spi;
11 import java.io.IOException;
12 import java.util.Collection;
15 import org.apache.maven.project.MavenProject;
16 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
17 import org.opendaylight.yangtools.yang.model.api.Module;
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
21 public class CodeGeneratorTestImpl implements BasicCodeGenerator, MavenProjectAware {
23 private static final Logger LOG = LoggerFactory.getLogger(CodeGeneratorTestImpl.class);
26 public Collection<File> generateSources(final EffectiveModelContext context, final File outputBaseDir,
27 final Set<Module> currentModules, final ModuleResourceResolver moduleResourcePathResolver)
29 LOG.debug("{} generateSources:context: {}", getClass().getCanonicalName(), context);
30 LOG.debug("{} generateSources:outputBaseDir: {}", getClass().getCanonicalName(), outputBaseDir);
31 LOG.debug("{} generateSources:currentModules: {}", getClass().getCanonicalName(), currentModules);
36 public void setAdditionalConfig(final Map<String, String> additionalConfiguration) {
37 LOG.debug("{} additionalConfig: {}", getClass().getCanonicalName(), additionalConfiguration);
41 public void setResourceBaseDir(final File resourceBaseDir) {
42 LOG.debug("{} resourceBaseDir: {}", getClass().getCanonicalName(), resourceBaseDir);
46 public void setMavenProject(final MavenProject project) {
47 LOG.debug("{} maven project: {}", getClass().getCanonicalName(), project);