Package org.ldaptive.schema
Class AbstractSchemaElement
- java.lang.Object
-
- org.ldaptive.AbstractFreezable
-
- org.ldaptive.schema.AbstractSchemaElement
-
- All Implemented Interfaces:
Freezable,SchemaElement
- Direct Known Subclasses:
AbstractNamedSchemaElement,Syntax
public abstract class AbstractSchemaElement extends AbstractFreezable implements SchemaElement
Base class for schema elements.
-
-
Field Summary
Fields Modifier and Type Field Description private StringdescriptionDescription.private ExtensionsextensionsExtensions.
-
Constructor Summary
Constructors Constructor Description AbstractSchemaElement()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T extends AbstractSchemaElement>
booleancontainsBooleanExtension(T schemaElement, String extensionName)Returns whether the supplied schema element has an extension name with a value of 'true'.booleanequals(Object o)voidfreeze()Freezes this object, making it immutable.StringgetDescription()Returns the description.ExtensionsgetExtensions()Returns the extensions.abstract inthashCode()voidsetDescription(String s)Sets the description.voidsetExtensions(Extensions e)Sets the extensions.-
Methods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ldaptive.schema.SchemaElement
format
-
-
-
-
Field Detail
-
description
private String description
Description.
-
extensions
private Extensions extensions
Extensions.
-
-
Method Detail
-
freeze
public void freeze()
Description copied from interface:FreezableFreezes this object, making it immutable.- Specified by:
freezein interfaceFreezable- Overrides:
freezein classAbstractFreezable
-
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 inspectextensionName- to read boolean from- Returns:
- whether syntax has this boolean extension
-
-