public class ObjectClassHolder extends SchemaElementImpl
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
|
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() |
getDescription, getExtension, getExtensions, getNames, getOid, isObsolete, setDescription, setExtensions, setNames, setObsolete
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 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 objectClassLdapException
- If something went wrongpublic String dnToLdif(String schemaName) throws LdapException
dnToLdif
in class SchemaElementImpl
schemaName
- The schema nameLdapException
- If the conversion goes wrongCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.