public class ObjectClassHolder extends SchemaElementImpl
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.schema.ObjectClassTypeEnum |
classType
The ObjectClass type
|
private List<String> |
may
The list of optional attributes
|
private List<String> |
must
The list of mandatory attributes
|
private List<String> |
superiors
The list of superiors
|
description, extensions, names, obsolete, oid| Constructor and Description |
|---|
ObjectClassHolder(String oid)
Create an instance of ObjectClass element
|
| Modifier and Type | Method and Description |
|---|---|
String |
dnToLdif(String schemaName)
Transform a schema name to a Dn pointing to the correct position in the DIT
|
org.apache.directory.api.ldap.model.schema.ObjectClassTypeEnum |
getClassType() |
List<String> |
getMay() |
List<String> |
getMust() |
List<String> |
getSuperiors()
Get the list of superior for this objectClass
|
void |
setClassType(org.apache.directory.api.ldap.model.schema.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() |
extensionsToLdif, getDescription, getExtension, getExtensions, getNames, getOid, isObsolete, schemaToLdif, setDescription, setExtensions, setNames, setObsoleteprivate org.apache.directory.api.ldap.model.schema.ObjectClassTypeEnum classType
public ObjectClassHolder(String oid)
oid - the OjectClass OIDpublic List<String> getSuperiors()
public void setSuperiors(List<String> superiors)
superiors - The list of inherited objectClassespublic void setMust(List<String> must)
must - The list of mandatory attributespublic void setMay(List<String> may)
may - The list of optional attributespublic org.apache.directory.api.ldap.model.schema.ObjectClassTypeEnum getClassType()
public void setClassType(org.apache.directory.api.ldap.model.schema.ObjectClassTypeEnum classType)
classType - The objectClass type.public String toLdif(String schemaName) throws org.apache.directory.api.ldap.model.exception.LdapException
schemaName - The name of the schema file containing this objectClassorg.apache.directory.api.ldap.model.exception.LdapException - If something went wrongpublic String toString()
public String dnToLdif(String schemaName) throws org.apache.directory.api.ldap.model.exception.LdapException
dnToLdif in class SchemaElementImplschemaName - The schema nameorg.apache.directory.api.ldap.model.exception.LdapException - If the conversion goes wrongCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.