Class AbstractSchemaElement<T>

java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.schema.AbstractSchemaElement<T>
Type Parameters:
T - type of element identifier key
All Implemented Interfaces:
Freezable, SchemaElement<T>
Direct Known Subclasses:
AbstractNamedSchemaElement, Syntax

public abstract class AbstractSchemaElement<T> extends AbstractFreezable implements SchemaElement<T>
Base class for schema elements.
  • Field Details

    • description

      private String description
      Description.
    • extensions

      private Extensions extensions
      Extensions.
  • Constructor Details

    • AbstractSchemaElement

      public AbstractSchemaElement()
  • Method Details

    • freeze

      public void freeze()
      Description copied from interface: Freezable
      Freezes this object, making it immutable.
      Specified by:
      freeze in interface Freezable
      Overrides:
      freeze in class AbstractFreezable
    • getDescription

      public String getDescription()
      Returns the description.
      Returns:
      description
    • setDescription

      public void setDescription(String s)
      Sets the description.
      Parameters:
      s - description
    • getExtensions

      public Extensions getExtensions()
      Returns the extensions.
      Returns:
      extensions
    • setExtensions

      public void setExtensions(Extensions e)
      Sets the extensions.
      Parameters:
      e - extensions
    • containsBooleanExtension

      public static <T extends AbstractSchemaElement<?>> boolean containsBooleanExtension(T schemaElement, String extensionName)
      Returns whether the supplied schema element has an extension name with a value of 'true'.
      Type Parameters:
      T - type of schema element
      Parameters:
      schemaElement - to inspect
      extensionName - to read boolean from
      Returns:
      whether syntax has this boolean extension
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public abstract int hashCode()
      Overrides:
      hashCode in class Object