org.ldaptive.schema
Class AbstractNamedSchemaElement

java.lang.Object
  extended by org.ldaptive.schema.AbstractSchemaElement
      extended by org.ldaptive.schema.AbstractNamedSchemaElement
All Implemented Interfaces:
SchemaElement
Direct Known Subclasses:
AttributeType, DITContentRule, DITStructureRule, MatchingRule, MatchingRuleUse, NameForm, ObjectClass

public abstract class AbstractNamedSchemaElement
extends AbstractSchemaElement

Base schema bean for named schema elements.

Version:
$Revision: 2940 $ $Date: 2014-03-31 11:10:46 -0400 (Mon, 31 Mar 2014) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.schema.AbstractSchemaElement
NO_WSP_REGEX, WSP_REGEX
 
Constructor Summary
AbstractNamedSchemaElement()
           
 
Method Summary
 String getName()
          Returns the first name defined or null if no names are defined.
 String[] getNames()
          Returns the names.
 boolean hasName(String s)
          Returns whether the supplied string matches, ignoring case, any of the names for this schema element.
 boolean isObsolete()
          Returns whether this attribute type definition is obsolete.
 void setNames(String[] s)
          Sets the names.
 void setObsolete(boolean b)
          Sets whether this attribute type definition is obsolete.
 
Methods inherited from class org.ldaptive.schema.AbstractSchemaElement
containsBooleanExtension, equals, getDescription, getExtensions, hashCode, setDescription, setExtensions
 
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
 

Constructor Detail

AbstractNamedSchemaElement

public AbstractNamedSchemaElement()
Method Detail

getName

public String getName()
Returns the first name defined or null if no names are defined.

Returns:
first name in the list

getNames

public String[] getNames()
Returns the names.

Returns:
names

setNames

public void setNames(String[] s)
Sets the names.

Parameters:
s - names

hasName

public boolean hasName(String s)
Returns whether the supplied string matches, ignoring case, any of the names for this schema element.

Parameters:
s - to match
Returns:
whether the supplied string matches a name

isObsolete

public boolean isObsolete()
Returns whether this attribute type definition is obsolete.

Returns:
whether this attribute type definition is obsolete

setObsolete

public void setObsolete(boolean b)
Sets whether this attribute type definition is obsolete.

Parameters:
b - whether this attribute type definition is obsolete


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