public class ObjectClassHolder extends SchemaElementImpl
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) |
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()
Return a String representing this ObjectClass.
|
extensionsToLdif, getDescription, getExtensions, getNames, getOid, isObsolete, schemaToLdif, setDescription, setExtensions, setNames, setObsolete
public ObjectClassHolder(String oid)
public 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 any error occurs.public String toString()
public String dnToLdif(String schemaName) throws LdapException
dnToLdif
in class SchemaElementImpl
LdapException
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.