Spring LDAP Framework

Class SchemaToJava

  extended by org.springframework.ldap.odm.tools.SchemaToJava

public final class SchemaToJava
extends Object

This tool creates a Java class representation of a set of LDAP object classes for use with OdmManager.

The schema of a named list of object classes is read from an LDAP directory and used to generate a representative Java class. The Java class is automatically annotated with org.springframework.ldap.odm.annotations for use with OdmManager.

The mapping of LDAP attributes to their Java representations may be configured by supplying the -s flag or the equivalent --syntaxmap flag whose argument is the name of a file with the following structure:

 # List of attribute syntax to java class mappings

 # Syntax                       Java class
 # ------                       ----------, java.lang.Integer, some.other.Class

Syntaxes not included in this map will be represented as String if they are returned as Strings by the JNDI LDAP provider and will be represented as byte[] if they are returned by the provider as byte[].

Command line flags are as follows:

Paul Harvey <paul.at.pauls-place.me.uk>

Constructor Summary
Method Summary
static void main(String[] argv)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SchemaToJava()
Method Detail


public static void main(String[] argv)

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.