c3e7d3038236aab0c224c7f3d51c6be00e6233bb
[yangtools.git] / code-generator / maven-sal-api-gen-plugin / src / main / java / org / opendaylight / yangtools / yang / unified / doc / generator / maven / DocumentationGeneratorImpl.java
1 /*
2  * Copyright (c) 2014 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.yangtools.yang.unified.doc.generator.maven;
9
10 import java.io.File;
11 import java.io.IOException;
12 import java.util.Collection;
13 import java.util.Map;
14 import java.util.Set;
15
16 import org.apache.maven.plugin.logging.Log;
17 import org.apache.maven.project.MavenProject;
18 import org.opendaylight.yangtools.yang.model.api.Module;
19 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
20 import org.opendaylight.yangtools.yang.unified.doc.generator.GeneratorImpl;
21 import org.opendaylight.yangtools.yang2sources.spi.CodeGenerator;
22
23 public class DocumentationGeneratorImpl extends GeneratorImpl implements CodeGenerator {
24
25     @Override
26     public Collection<File> generateSources(SchemaContext arg0, File arg1, Set<Module> arg2) throws IOException {
27         // TODO Auto-generated method stub
28          return generate(arg0, arg1, arg2);
29     }
30
31     @Override
32     public void setLog(Log log) {
33         // use maven logging if necessary
34
35     }
36
37     @Override
38     public void setAdditionalConfig(Map<String, String> additionalConfiguration) {
39         // no additional config utilized
40     }
41
42     @Override
43     public void setResourceBaseDir(File resourceBaseDir) {
44         // no resource processing necessary
45     }
46
47     @Override
48     public void setMavenProject(MavenProject project) {
49         // no additional information needed
50     }
51 }