/* The MIT License . Copyright (c) 2005, Ghent University (UGent) . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package org.codehaus.mojo.linguinemaps; import com.oy.shared.lm.ant.TaskOptions; import com.oy.shared.lm.graph.IGraphModel; import com.oy.shared.lm.in.WSDLtoGRAPH; import com.oy.shared.lm.out.GRAPHtoDOTtoGIF; import java.util.Locale; /** * Generates graphical overview of a XML Web-Services (WSDL) file. Parameter * overridden: type=WSDL. * * @author Jurgen De Landsheer * @version 1.0.0-alpha-1 - 21 December 2005 * * @goal wsdlreport * @description Maven 2 Plugin: Linguine Maps: XML Web-Services (WSDL) file */ public class WsdlReport extends LinguineMapsPlugin { /** * Creates a new WsdlReport object. */ public WsdlReport() { super(); setType(TYPE_WSDL); } /** * @see org.apache.maven.reporting.MavenReport#getDescription(java.util.Locale) */ public String getDescription(Locale locale) { return "Maven 2 Plugin: Linguine Maps for Wsdl"; } /** * @see org.apache.maven.reporting.MavenReport#getName(java.util.Locale) */ public String getName(Locale locale) { return "Linguine Maps for Wsdl"; } /** * DOC_ME * * @param options DOC_ME * * @throws Exception DOC_ME */ protected void run(TaskOptions options) throws Exception { info(); IGraphModel graph = WSDLtoGRAPH.load(options); GRAPHtoDOTtoGIF.transform(graph, options.dotFile, options.outFile, options.exeFile); } }