com.unboundid.ldap.sdk.schema
Class SchemaElement

java.lang.Object
  extended by com.unboundid.ldap.sdk.schema.SchemaElement
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AttributeSyntaxDefinition, AttributeTypeDefinition, DITContentRuleDefinition, DITStructureRuleDefinition, MatchingRuleDefinition, MatchingRuleUseDefinition, NameFormDefinition, ObjectClassDefinition

@NotExtensible
@ThreadSafety(level=INTERFACE_THREADSAFE)
public abstract class SchemaElement
extends java.lang.Object
implements java.io.Serializable

This class provides a superclass for all schema element types, and defines a number of utility methods that may be used when parsing schema element strings.

See Also:
Serialized Form

Constructor Summary
SchemaElement()
           
 
Method Summary
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  int hashCode()
          Retrieves a hash code for this schema element.
abstract  java.lang.String toString()
          Retrieves a string representation of this schema element, in the format described in RFC 4512.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaElement

public SchemaElement()
Method Detail

hashCode

public abstract int hashCode()
Retrieves a hash code for this schema element.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for this schema element.

equals

public abstract boolean equals(java.lang.Object o)
Indicates whether the provided object is equal to this schema element.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object for which to make the determination.
Returns:
true if the provided object may be considered equal to this schema element, or false if not.

extensionsEqual

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.

Parameters:
m1 - The first schema element to examine.
m2 - The second schema element to examine.
Returns:
true if the provided extension maps are equivalent, or false if not.

toString

public abstract java.lang.String toString()
Retrieves a string representation of this schema element, in the format described in RFC 4512.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this schema element, in the format described in RFC 4512.