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 String
description
Description.private Extensions
extensions
Extensions.
-
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'.boolean
equals(Object o)
void
freeze()
Freezes this object, making it immutable.String
getDescription()
Returns the description.Extensions
getExtensions()
Returns the extensions.abstract int
hashCode()
void
setDescription(String s)
Sets the description.void
setExtensions(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:Freezable
Freezes this object, making it immutable.- Specified by:
freeze
in interfaceFreezable
- Overrides:
freeze
in 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
-
-