Package org.ldaptive.schema
Class AbstractSchemaElement
java.lang.Object
org.ldaptive.schema.AbstractSchemaElement
- All Implemented Interfaces:
SchemaElement
- Direct Known Subclasses:
AbstractNamedSchemaElement
,Syntax
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'.boolean
Returns the description.Returns the extensions.abstract int
hashCode()
void
Sets the description.void
Sets the extensions.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 Details
-
description
Description. -
extensions
Extensions.
-
-
Constructor Details
-
AbstractSchemaElement
public AbstractSchemaElement()
-
-
Method Details
-
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()
-