public abstract class SchemaElementImpl extends Object implements SchemaElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
The schema element description
|
protected Map<String,List<String>> |
extensions
The optional list of extensions
|
protected List<String> |
names
The list of names for this schemaElements
|
protected boolean |
obsolete
The obsolete flag
|
protected String |
oid
The schema element oid
|
| Constructor and Description |
|---|
SchemaElementImpl() |
| Modifier and Type | Method and Description |
|---|---|
private String |
descToLdif() |
abstract String |
dnToLdif(String schemaName)
Transform a Schema Element to a LDIF String
|
protected String |
extensionsToLdif(String id)
Return the extensions formated as Ldif lines
|
String |
getDescription() |
List<String> |
getExtension(String key) |
Map<String,List<String>> |
getExtensions() |
List<String> |
getNames() |
String |
getOid() |
boolean |
isObsolete()
Tells if the attributeType is obsolete
|
private String |
nameToLdif() |
private String |
oidToLdif() |
protected String |
schemaToLdif(String schemaName,
String type)
Transform a Schema to a LDIF formated String
|
void |
setDescription(String description)
Set the schema element's description
|
void |
setExtensions(Map<String,List<String>> extensions)
Set a list of extensions for a schemaElement
|
void |
setNames(List<String> names)
Set a list of names for a schemaElement
|
void |
setObsolete(boolean obsolete)
Set the obsolete flag
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoLdifprotected String oid
protected String description
protected boolean obsolete
public boolean isObsolete()
isObsolete in interface SchemaElementpublic void setObsolete(boolean obsolete)
setObsolete in interface SchemaElementobsolete - The value to be setpublic String getOid()
getOid in interface SchemaElementpublic String getDescription()
getDescription in interface SchemaElementpublic void setDescription(String description)
setDescription in interface SchemaElementdescription - The schema element's descriptionpublic List<String> getNames()
getNames in interface SchemaElementSchemaElement.getNames()public void setNames(List<String> names)
setNames in interface SchemaElementnames - The list of names of this schemaElementpublic List<String> getExtension(String key)
getExtension in interface SchemaElementkey - the Extension keypublic Map<String,List<String>> getExtensions()
getExtensions in interface SchemaElementpublic void setExtensions(Map<String,List<String>> extensions)
setExtensions in interface SchemaElementextensions - The list of extensions of this schemaElementprivate String oidToLdif()
private String nameToLdif() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - If the conversion goes wrongprivate String descToLdif() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - If the conversion goes wrongpublic abstract String dnToLdif(String schemaName) throws org.apache.directory.api.ldap.model.exception.LdapException
schemaName - The schema element to transformorg.apache.directory.api.ldap.model.exception.LdapException - If the conversion goes wrongprotected String extensionsToLdif(String id) throws org.apache.directory.api.ldap.model.exception.LdapException
id - The attributeId : can be m-objectClassExtension or
m-attributeTypeExtensionorg.apache.directory.api.ldap.model.exception.LdapException - If the conversion goes wrongprotected String schemaToLdif(String schemaName, String type) throws org.apache.directory.api.ldap.model.exception.LdapException
schemaName - The schema to transformtype - The ObjectClass typeorg.apache.directory.api.ldap.model.exception.LdapException - If the transformation can't be doneCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.