|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.converter.schema.SchemaElementImpl
org.apache.directory.api.converter.schema.ObjectClassHolder
public class ObjectClassHolder
A bean used to encapsulate the literal String values of an ObjectClass definition found within an OpenLDAP schema configuration file.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.converter.schema.SchemaElementImpl |
|---|
description, extensions, names, obsolete, oid |
| Constructor Summary | |
|---|---|
ObjectClassHolder(String oid)
Create an instance of ObjectClass element |
|
| Method Summary | |
|---|---|
String |
dnToLdif(String schemaName)
Transform a schema name to a Dn pointing to the correct position in the DIT |
ObjectClassTypeEnum |
getClassType()
|
List<String> |
getMay()
|
List<String> |
getMust()
|
List<String> |
getSuperiors()
Get the list of superior for this objectClass |
void |
setClassType(ObjectClassTypeEnum classType)
Set the objectClass type. |
void |
setMay(List<String> may)
Set the list of optional attributes |
void |
setMust(List<String> must)
Set the list of mandatory attributes |
void |
setSuperiors(List<String> superiors)
Set the list of inherited objectClasses |
String |
toLdif(String schemaName)
Convert this objectClass to a Ldif string |
String |
toString()
|
| Methods inherited from class org.apache.directory.api.converter.schema.SchemaElementImpl |
|---|
extensionsToLdif, getDescription, getExtension, getExtensions, getNames, getOid, isObsolete, schemaToLdif, setDescription, setExtensions, setNames, setObsolete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectClassHolder(String oid)
OID - the OjectClass OID| Method Detail |
|---|
public List<String> getSuperiors()
public void setSuperiors(List<String> superiors)
superiors - The list of inherited objectClassespublic List<String> getMust()
public void setMust(List<String> must)
must - The list of mandatory attributespublic List<String> getMay()
public void setMay(List<String> may)
may - The list of optional attributespublic ObjectClassTypeEnum getClassType()
public void setClassType(ObjectClassTypeEnum classType)
classType - The objectClass type.
public String toLdif(String schemaName)
throws LdapException
schemaName - The name of the schema file containing this objectClass
LdapException - If something went wrongpublic String toString()
toString in class Object
public String dnToLdif(String schemaName)
throws LdapException
dnToLdif in class SchemaElementImplschemaName - The schema name
LdapException - If the conversion goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||