Package org.ldaptive.schema
Class AbstractNamedSchemaElement<T>
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.schema.AbstractSchemaElement<T>
org.ldaptive.schema.AbstractNamedSchemaElement<T>
- Type Parameters:
T- type of element identifier key
- All Implemented Interfaces:
Freezable,NamedElement,SchemaElement<T>
- Direct Known Subclasses:
AttributeType,DITContentRule,DITStructureRule,MatchingRule,MatchingRuleUse,NameForm,ObjectClass
public abstract class AbstractNamedSchemaElement<T>
extends AbstractSchemaElement<T>
implements NamedElement
Base schema bean for named schema elements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the first name defined or null if no names are defined.String[]getNames()Returns the names.booleanReturns whether the supplied string matches, ignoring case, any of the names for this schema element.booleanReturns whether this attribute type definition is obsolete.voidSets the names.voidsetObsolete(boolean b) Sets whether this attribute type definition is obsolete.Methods inherited from class org.ldaptive.schema.AbstractSchemaElement
containsBooleanExtension, equals, freeze, getDescription, getExtensions, hashCode, setDescription, setExtensionsMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ldaptive.schema.SchemaElement
format, getElementKey
-
Field Details
-
names
Names. -
obsolete
private boolean obsoleteObsolete.
-
-
Constructor Details
-
AbstractNamedSchemaElement
public AbstractNamedSchemaElement()
-
-
Method Details
-
getName
Description copied from interface:NamedElementReturns the first name defined or null if no names are defined.- Specified by:
getNamein interfaceNamedElement- Returns:
- first name in the list
-
getNames
Description copied from interface:NamedElementReturns the names.- Specified by:
getNamesin interfaceNamedElement- Returns:
- names
-
setNames
Sets the names.- Parameters:
s- names
-
hasName
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
-