|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jldapbeans.lang.LdapClass
public final class LdapClass
Representation of a jLDAPBeans' class.
The LdapClass
is used as a LDAP bean instantiator. We can use it in many forms
such as:
objectClass
es.
Class
es or LdapClass
es objects.
Field Summary | |
---|---|
static BeanRepository |
BEAN_REPOSITORY
|
Method Summary | |
---|---|
static java.lang.Object |
aggregate(java.lang.Object obj,
java.lang.Class<?>... classes)
Aggregates an array of any kind of java classes to an LDAP bean instance. |
static java.lang.Object |
aggregate(java.lang.Object obj,
LdapClass... ldapClasses)
Aggregates an array of any kind of LDAP classes to an LDAP bean instance. |
static LdapClass |
classOf(java.lang.Object obj)
Obtains a LdapClass instance for an object that may be a LDAP bean. |
boolean |
equals(java.lang.Object o)
|
static LdapClass |
forName(java.lang.String... objectClasses)
Searches in BeanRepository for the names specified as objectClass maps each one as a java.lang.Class. |
java.lang.Class<?>[] |
getAbstractClasses()
Obtains an array of java classes that reflect the ABSTRACT objectClasses used in this LdapClass |
java.lang.Class<?>[] |
getAuxiliaryClasses()
Obtains an array of java classes that reflect the AUXILIARY objectClasses used in this LdapClass. |
protected java.lang.Class<?>[] |
getClasses()
Accesses the class array used used inside this LdapClass instance. |
java.lang.Class<?>[] |
getStructuralClasses()
Obtains an array of java classes that reflect the STRUCTURAL objectClasses used in this LdapClass. |
int |
hashCode()
|
static boolean |
isLdapBean(java.lang.Object obj)
Identifies if a given object is an instance of an LdapJB |
static LdapClass |
merge(java.lang.Class<?>... classes)
Merges an array of any kind of java class into a LdapClass instance indentifying which of the classes received are valid LDAP bean classes. |
static LdapClass |
merge(LdapClass... ldapClasses)
Merges an array of instances of LdapClass |
static LdapClass |
merge(LdapClass ldapClass,
java.lang.Class<?>... classes)
Merges a LdapClass instance with an array of any kind of java classes. |
java.lang.Object |
newInstance()
Creates a new instance of a LDAP bean using a net.sf.cglib.proxy.Enhancer to support the implementation of every java class that the bean must support. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final BeanRepository BEAN_REPOSITORY
Method Detail |
---|
public static java.lang.Object aggregate(java.lang.Object obj, java.lang.Class<?>... classes) throws LdapClassException
There is one thing that must be in mind of people who use this method to aggregate objectClasses to an already existent instance and that things is that the properties of the classes aggregated are not initialized by this method.
instance
- An already existent instance of a LDAP bean.classes
- Any kind of java classes to be aggregated to the instance
LdapClassException
- If it is not possible aggregate classes.public static java.lang.Object aggregate(java.lang.Object obj, LdapClass... ldapClasses) throws LdapClassException
There is one thing that must be in mind of people who use this method to aggregate objectClasses to an already existent instance and that things is that the properties of the classes aggregated are not initialized by this method.
instance
- An already existent instance of a LDAP bean.classes
- Any kind of LDAP classes to be aggregated to the instance
LdapClassException
- If it is not possible aggregate classes.public static LdapClass classOf(java.lang.Object obj) throws LdapClassException
obj
- The object where search for LDAP classes.
LdapClass
instance that represents the LDAP classes of the
object specified.
LdapClassException
- If the object doesn't implement any LDAP classpublic static LdapClass forName(java.lang.String... objectClasses) throws LdapClassException, java.lang.ClassNotFoundException
objectClasses
- Array of objectClasses we need to search for.
LdapClassException
- If we can not found anyone of the objectClasses.
java.lang.ClassNotFoundException
- If we can not fond anyone of the java classes.public static boolean isLdapBean(java.lang.Object obj)
obj
- A possible LdapJB instance
public static LdapClass merge(java.lang.Class<?>... classes) throws LdapClassException
classes
- An array of any kind of java class.
LdapClassException
- If there is not any valid LDAP bean class.public static LdapClass merge(LdapClass... ldapClasses) throws LdapClassException
beanClasses
- A LdapClass array
LdapClassException
public static LdapClass merge(LdapClass ldapClass, java.lang.Class<?>... classes) throws LdapClassException
ldapClass
- Any LdapClass instanceclasses
- An array of any kind of java classes
LdapClassException
- If the is not any valid LDAP bean class in the array.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.Class<?>[] getAbstractClasses()
public java.lang.Class<?>[] getAuxiliaryClasses()
protected java.lang.Class<?>[] getClasses()
public java.lang.Class<?>[] getStructuralClasses()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object newInstance() throws BeanInstantiationException
BeanInstantiationException
- If some exception is catched during the instantiation
process.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |