public abstract class SchemaElementImpl extends Object implements SchemaElement
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
The schema element description
|
protected 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 |
|---|---|
abstract String |
dnToLdif(String schemaName) |
protected String |
extensionsToLdif(String ID)
Return the extensions formated as Ldif lines
|
String |
getDescription() |
List<String> |
getExtensions() |
List<String> |
getNames() |
String |
getOid()
Returns the schema element's OID
|
boolean |
isObsolete()
Tells if the attributeType is obsolete
|
protected String |
schemaToLdif(String schemaName,
String type) |
void |
setDescription(String description)
Set the schema element's description
|
void |
setExtensions(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()
SchemaElementisObsolete in interface SchemaElementSchemaElement.isObsolete()public void setObsolete(boolean obsolete)
SchemaElementsetObsolete in interface SchemaElementobsolete - The value to be setSchemaElement.setObsolete(boolean)public String getOid()
SchemaElementgetOid in interface SchemaElementSchemaElement.getOid()public String getDescription()
getDescription in interface SchemaElementSchemaElement.getDescription()public void setDescription(String description)
SchemaElementsetDescription in interface SchemaElementdescription - The schema element's descriptionSchemaElement.setDescription(String)public List<String> getNames()
getNames in interface SchemaElementSchemaElement.getNames()public void setNames(List<String> names)
SchemaElementsetNames in interface SchemaElementnames - The list of names of this schemaElementSchemaElement.setNames(List)public List<String> getExtensions()
getExtensions in interface SchemaElementSchemaElement.getExtensions()public void setExtensions(List<String> extensions)
SchemaElementsetExtensions in interface SchemaElementextensions - The list of extensions of this schemaElementSchemaElement.setExtensions(List)public abstract String dnToLdif(String schemaName) throws LdapException
LdapExceptionprotected String extensionsToLdif(String ID) throws LdapException
ID - The attributeId : can be m-objectClassExtension or
m-attributeTypeExtensionLdapException - If the conversion goes wrongprotected String schemaToLdif(String schemaName, String type) throws LdapException
LdapExceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.