@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DITContentRuleDefinition extends SchemaElement
Constructor and Description |
---|
DITContentRuleDefinition(java.lang.String s)
Creates a new DIT content rule from the provided string representation.
|
DITContentRuleDefinition(java.lang.String oid,
java.lang.String[] names,
java.lang.String description,
boolean isObsolete,
java.lang.String[] auxiliaryClasses,
java.lang.String[] requiredAttributes,
java.lang.String[] optionalAttributes,
java.lang.String[] prohibitedAttributes,
java.util.Map<java.lang.String,java.lang.String[]> extensions)
Creates a new DIT content rule with the provided information.
|
DITContentRuleDefinition(java.lang.String oid,
java.lang.String name,
java.lang.String description,
java.util.Collection<java.lang.String> auxiliaryClasses,
java.util.Collection<java.lang.String> requiredAttributes,
java.util.Collection<java.lang.String> optionalAttributes,
java.util.Collection<java.lang.String> prohibitedAttributes,
java.util.Map<java.lang.String,java.lang.String[]> extensions)
Creates a new DIT content rule with the provided information.
|
DITContentRuleDefinition(java.lang.String oid,
java.lang.String name,
java.lang.String description,
java.lang.String[] auxiliaryClasses,
java.lang.String[] requiredAttributes,
java.lang.String[] optionalAttributes,
java.lang.String[] prohibitedAttributes,
java.util.Map<java.lang.String,java.lang.String[]> extensions)
Creates a new DIT content rule with the provided information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this schema element.
|
java.lang.String[] |
getAuxiliaryClasses()
Retrieves the names or OIDs of the auxiliary object classes that may be
present in entries containing the structural class for this DIT content
rule.
|
java.lang.String |
getDescription()
Retrieves the description for this DIT content rule, if available.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getExtensions()
Retrieves the set of extensions for this DIT content rule.
|
java.lang.String |
getNameOrOID()
Retrieves the primary name that can be used to reference this DIT content
rule.
|
java.lang.String[] |
getNames()
Retrieves the set of names for this DIT content rule.
|
java.lang.String |
getOID()
Retrieves the OID for the structural object class associated with this
DIT content rule.
|
java.lang.String[] |
getOptionalAttributes()
Retrieves the names or OIDs of the attributes that are optionally allowed
to be present in entries containing the structural object class for this
DIT content rule.
|
java.lang.String[] |
getProhibitedAttributes()
Retrieves the names or OIDs of the attributes that are not allowed to be
present in entries containing the structural object class for this DIT
content rule.
|
java.lang.String[] |
getRequiredAttributes()
Retrieves the names or OIDs of the attributes that are required to be
present in entries containing the structural object class for this DIT
content rule.
|
SchemaElementType |
getSchemaElementType()
Retrieves the type of schema element that this object represents.
|
int |
hashCode()
Retrieves a hash code for this schema element.
|
boolean |
hasNameOrOID(java.lang.String s)
Indicates whether the provided string matches the OID or any of the names
for this DIT content rule.
|
boolean |
isObsolete()
Indicates whether this DIT content rule is declared obsolete.
|
java.lang.String |
toString()
Retrieves a string representation of this DIT content rule definition, in
the format described in RFC 4512 section 4.1.6.
|
allowEmptyDescription, extensionsEqual, setAllowEmptyDescription
public DITContentRuleDefinition(@NotNull java.lang.String s) throws LDAPException
s
- The string representation of the DIT content rule to create,
using the syntax described in RFC 4512 section 4.1.6. It must
not be null
.LDAPException
- If the provided string cannot be decoded as a DIT
content rule definition.public DITContentRuleDefinition(@NotNull java.lang.String oid, @Nullable java.lang.String name, @Nullable java.lang.String description, @Nullable java.lang.String[] auxiliaryClasses, @Nullable java.lang.String[] requiredAttributes, @Nullable java.lang.String[] optionalAttributes, @Nullable java.lang.String[] prohibitedAttributes, @Nullable java.util.Map<java.lang.String,java.lang.String[]> extensions)
oid
- The OID for the structural object class with
which this DIT content rule is associated.
It must not be null
.name
- The name for this DIT content rule. It may
be null
if the DIT content rule
should only be referenced by OID.description
- The description for this DIT content rule.
It may be null
if there is no
description.auxiliaryClasses
- The names/OIDs of the auxiliary object
classes that may be present in entries
containing this DIT content rule.requiredAttributes
- The names/OIDs of the attributes which must
be present in entries containing this DIT
content rule.optionalAttributes
- The names/OIDs of the attributes which may be
present in entries containing this DIT
content rule.prohibitedAttributes
- The names/OIDs of the attributes which may
not be present in entries containing this DIT
content rule.extensions
- The set of extensions for this DIT content
rule. It may be null
or empty if
there should not be any extensions.public DITContentRuleDefinition(@NotNull java.lang.String oid, @Nullable java.lang.String name, @Nullable java.lang.String description, @Nullable java.util.Collection<java.lang.String> auxiliaryClasses, @Nullable java.util.Collection<java.lang.String> requiredAttributes, @Nullable java.util.Collection<java.lang.String> optionalAttributes, @Nullable java.util.Collection<java.lang.String> prohibitedAttributes, @Nullable java.util.Map<java.lang.String,java.lang.String[]> extensions)
oid
- The OID for the structural object class with
which this DIT content rule is associated.
It must not be null
.name
- The name for this DIT content rule. It may
be null
if the DIT content rule
should only be referenced by OID.description
- The description for this DIT content rule.
It may be null
if there is no
description.auxiliaryClasses
- The names/OIDs of the auxiliary object
classes that may be present in entries
containing this DIT content rule.requiredAttributes
- The names/OIDs of the attributes which must
be present in entries containing this DIT
content rule.optionalAttributes
- The names/OIDs of the attributes which may be
present in entries containing this DIT
content rule.prohibitedAttributes
- The names/OIDs of the attributes which may
not be present in entries containing this DIT
content rule.extensions
- The set of extensions for this DIT content
rule. It may be null
or empty if
there should not be any extensions.public DITContentRuleDefinition(@NotNull java.lang.String oid, @Nullable java.lang.String[] names, @Nullable java.lang.String description, boolean isObsolete, @Nullable java.lang.String[] auxiliaryClasses, @Nullable java.lang.String[] requiredAttributes, @Nullable java.lang.String[] optionalAttributes, @Nullable java.lang.String[] prohibitedAttributes, @Nullable java.util.Map<java.lang.String,java.lang.String[]> extensions)
oid
- The OID for the structural object class with
which this DIT content rule is associated.
It must not be null
.names
- The set of names for this DIT content rule.
It may be null
or empty if the DIT
content rule should only be referenced by
OID.description
- The description for this DIT content rule.
It may be null
if there is no
description.isObsolete
- Indicates whether this DIT content rule is
declared obsolete.auxiliaryClasses
- The names/OIDs of the auxiliary object
classes that may be present in entries
containing this DIT content rule.requiredAttributes
- The names/OIDs of the attributes which must
be present in entries containing this DIT
content rule.optionalAttributes
- The names/OIDs of the attributes which may be
present in entries containing this DIT
content rule.prohibitedAttributes
- The names/OIDs of the attributes which may
not be present in entries containing this DIT
content rule.extensions
- The set of extensions for this DIT content
rule. It may be null
or empty if
there should not be any extensions.@NotNull public java.lang.String getOID()
@NotNull public java.lang.String[] getNames()
@NotNull public java.lang.String getNameOrOID()
public boolean hasNameOrOID(@NotNull 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 OID or any of the
names for this DIT content rule, or false
if not.@Nullable public java.lang.String getDescription()
null
if
there is no description defined.public boolean isObsolete()
true
if this DIT content rule is declared obsolete, or
false
if it is not.@NotNull public java.lang.String[] getAuxiliaryClasses()
@NotNull public java.lang.String[] getRequiredAttributes()
@NotNull public java.lang.String[] getOptionalAttributes()
@NotNull public java.lang.String[] getProhibitedAttributes()
@NotNull public java.util.Map<java.lang.String,java.lang.String[]> getExtensions()
@NotNull public SchemaElementType getSchemaElementType()
getSchemaElementType
in class SchemaElement
public int hashCode()
hashCode
in class SchemaElement
public boolean equals(@Nullable 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.@NotNull public java.lang.String toString()
toString
in class SchemaElement