@NotExtensible @ThreadSafety(level=INTERFACE_THREADSAFE) public abstract class SchemaElement extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
SchemaElement() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allowEmptyDescription()
Indicates whether to allow schema elements to contain an empty string as
the value for the
DESC component. |
abstract boolean |
equals(java.lang.Object o)
Indicates whether the provided object is equal to this schema element.
|
protected static boolean |
extensionsEqual(java.util.Map<java.lang.String,java.lang.String[]> m1,
java.util.Map<java.lang.String,java.lang.String[]> m2)
Indicates whether the two extension maps are equivalent.
|
abstract SchemaElementType |
getSchemaElementType()
Retrieves the type of schema element that this object represents.
|
abstract int |
hashCode()
Retrieves a hash code for this schema element.
|
static void |
setAllowEmptyDescription(boolean allowEmptyDescription)
Specifies whether to allow schema elements to contain an empty string as
the value for the
DESC component. |
abstract java.lang.String |
toString()
Retrieves a string representation of this schema element, in the format
described in RFC 4512.
|
public SchemaElement()
public static boolean allowEmptyDescription()
DESC component. Although quoted strings are not
allowed in schema elements as per RFC 4512 section 4.1, some directory
servers allow it, and it may be necessary to support schema definitions
used in conjunction with those servers.
setAllowEmptyDescription(boolean) method or by setting the value of the
com.unboundid.ldap.sdk.schema.AllowEmptyDescription system property
to true before this class is loaded.true if the LDAP SDK should allow schema elements with
empty descriptions, or false if not.public static void setAllowEmptyDescription(boolean allowEmptyDescription)
DESC component. If specified, this will override
the value of the
com.unboundid.ldap.sdk.schema.AllowEmptyDescription system
property.allowEmptyDescription - Indicates whether to allow schema elements
to contain an empty string as the value for
the DESC component.@NotNull public abstract SchemaElementType getSchemaElementType()
public abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract boolean equals(@Nullable java.lang.Object o)
equals in class java.lang.Objecto - 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.protected static boolean extensionsEqual(@NotNull java.util.Map<java.lang.String,java.lang.String[]> m1, @NotNull java.util.Map<java.lang.String,java.lang.String[]> m2)
m1 - The first schema element to examine.m2 - The second schema element to examine.true if the provided extension maps are equivalent, or
false if not.