|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.schema.SchemaElement
com.unboundid.ldap.sdk.schema.DITStructureRuleDefinition
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DITStructureRuleDefinition
This class provides a data structure that describes an LDAP DIT structure rule schema element.
Constructor Summary | |
---|---|
DITStructureRuleDefinition(int ruleID,
java.lang.String[] names,
java.lang.String description,
boolean isObsolete,
java.lang.String nameFormID,
int[] superiorRuleIDs,
java.util.Map<java.lang.String,java.lang.String[]> extensions)
Creates a new DIT structure rule with the provided information. |
|
DITStructureRuleDefinition(int ruleID,
java.lang.String name,
java.lang.String description,
java.lang.String nameFormID,
java.lang.Integer superiorRuleID,
java.util.Map<java.lang.String,java.lang.String[]> extensions)
Creates a new DIT structure rule with the provided information. |
|
DITStructureRuleDefinition(java.lang.String s)
Creates a new DIT structure rule from the provided string representation. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this schema element. |
java.lang.String |
getDescription()
Retrieves the description for this DIT structure rule, if available. |
java.util.Map<java.lang.String,java.lang.String[]> |
getExtensions()
Retrieves the set of extensions for this DIT structure rule. |
java.lang.String |
getNameFormID()
Retrieves the name or OID of the name form with which this DIT structure rule is associated. |
java.lang.String |
getNameOrRuleID()
Retrieves the primary name that can be used to reference this DIT structure rule. |
java.lang.String[] |
getNames()
Retrieves the set of names for this DIT structure rule. |
int |
getRuleID()
Retrieves the rule ID for this DIT structure rule. |
int[] |
getSuperiorRuleIDs()
Retrieves the rule IDs of the superior rules for this DIT structure rule. |
int |
hashCode()
Retrieves a hash code for this schema element. |
boolean |
hasNameOrRuleID(java.lang.String s)
Indicates whether the provided string matches the rule ID or any of the names for this DIT structure rule. |
boolean |
isObsolete()
Indicates whether this DIT structure rule is declared obsolete. |
java.lang.String |
toString()
Retrieves a string representation of this DIT structure rule definition, in the format described in RFC 4512 section 4.1.7.1. |
Methods inherited from class com.unboundid.ldap.sdk.schema.SchemaElement |
---|
extensionsEqual |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DITStructureRuleDefinition(java.lang.String s) throws LDAPException
s
- The string representation of the DIT structure rule to create,
using the syntax described in RFC 4512 section 4.1.7.1. It must
not be null
.
LDAPException
- If the provided string cannot be decoded as a DIT
structure rule definition.public DITStructureRuleDefinition(int ruleID, java.lang.String name, java.lang.String description, java.lang.String nameFormID, java.lang.Integer superiorRuleID, java.util.Map<java.lang.String,java.lang.String[]> extensions)
ruleID
- The rule ID for this DIT structure rule.name
- The name for this DIT structure rule. It may be
null
if the DIT structure rule should only
be referenced by rule ID.description
- The description for this DIT structure rule. It
may be null
if there is no description.nameFormID
- The name or OID of the name form with which this
DIT structure rule is associated. It must not be
null
.superiorRuleID
- The superior rule ID for this DIT structure rule.
It may be null
if there are no superior
rule IDs.extensions
- The set of extensions for this DIT structure rule.
It may be null
or empty if there are no
extensions.public DITStructureRuleDefinition(int ruleID, java.lang.String[] names, java.lang.String description, boolean isObsolete, java.lang.String nameFormID, int[] superiorRuleIDs, java.util.Map<java.lang.String,java.lang.String[]> extensions)
ruleID
- The rule ID for this DIT structure rule.names
- The set of names for this DIT structure rule. It
may be null
or empty if the DIT structure
rule should only be referenced by rule ID.description
- The description for this DIT structure rule. It
may be null
if there is no description.isObsolete
- Indicates whether this DIT structure rule is
declared obsolete.nameFormID
- The name or OID of the name form with which this
DIT structure rule is associated. It must not be
null
.superiorRuleIDs
- The superior rule IDs for this DIT structure rule.
It may be null
or empty if there are no
superior rule IDs.extensions
- The set of extensions for this DIT structure rule.
It may be null
or empty if there are no
extensions.Method Detail |
---|
public int getRuleID()
public java.lang.String[] getNames()
public java.lang.String getNameOrRuleID()
public boolean hasNameOrRuleID(java.lang.String s)
s
- The string for which to make the determination. It must not be
null
.
true
if the provided string matches the rule ID or any of
the names for this DIT structure rule, or false
if not.public java.lang.String getDescription()
null
if
there is no description defined.public boolean isObsolete()
true
if this DIT structure rule is declared obsolete, or
false
if it is not.public java.lang.String getNameFormID()
public int[] getSuperiorRuleIDs()
public java.util.Map<java.lang.String,java.lang.String[]> getExtensions()
public int hashCode()
hashCode
in class SchemaElement
public boolean equals(java.lang.Object o)
equals
in class SchemaElement
o
- The object for which to make the determination.
true
if the provided object may be considered equal to
this schema element, or false
if not.public java.lang.String toString()
toString
in class SchemaElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |