Package com.unboundid.ldap.sdk.schema
Class AttributeSyntaxDefinition
java.lang.Object
com.unboundid.ldap.sdk.schema.SchemaElement
com.unboundid.ldap.sdk.schema.AttributeSyntaxDefinition
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class AttributeSyntaxDefinition
extends SchemaElement
This class provides a data structure that describes an LDAP attribute syntax
schema element.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new attribute syntax from the provided string representation.Creates a new attribute syntax use with the provided information. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the provided object is equal to this schema element.Retrieves the description for this attribute syntax, if available.Retrieves the set of extensions for this matching rule use.getOID()Retrieves the OID for this attribute syntax.Retrieves the type of schema element that this object represents.inthashCode()Retrieves a hash code for this schema element.toString()Retrieves a string representation of this attribute syntax, in the format described in RFC 4512 section 4.1.5.Methods inherited from class com.unboundid.ldap.sdk.schema.SchemaElement
allowEmptyDescription, extensionsEqual, setAllowEmptyDescription
-
Constructor Details
-
AttributeSyntaxDefinition
Creates a new attribute syntax from the provided string representation.- Parameters:
s- The string representation of the attribute syntax to create, using the syntax described in RFC 4512 section 4.1.5. It must not benull.- Throws:
LDAPException- If the provided string cannot be decoded as an attribute syntax definition.
-
AttributeSyntaxDefinition
public AttributeSyntaxDefinition(@NotNull String oid, @Nullable String description, @Nullable Map<String, String[]> extensions) Creates a new attribute syntax use with the provided information.- Parameters:
oid- The OID for this attribute syntax. It must not benull.description- The description for this attribute syntax. It may benullif there is no description.extensions- The set of extensions for this attribute syntax. It may benullor empty if there should not be any extensions.
-
-
Method Details
-
getOID
Retrieves the OID for this attribute syntax.- Returns:
- The OID for this attribute syntax.
-
getDescription
Retrieves the description for this attribute syntax, if available.- Returns:
- The description for this attribute syntax, or
nullif there is no description defined.
-
getExtensions
Retrieves the set of extensions for this matching rule use. They will be mapped from the extension name (which should start with "X-") to the set of values for that extension.- Returns:
- The set of extensions for this matching rule use.
-
getSchemaElementType
Retrieves the type of schema element that this object represents.- Specified by:
getSchemaElementTypein classSchemaElement- Returns:
- The type of schema element that this object represents.
-
hashCode
Retrieves a hash code for this schema element.- Specified by:
hashCodein classSchemaElement- Returns:
- A hash code for this schema element.
-
equals
Indicates whether the provided object is equal to this schema element.- Specified by:
equalsin classSchemaElement- Parameters:
o- The object for which to make the determination.- Returns:
trueif the provided object may be considered equal to this schema element, orfalseif not.
-
toString
Retrieves a string representation of this attribute syntax, in the format described in RFC 4512 section 4.1.5.- Specified by:
toStringin classSchemaElement- Returns:
- A string representation of this attribute syntax definition.
-