@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AttributeSyntaxDefinition extends SchemaElement
Constructor and Description |
---|
AttributeSyntaxDefinition(java.lang.String s)
Creates a new attribute syntax from the provided string representation.
|
AttributeSyntaxDefinition(java.lang.String oid,
java.lang.String description,
java.util.Map<java.lang.String,java.lang.String[]> extensions)
Creates a new attribute syntax use 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 |
getDescription()
Retrieves the description for this attribute syntax, if available.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getExtensions()
Retrieves the set of extensions for this matching rule use.
|
java.lang.String |
getOID()
Retrieves the OID for this attribute syntax.
|
SchemaElementType |
getSchemaElementType()
Retrieves the type of schema element that this object represents.
|
int |
hashCode()
Retrieves a hash code for this schema element.
|
java.lang.String |
toString()
Retrieves a string representation of this attribute syntax, in the format
described in RFC 4512 section 4.1.5.
|
allowEmptyDescription, extensionsEqual, setAllowEmptyDescription
public AttributeSyntaxDefinition(@NotNull java.lang.String s) throws LDAPException
s
- The string representation of the attribute syntax to create,
using the syntax described in RFC 4512 section 4.1.5. It must
not be null
.LDAPException
- If the provided string cannot be decoded as an
attribute syntax definition.public AttributeSyntaxDefinition(@NotNull java.lang.String oid, @Nullable java.lang.String description, @Nullable java.util.Map<java.lang.String,java.lang.String[]> extensions)
oid
- The OID for this attribute syntax. It must not be
null
.description
- The description for this attribute syntax. It may be
null
if there is no description.extensions
- The set of extensions for this attribute syntax. It
may be null
or empty if there should not be
any extensions.@NotNull public java.lang.String getOID()
@Nullable public java.lang.String getDescription()
null
if
there is no description defined.@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