public interface SchemaObject
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String key,
List<String> values)
Add an extension with its values
|
void |
addExtension(String key,
String... values)
Add an extension with its values
|
void |
addName(String... names)
Add a new name to the list of names for this SchemaObject.
|
void |
clear()
Clear the current SchemaObject : remove all the references to other objects,
and all the Maps.
|
SchemaObject |
copy()
Copy the current SchemaObject on place
|
SchemaObject |
copy(SchemaObject original)
Copies the given schema object into this schema object.
|
boolean |
equals(Object o1) |
String |
getDescription()
Gets a short description about this SchemaObject.
|
List<String> |
getExtension(String extension)
Get back the values associated with a given extension.
|
Map<String,List<String>> |
getExtensions() |
String |
getName()
Gets the first name in the set of short names for this SchemaObject if
any exists for it.
|
List<String> |
getNames()
Gets short names for this SchemaObject if any exists for it, otherwise,
returns an empty list.
|
SchemaObjectType |
getObjectType()
The SchemaObject type :
AttributeType
DitCOntentRule
DitStructureRule
LdapComparator (specific to ADS)
LdapSyntaxe
MatchingRule
MatchingRuleUse
NameForm
Normalizer (specific to ADS)
ObjectClass
SyntaxChecker (specific to ADS)
|
String |
getOid()
Gets usually what is the numeric object identifier assigned to this
SchemaObject.
|
String |
getSchemaName()
Gets the name of the schema this SchemaObject is associated with.
|
String |
getSpecification()
Gets the SchemaObject specification.
|
boolean |
hasExtension(String extension)
Check if a given extension is part of the SchemaObject.
|
int |
hashCode() |
boolean |
isDisabled()
Tells if this SchemaObject is disabled.
|
boolean |
isEnabled()
Tells if this SchemaObject is enabled.
|
boolean |
isObsolete()
Gets whether or not this SchemaObject has been inactivated.
|
boolean |
isReadOnly()
Tells if this SchemaObject is ReadOnly.
|
void |
lock()
Transform the SchemaObject to an immutable object
|
void |
setDescription(String description)
Sets the SchemaObject's description
|
void |
setEnabled(boolean enabled)
Sets the SchemaObject state, either enabled or disabled.
|
void |
setExtensions(Map<String,List<String>> extensions)
Add an extensions with their values.
|
void |
setNames(List<String> names)
Sets the list of names for this SchemaObject.
|
void |
setObsolete(boolean obsolete)
Sets the Obsolete flag.
|
void |
setOid(String oid)
A special method used when renaming an SchemaObject: we may have to
change it's OID
|
void |
setReadOnly(boolean isReadOnly)
Sets the SchemaObject readOnly flag
|
void |
setSchemaName(String schemaName)
Sets the name of the schema this SchemaObject is associated with.
|
void |
setSpecification(String specification)
Sets the SchemaObject's specification
|
String getOid()
void setOid(String oid)
oid
- The new OIDList<String> getNames()
String getName()
void addName(String... names)
names
- The names to addvoid setNames(List<String> names)
names
- The list of names. Can be emptyString getDescription()
void setDescription(String description)
description
- The SchemaObject's descriptionString getSpecification()
void setSpecification(String specification)
specification
- The SchemaObject's specificationboolean isEnabled()
boolean isDisabled()
void setEnabled(boolean enabled)
enabled
- The current SchemaObject stateboolean isReadOnly()
void setReadOnly(boolean isReadOnly)
isReadOnly
- The current SchemaObject ReadOnly statusboolean isObsolete()
void setObsolete(boolean obsolete)
obsolete
- The Obsolete flag stateMap<String,List<String>> getExtensions()
boolean hasExtension(String extension)
extension
- The extension we are looking for.true
if the extension is present.List<String> getExtension(String extension)
extension
- The extension we are looking for.void addExtension(String key, String... values)
key
- The extension keyvalues
- The associated valuesvoid addExtension(String key, List<String> values)
key
- The extension keyvalues
- The associated valuesvoid setExtensions(Map<String,List<String>> extensions)
extensions
- The extensions mapSchemaObjectType getObjectType()
String getSchemaName()
void setSchemaName(String schemaName)
schemaName
- the new schema nameSchemaObject copy()
SchemaObject copy(SchemaObject original)
original
- the original SchemaObjectvoid clear()
void lock()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.