@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface Schema
Modifier and Type | Method and Description |
---|---|
AttributeSyntax |
getAttributeSyntax(java.lang.String oid)
Retrieves the attribute syntax with the specified OID, if available.
|
java.util.Map<java.lang.String,AttributeSyntax> |
getAttributeSyntaxesByOID()
Retrieves the set of attribute syntaxes defined in the schema, mapped from
OID to the corresponding attribute syntax.
|
AttributeType |
getAttributeType(java.lang.String name,
boolean returnDefault)
Retrieves the specified attribute type from the server schema, optionally
creating a new attribute type with the specified name if none is defined.
|
java.util.Map<java.lang.String,AttributeType> |
getAttributeTypesByName()
Retrieves the set of attribute types defined in the server schema, mapped
from lowercase name or OID to the attribute type definition.
|
DITContentRule |
getDITContentRule(ObjectClass structuralClass)
Retrieves the specified DIT content rule from the server schema.
|
java.util.Map<ObjectClass,DITContentRule> |
getDITContentRulesByStructuralClass()
Retrieves the set of DIT content rules defined in the server schema, mapped
from structural object class to the corresponding DIT structure rule
definition.
|
DITStructureRule |
getDITStructureRule(int ruleID)
Retrieves the specified DIT structure rule from the server schema.
|
DITStructureRule |
getDITStructureRule(NameForm nameForm)
Retrieves the specified DIT structure rule from the server schema.
|
java.util.Map<java.lang.Integer,DITStructureRule> |
getDITStructureRulesByRuleID()
Retrieves the set of DIT structure rules defined in the server schema,
mapped from rule ID to the corresponding DIT structure rule definition.
|
MatchingRule |
getMatchingRule(java.lang.String name)
Retrieves the specified matching rule from the server schema.
|
java.util.Map<java.lang.String,MatchingRule> |
getMatchingRulesByName()
Retrieves the set of matching rules defined in the server schema, mapped
from lowercase name or OID to the matching rule definition.
|
MatchingRuleUse |
getMatchingRuleUse(MatchingRule matchingRule)
Retrieves the specified matching rule use from the server schema.
|
java.util.Map<MatchingRule,MatchingRuleUse> |
getMatchingRuleUsesByMatchingRule()
Retrieves the set of matching rule uses defined in the server schema,
mapped from matching rule to its corresponding matching rule use.
|
NameForm |
getNameForm(ObjectClass structuralClass)
Retrieves the specified name form from the server schema.
|
NameForm |
getNameForm(java.lang.String name)
Retrieves the specified name form from the server schema.
|
java.util.Map<ObjectClass,NameForm> |
getNameFormsByStructuralClass()
Retrieves the set of name forms defined in the server schema, mapped from
structural object class to the corresponding name form definition.
|
ObjectClass |
getObjectClass(java.lang.String name,
boolean returnDefault)
Retrieves the specified object class from the server schema, optionally
creating a new class with the specified name if none is defined.
|
java.util.Map<java.lang.String,ObjectClass> |
getObjectClassesByName()
Retrieves the set of object classes defined in the server schema, mapped
from lowercase name or OID to the object class definition.
|
java.util.Map<java.lang.String,AttributeType> getAttributeTypesByName()
AttributeType getAttributeType(java.lang.String name, boolean returnDefault)
name
- The name or OID of the attribute type to retrieve.returnDefault
- Indicates whether to create a new attribute type
with the given name and a default settings if no
such attribute is defined in the server schema.null
if no such attribute
is defined in the schema and a default type should not be
returned.java.util.Map<java.lang.String,ObjectClass> getObjectClassesByName()
ObjectClass getObjectClass(java.lang.String name, boolean returnDefault)
name
- The name or OID of the object class to retrieve.returnDefault
- Indicates whether to create a new object class
with the given name and a default settings if no
such object class is defined in the server schema.null
if no such object
class is defined in the schema and a default class should not be
returned.java.util.Map<java.lang.String,AttributeSyntax> getAttributeSyntaxesByOID()
AttributeSyntax getAttributeSyntax(java.lang.String oid)
oid
- The OID of the attribute syntax to retrieve.null
if there is no
such syntax defined in the server.java.util.Map<java.lang.String,MatchingRule> getMatchingRulesByName()
MatchingRule getMatchingRule(java.lang.String name)
name
- The name or OID of the matching rule to retrieve.null
if no such matching
rule is defined in the schema.java.util.Map<ObjectClass,NameForm> getNameFormsByStructuralClass()
NameForm getNameForm(java.lang.String name)
name
- The name or OID of the name form to retrieve.null
if there is no name form
with the specified name or OID.NameForm getNameForm(ObjectClass structuralClass)
structuralClass
- The structural object class for which to retrieve
the corresponding name form.null
if there is no name form
associated with the specified structural object class.java.util.Map<ObjectClass,DITContentRule> getDITContentRulesByStructuralClass()
DITContentRule getDITContentRule(ObjectClass structuralClass)
structuralClass
- The structural object class for which to retrieve
the corresponding DIT content rule.null
if no such DIT
content rule is defined in the server schema.java.util.Map<java.lang.Integer,DITStructureRule> getDITStructureRulesByRuleID()
DITStructureRule getDITStructureRule(int ruleID)
ruleID
- The rule ID for the DIT structure rule to retrieve.null
if no such DIT
structure rule is defined in the server schema.DITStructureRule getDITStructureRule(NameForm nameForm)
nameForm
- The name form for which to retrieve the corresponding DIT
structure rule.null
if no such DIT
structure rule is defined in the server schema.java.util.Map<MatchingRule,MatchingRuleUse> getMatchingRuleUsesByMatchingRule()
MatchingRuleUse getMatchingRuleUse(MatchingRule matchingRule)
matchingRule
- The matching rule for which to retrieve the
corresponding matching rule use.null
if there is no
matching rule use associated with the provided matching rule.