public abstract class SchemaElementImpl extends Object implements SchemaElement
Constructor and Description |
---|
SchemaElementImpl() |
Modifier and Type | Method and Description |
---|---|
abstract String |
dnToLdif(String schemaName)
Transform a Schema Element to a LDIF String
|
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
|
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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toLdif
public SchemaElementImpl()
public boolean isObsolete()
isObsolete
in interface SchemaElement
public void setObsolete(boolean obsolete)
setObsolete
in interface SchemaElement
obsolete
- The value to be setpublic String getOid()
getOid
in interface SchemaElement
public String getDescription()
getDescription
in interface SchemaElement
public void setDescription(String description)
setDescription
in interface SchemaElement
description
- The schema element's descriptionpublic List<String> getNames()
getNames
in interface SchemaElement
SchemaElement.getNames()
public void setNames(List<String> names)
setNames
in interface SchemaElement
names
- The list of names of this schemaElementpublic List<String> getExtension(String key)
getExtension
in interface SchemaElement
key
- the Extension keypublic Map<String,List<String>> getExtensions()
getExtensions
in interface SchemaElement
public void setExtensions(Map<String,List<String>> extensions)
setExtensions
in interface SchemaElement
extensions
- The list of extensions of this schemaElementpublic abstract String dnToLdif(String schemaName) throws LdapException
schemaName
- The schema element to transformLdapException
- If the conversion goes wrongCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.