org.ldaptive.schema
Class AbstractSchemaElement

java.lang.Object
  extended by org.ldaptive.schema.AbstractSchemaElement
All Implemented Interfaces:
SchemaElement
Direct Known Subclasses:
AbstractNamedSchemaElement, Syntax

public abstract class AbstractSchemaElement
extends Object
implements SchemaElement

Base class for schema elements.

Version:
$Revision: 3189 $ $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
Author:
Middleware Services

Field Summary
protected static String NO_WSP_REGEX
          Regex to match one or more non spaces.
protected static String WSP_REGEX
          Regex to match zero or more spaces.
 
Constructor Summary
AbstractSchemaElement()
           
 
Method Summary
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'.
 boolean equals(Object o)
          
 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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ldaptive.schema.SchemaElement
format
 

Field Detail

WSP_REGEX

protected static final String WSP_REGEX
Regex to match zero or more spaces.

See Also:
Constant Field Values

NO_WSP_REGEX

protected static final String NO_WSP_REGEX
Regex to match one or more non spaces.

See Also:
Constant Field Values
Constructor Detail

AbstractSchemaElement

public AbstractSchemaElement()
Method Detail

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 inspect
extensionName - to read boolean from
Returns:
whether syntax has this boolean extension

hashCode

public abstract int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)

Overrides:
equals in class Object


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.