@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public interface ObjectClass
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this object class.
|
java.lang.String |
getDescription()
Retrieves the description for this object class, if any.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getExtensions()
Retrieves a map of all defined extensions for this object class.
|
java.lang.String |
getNameOrOID()
Retrieves the primary name for this object class, or the numeric OID if
no names are defined.
|
java.util.List<java.lang.String> |
getNames()
Retrieves the list of names for this object class, if any.
|
ObjectClassType |
getObjectClassType()
Retrieves the object class type for this object class.
|
java.lang.String |
getOID()
Retrieves the numeric OID for this object class.
|
java.util.Set<AttributeType> |
getOptionalAttributeChain()
Retrieves the set of optional attributes for this object class and all of
its superior classes.
|
java.util.Set<AttributeType> |
getOptionalAttributes()
Retrieves the set of optional attributes for this object class.
|
java.util.Set<AttributeType> |
getRequiredAttributeChain()
Retrieves the set of required attributes for this object class and all of
its superior classes.
|
java.util.Set<AttributeType> |
getRequiredAttributes()
Retrieves the set of required attributes for this object class.
|
java.lang.String |
getSchemaFileName()
Retrieves the name of the schema file in which this object class is
defined.
|
java.util.List<ObjectClass> |
getSuperiorClasses()
Retrieves the immediate superior classes for this object class, if any.
|
int |
hashCode()
Retrieves a hash code for this object class.
|
boolean |
hasNameOrOID(java.lang.String name)
Indicates whether the provided string is equal to the OID or any of the
defined names for this object class.
|
boolean |
isObsolete()
Indicates whether this object class is declared obsolete in the server
schema.
|
boolean |
isOptional(AttributeType t)
Indicates whether the provided attribute type is optional for use with this
object class or any of its superior classes.
|
boolean |
isRequired(AttributeType t)
Indicates whether the provided attribute type is required for use with this
object class or any of its superior classes.
|
boolean |
isRequiredOrOptional(AttributeType t)
Indicates whether the provided attribute type is allowed for use with this
object class or any of its superior classes, either as a required or
optional type.
|
java.lang.String |
toString()
Retrieves a string representation of this object class definition.
|
java.lang.String getOID()
java.util.List<java.lang.String> getNames()
java.lang.String getNameOrOID()
boolean hasNameOrOID(java.lang.String name)
name
- The name for which to make the determination.true
if the provided string matches the OID or one of the
names for this object class, or false
if not.java.lang.String getDescription()
null
if it does
not have a description.java.util.List<ObjectClass> getSuperiorClasses()
java.util.Set<AttributeType> getRequiredAttributes()
java.util.Set<AttributeType> getRequiredAttributeChain()
boolean isRequired(AttributeType t)
t
- The attribute type for which to make the definition.true
if the provided attribute type is required for use
with this object class, or false
if not.java.util.Set<AttributeType> getOptionalAttributes()
java.util.Set<AttributeType> getOptionalAttributeChain()
boolean isOptional(AttributeType t)
t
- The attribute type for which to make the definition.true
if the provided attribute type is optional for use
with this object class, or false
if not.boolean isRequiredOrOptional(AttributeType t)
t
- The attribute type for which to make the definition.true
if the provided attribute type is allowed for use
with this object class, or false
if not.ObjectClassType getObjectClassType()
boolean isObsolete()
true
if this object class is declared obsolete in the
server schema, or false
if not.java.util.Map<java.lang.String,java.util.List<java.lang.String>> getExtensions()
java.lang.String getSchemaFileName()
boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object for which to make the determination.true
if the provided object is equal to this object class,
or false
if not.int hashCode()
hashCode
in class java.lang.Object
java.lang.String toString()
toString
in class java.lang.Object