Package org.ldaptive.schema
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends AbstractSchemaElement<?>>
booleancontainsBooleanExtension(T schemaElement, String extensionName) Returns whether the supplied schema element has an extension name with a value of 'true'.booleanvoidfreeze()Freezes this object, making it immutable.Returns the description.Returns the extensions.abstract inthashCode()voidSets the description.voidSets the extensions.Methods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ldaptive.schema.SchemaElement
format, getElementKey
-
Field Details
-
description
Description. -
extensions
Extensions.
-
-
Constructor Details
-
AbstractSchemaElement
public AbstractSchemaElement()
-
-
Method Details
-
freeze
public void freeze()Description copied from interface:FreezableFreezes this object, making it immutable.- Specified by:
freezein interfaceFreezable- Overrides:
freezein classAbstractFreezable
-
getDescription
Returns the description.- Returns:
- description
-
setDescription
Sets the description.- Parameters:
s- description
-
getExtensions
Returns the extensions.- Returns:
- extensions
-
setExtensions
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 inspectextensionName- to read boolean from- Returns:
- whether syntax has this boolean extension
-
equals
-
hashCode
public abstract int hashCode()
-