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