Interface DITContentRule
-
@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface DITContentRule
This interface defines a set of methods that may be used to obtain information about a DIT content rule defined in the server schema.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Indicates whether the provided object is equal to this DIT content rule.java.util.Set<ObjectClass>getAuxiliaryClasses()Retrieves the set of allowed auxiliary classes for this DIT content rule, if any.java.lang.StringgetDescription()Retrieves the description for this DIT content rule, if any.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getExtensions()Retrieves a map of all defined extensions for this DIT content rule.java.lang.StringgetNameOrOID()Retrieves the primary name for this DIT content rule, or the numeric OID of the structural object class no names are defined.java.util.List<java.lang.String>getNames()Retrieves the list of names for this DIT content rule, if any.java.util.Set<AttributeType>getOptionalAttributes()Retrieves the set of optional attributes for this DIT content rule, if any.java.util.Set<AttributeType>getProhibitedAttributes()Retrieves the set of prohibited attributes for this DIT content rule, if any.java.util.Set<AttributeType>getRequiredAttributes()Retrieves the set of required attributes for this DIT content rule, if any.java.lang.StringgetSchemaFileName()Retrieves the name of the schema file in which this DIT content rule is defined.ObjectClassgetStructuralClass()Retrieves the structural object class for this DIT content rule.inthashCode()Retrieves a hash code for this DIT content rule.booleanhasNameOrOID(java.lang.String name)Indicates whether the provided string is equal to any of the defined names or the OID of the structural class for this DIT content rule.booleanisObsolete()Indicates whether this DIT content rule is declared obsolete in the server schema.booleanisOptional(AttributeType t)Indicates whether the provided attribute type is optional for this DIT content rule.booleanisProhibited(AttributeType t)Indicates whether the provided attribute type is prohibited for this DIT content rule.booleanisRequired(AttributeType t)Indicates whether the provided attribute type is required by this DIT content rule.booleanisRequiredOrOptional(AttributeType t)Indicates whether the provided attribute type is allowed for use with this DIT content rule as either a required or optional type.java.lang.StringtoString()Retrieves a string representation of this DIT content rule definition.
-
-
-
Method Detail
-
getNames
java.util.List<java.lang.String> getNames()
Retrieves the list of names for this DIT content rule, if any.- Returns:
- The list of names for this DIT content rule, or an empty list if there are no user-defined names.
-
getNameOrOID
java.lang.String getNameOrOID()
Retrieves the primary name for this DIT content rule, or the numeric OID of the structural object class no names are defined.- Returns:
- The primary name or structural class OID for this DIT content rule.
-
hasNameOrOID
boolean hasNameOrOID(java.lang.String name)
Indicates whether the provided string is equal to any of the defined names or the OID of the structural class for this DIT content rule.- Parameters:
name- The name for which to make the determination.- Returns:
trueif the provided string matches one of the names or the structural class OID for this DIT content rule, orfalseif not.
-
getDescription
java.lang.String getDescription()
Retrieves the description for this DIT content rule, if any.- Returns:
- The description for this DIT content rule, or
nullif it does not have a description.
-
getStructuralClass
ObjectClass getStructuralClass()
Retrieves the structural object class for this DIT content rule.- Returns:
- The structural object class for this DIT content rule.
-
getAuxiliaryClasses
java.util.Set<ObjectClass> getAuxiliaryClasses()
Retrieves the set of allowed auxiliary classes for this DIT content rule, if any.- Returns:
- The set of allowed auxiliary classes for this DIT content rule, or an empty set if there are no associated auxiliary classes.
-
getRequiredAttributes
java.util.Set<AttributeType> getRequiredAttributes()
Retrieves the set of required attributes for this DIT content rule, if any.- Returns:
- The set of required attributes for this DIT content rule, or an empty list if there are no required attributes.
-
isRequired
boolean isRequired(AttributeType t)
Indicates whether the provided attribute type is required by this DIT content rule.- Parameters:
t- The attribute type for which to make the determination.- Returns:
trueif the provided attribute type is required by this DIT content rule, orfalseif not.
-
getOptionalAttributes
java.util.Set<AttributeType> getOptionalAttributes()
Retrieves the set of optional attributes for this DIT content rule, if any.- Returns:
- The set of optional attributes for this DIT content rule, or an empty set if there are no optional attributes.
-
isOptional
boolean isOptional(AttributeType t)
Indicates whether the provided attribute type is optional for this DIT content rule.- Parameters:
t- The attribute type for which to make the determination.- Returns:
trueif the provided attribute type is optional for this DIT content rule, orfalseif not.
-
isRequiredOrOptional
boolean isRequiredOrOptional(AttributeType t)
Indicates whether the provided attribute type is allowed for use with this DIT content rule as either a required or optional type.- Parameters:
t- The attribute type for which to make the determination.- Returns:
trueif the provided attribute type is allowed for use with this DIT content rule, orfalseif not.
-
getProhibitedAttributes
java.util.Set<AttributeType> getProhibitedAttributes()
Retrieves the set of prohibited attributes for this DIT content rule, if any.- Returns:
- The set of prohibited attributes for this DIT content rule, or an empty set if there are no prohibited attributes.
-
isProhibited
boolean isProhibited(AttributeType t)
Indicates whether the provided attribute type is prohibited for this DIT content rule.- Parameters:
t- The attribute type for which to make the determination.- Returns:
trueif the provided attribute type is prohibited for this DIT content rule, orfalseif not.
-
isObsolete
boolean isObsolete()
Indicates whether this DIT content rule is declared obsolete in the server schema.- Returns:
trueif this DIT content rule is declared obsolete in the server schema, orfalseif not.
-
getExtensions
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getExtensions()
Retrieves a map of all defined extensions for this DIT content rule.- Returns:
- A map of all defined extensions for this DIT content rule.
-
getSchemaFileName
java.lang.String getSchemaFileName()
Retrieves the name of the schema file in which this DIT content rule is defined.- Returns:
- The name of the schema file in which this DIT content rule is defined.
-
equals
boolean equals(java.lang.Object o)
Indicates whether the provided object is equal to this DIT content rule.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object for which to make the determination.- Returns:
trueif the provided object is equal to this DIT content rule, orfalseif not.
-
hashCode
int hashCode()
Retrieves a hash code for this DIT content rule.- Overrides:
hashCodein classjava.lang.Object- Returns:
- A hash code for this DIT content rule.
-
toString
java.lang.String toString()
Retrieves a string representation of this DIT content rule definition.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this DIT content rule definition.
-
-