org.codehaus.modello.plugin.ldap
Class LdapSchemaModelloGenerator

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.modello.plugin.AbstractModelloGenerator
          extended byorg.codehaus.modello.plugin.ldap.LdapSchemaModelloGenerator
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, org.codehaus.modello.plugin.ModelloGenerator

public class LdapSchemaModelloGenerator
extends org.codehaus.modello.plugin.AbstractModelloGenerator

Version:
$Id: LdapSchemaModelloGenerator.java 251 2005-03-08 00:25:07Z trygvis $
Author:
Trygve Laugstøl

Field Summary
private  java.util.Map attributeTypes
           
static java.lang.String FILENAME_PARAMETER
           
private  java.util.Map objectClasses
           
 
Fields inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
 
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
 
Constructor Summary
LdapSchemaModelloGenerator()
           
 
Method Summary
 void generate(org.codehaus.modello.model.Model model, java.util.Properties properties)
           
private  AttributeType makeAttribute(org.codehaus.modello.model.ModelField modelField)
           
private  void makeLdapObjects(org.codehaus.modello.model.Model model)
           
private  ObjectClass makeObjectClass(org.codehaus.modello.model.ModelClass modelClass)
           
private  java.lang.String makeObjectClassName(org.codehaus.modello.model.ModelClass modelClass)
           
private  void printAttributeList(java.io.PrintWriter printer, java.lang.String type, java.util.List attributes)
           
private  void writeSchema(java.io.PrintWriter printer)
           
 
Methods inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator
addModelImports, capitalise, getGeneratedVersion, getModel, getOutputDirectory, getParameter, getParameter, getParameter, initialize, isClassInModel, isCollection, isEmpty, isMap, isPackageWithVersion, singular, uncapitalise
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME_PARAMETER

public static final java.lang.String FILENAME_PARAMETER
See Also:
Constant Field Values

objectClasses

private java.util.Map objectClasses

attributeTypes

private java.util.Map attributeTypes
Constructor Detail

LdapSchemaModelloGenerator

public LdapSchemaModelloGenerator()
Method Detail

generate

public void generate(org.codehaus.modello.model.Model model,
                     java.util.Properties properties)
              throws org.codehaus.modello.ModelloException
Throws:
org.codehaus.modello.ModelloException

makeLdapObjects

private void makeLdapObjects(org.codehaus.modello.model.Model model)

writeSchema

private void writeSchema(java.io.PrintWriter printer)

makeObjectClass

private ObjectClass makeObjectClass(org.codehaus.modello.model.ModelClass modelClass)

makeAttribute

private AttributeType makeAttribute(org.codehaus.modello.model.ModelField modelField)

printAttributeList

private void printAttributeList(java.io.PrintWriter printer,
                                java.lang.String type,
                                java.util.List attributes)

makeObjectClassName

private java.lang.String makeObjectClassName(org.codehaus.modello.model.ModelClass modelClass)