public final class DitStructureRule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DitStructureRule.Builder
A fluent API for incrementally constructing DIT structure rules.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
true if the provided object is a DIT structure rule
having the same rule ID as this DIT structure rule. |
String |
getDescription()
Returns the description of this schema element, or the empty string if it does not have a description.
|
Map<String,List<String>> |
getExtraProperties()
Returns an unmodifiable map containing all of the extra properties associated with this schema element.
|
NameForm |
getNameForm()
Retrieves the name form for this DIT structure rule.
|
String |
getNameOrRuleId()
Retrieves the name or rule ID for this schema definition.
|
List<String> |
getNames()
Returns an unmodifiable list containing the user-defined names that may
be used to reference this schema definition.
|
Integer |
getRuleId()
Retrieves the rule ID for this DIT structure rule.
|
Set<DitStructureRule> |
getSuperiorRules()
Returns an unmodifiable set containing the superior rules for this DIT
structure rule.
|
int |
hashCode()
Returns the hash code for this DIT structure rule.
|
boolean |
hasName(String name)
Indicates whether this schema definition has the specified name.
|
boolean |
isObsolete()
Indicates whether this schema definition is declared "obsolete".
|
String |
toString()
Returns the string representation of this schema element as defined in
RFC 2252.
|
public boolean equals(Object o)
true
if the provided object is a DIT structure rule
having the same rule ID as this DIT structure rule.o
- The object to be compared.true
if the provided object is a DIT structure rule
having the same rule ID as this DIT structure rule.public NameForm getNameForm()
public String getNameOrRuleId()
public List<String> getNames()
public Integer getRuleId()
null
).public Set<DitStructureRule> getSuperiorRules()
public int hashCode()
public boolean hasName(String name)
name
- The name for which to make the determination.true
if the specified name is assigned to this
schema definition, or false
if not.public boolean isObsolete()
true
if this schema definition is declared
"obsolete", or false
if not.public final String getDescription()
SchemaElement
getDescription
in interface SchemaElement
public final Map<String,List<String>> getExtraProperties()
SchemaElement
getExtraProperties
in interface SchemaElement
Copyright 2010-2022 ForgeRock AS.