Class AbstractSchemaElement

java.lang.Object
org.ldaptive.schema.AbstractSchemaElement
All Implemented Interfaces:
SchemaElement
Direct Known Subclasses:
AbstractNamedSchemaElement, Syntax

public abstract class AbstractSchemaElement extends Object implements SchemaElement
Base class for schema elements.
  • Field Details

    • description

      private String description
      Description.
    • extensions

      private Extensions extensions
      Extensions.
  • Constructor Details

    • AbstractSchemaElement

      public AbstractSchemaElement()
  • Method Details

    • 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