|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.DitStructureRule
public class DitStructureRule
A dITStructureRule definition. A dITStructureRules is a rule governing the structure of the DIT by specifying a permitted superior to subordinate entry relationship. A structure rule relates a nameForm, and therefore a STRUCTURAL objectClass, to superior dITStructureRules. This permits entries of the STRUCTURAL objectClass identified by the nameForm to exist in the DIT as subordinates to entries governed by the indicated superior dITStructureRules. Hence dITStructureRules only apply to structural object classes.
According to ldapbis [MODELS]:
DIT structure rule descriptions are written according to the ABNF:
DITStructureRuleDescription = LPAREN WSP
ruleid ; rule identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "FORM" SP oid ; NameForm
[ SP "SUP" ruleids ] ; superior rules
extensions WSP RPAREN ; extensions
ruleids = ruleid / ( LPAREN WSP ruleidlist WSP RPAREN )
ruleidlist = ruleid *( SP ruleid )
ruleid = number
where:
[ruleid] is the rule identifier of this DIT structure rule;
NAME [qdescrs] are short names (descriptors) identifying this DIT
structure rule;
DESC [qdstring] is a short descriptive string;
OBSOLETE indicates this DIT structure rule use is not active;
FORM is specifies the name form associated with this DIT structure
rule;
SUP identifies superior rules (by rule id); and
[extensions] describe extensions.
If no superior rules are identified, the DIT structure rule applies
to an autonomous administrative point (e.g. the root vertex of the
subtree controlled by the subschema) [X.501].
DescriptionUtils.getDescription(DitStructureRule),
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
|---|
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification |
| Constructor Summary | |
|---|---|
DitStructureRule(int ruleId)
Creates a new instance of DitStructureRule |
|
| Method Summary | |
|---|---|
void |
addSuperRule(Integer superRule)
Adds a new superior RuleId |
void |
clear()
Clear the current SchemaObject : remove all the references to other objects, and all the Maps. |
DitStructureRule |
copy()
Copy the current SchemaObject on place |
boolean |
equals(Object o)
|
String |
getForm()
|
String |
getOid()
The DIT structure rule does not have an OID, so this implementations always throws an exception. |
int |
getRuleId()
|
List<Integer> |
getSuperRules()
|
void |
setForm(String form)
Sets the associated NameForm's OID |
void |
setRuleId(int ruleId)
Sets the rule identifier of this DIT structure rule; |
void |
setSuperRules(List<Integer> superRules)
Sets the list of superior RuleIds |
String |
toString()
|
| Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject |
|---|
addExtension, addExtension, addName, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DitStructureRule(int ruleId)
| Method Detail |
|---|
public String getForm()
public void setForm(String form)
form - The NameForm's OIDpublic int getRuleId()
public void setRuleId(int ruleId)
ruleId - the rule identifier of this DIT structure rule;public List<Integer> getSuperRules()
public void setSuperRules(List<Integer> superRules)
superRules - the list of superior RuleIdspublic void addSuperRule(Integer superRule)
superRule - The superior RuleID to addpublic String getOid()
getOid in interface SchemaObjectgetOid in class AbstractSchemaObjectpublic String toString()
toString in class Objectpublic DitStructureRule copy()
copy in interface SchemaObjectcopy in class AbstractSchemaObjectpublic boolean equals(Object o)
equals in interface SchemaObjectequals in class AbstractSchemaObjectpublic void clear()
clear in interface SchemaObjectclear in class AbstractSchemaObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||