Package org.ldaptive.schema
Class AbstractSchemaElement
- java.lang.Object
-
- org.ldaptive.schema.AbstractSchemaElement
-
- All Implemented Interfaces:
SchemaElement
- Direct Known Subclasses:
AbstractNamedSchemaElement
,Syntax
public abstract class AbstractSchemaElement extends java.lang.Object implements SchemaElement
Base class for schema elements.- Author:
- Middleware Services
-
-
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, java.lang.String extensionName)
Returns whether the supplied schema element has an extension name with a value of 'true'.boolean
equals(java.lang.Object o)
java.lang.String
getDescription()
Returns the description.Extensions
getExtensions()
Returns the extensions.abstract int
hashCode()
void
setDescription(java.lang.String s)
Sets the description.void
setExtensions(Extensions e)
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
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Returns the description.- Returns:
- description
-
setDescription
public void setDescription(java.lang.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, java.lang.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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-