org.codehaus.mojo.castor
Class ConvertDTD2XSDMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.castor.ConvertDTD2XSDMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ConvertDTD2XSDMojo
extends org.apache.maven.plugin.AbstractMojo

A mojo that uses Castor XML to convert a DTD document to corresponding XML Schema document.

Author:
Stevo Slavic
Is defined by the goal name:
dtd2xsd

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ConvertDTD2XSDMojo()
           
 
Method Summary
 void execute()
          
 void setDest(File dest)
          Sets the schema file to output.
 void setSource(File source)
          Sets the DTD file to convert.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertDTD2XSDMojo

public ConvertDTD2XSDMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException

Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
Mojo.execute()

setSource

public void setSource(File source)
Sets the DTD file to convert.

Parameters:
source - the DTD file to convert.

setDest

public void setDest(File dest)
Sets the schema file to output.

Parameters:
dest - the schema file to output.


Copyright © 2005-2012 Codehaus. All Rights Reserved.