org.apache.directory.server.core.tools.schema
Class DirectorySchemaToolMojo

java.lang.Object
  extended by AbstractMojo
      extended by org.apache.directory.server.core.tools.schema.DirectorySchemaToolMojo

public class DirectorySchemaToolMojo
extends AbstractMojo

Maven 2 plugin mojo wrapper for directory plugin.

Version:
$Rev: 434570 $
Author:
Apache Directory Project

Constructor Summary
DirectorySchemaToolMojo()
           
 
Method Summary
 void execute()
           
protected  boolean exists(java.lang.String defaultClass, ProducerTypeEnum type)
           
protected  void generateAttributeTypes(OpenLdapSchemaParser parser, BootstrapSchema schema)
           
protected  void generateObjectClasses(OpenLdapSchemaParser parser, BootstrapSchema schema)
           
protected  void generateRest(BootstrapSchema schema)
           
protected  void generateSchema(BootstrapSchema schema)
           
protected  java.io.Reader getResourceReader(java.lang.String res)
           
protected  java.io.FileWriter getResourceWriter(java.lang.String pkg, java.lang.String classname)
           
protected  boolean mkdirs(java.lang.String base, java.lang.String path)
           
protected  void runVelocity(java.lang.String pkg, java.lang.String uqcn, VelocityContext context, java.lang.String template, ProducerTypeEnum type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectorySchemaToolMojo

public DirectorySchemaToolMojo()
                        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

generateSchema

protected void generateSchema(BootstrapSchema schema)
                       throws java.lang.Exception
Throws:
java.lang.Exception

generateRest

protected void generateRest(BootstrapSchema schema)
                     throws java.lang.Exception
Throws:
java.lang.Exception

generateAttributeTypes

protected void generateAttributeTypes(OpenLdapSchemaParser parser,
                                      BootstrapSchema schema)
                               throws java.lang.Exception
Throws:
java.lang.Exception

generateObjectClasses

protected void generateObjectClasses(OpenLdapSchemaParser parser,
                                     BootstrapSchema schema)
                              throws java.lang.Exception
Throws:
java.lang.Exception

runVelocity

protected void runVelocity(java.lang.String pkg,
                           java.lang.String uqcn,
                           VelocityContext context,
                           java.lang.String template,
                           ProducerTypeEnum type)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getResourceReader

protected java.io.Reader getResourceReader(java.lang.String res)
                                    throws java.io.IOException
Throws:
java.io.IOException

mkdirs

protected boolean mkdirs(java.lang.String base,
                         java.lang.String path)

getResourceWriter

protected java.io.FileWriter getResourceWriter(java.lang.String pkg,
                                               java.lang.String classname)
                                        throws java.io.IOException
Throws:
java.io.IOException

exists

protected boolean exists(java.lang.String defaultClass,
                         ProducerTypeEnum type)

execute

public void execute()
             throws MojoExecutionException
Throws:
MojoExecutionException