org.codehaus.modello.plugin.ldap
Class LdapSchemaModelloGenerator
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.modello.plugin.AbstractModelloGenerator
org.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
Fields inherited from class org.codehaus.modello.plugin.AbstractModelloGenerator |
|
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|
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 |
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
LdapSchemaModelloGenerator
public LdapSchemaModelloGenerator()
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)