Class 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 Details

    • names

      private String[] names
      Names.
    • obsolete

      private boolean obsolete
      Obsolete.
  • Constructor Details

    • AbstractNamedSchemaElement

      public AbstractNamedSchemaElement()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: NamedElement
      Returns the first name defined or null if no names are defined.
      Specified by:
      getName in interface NamedElement
      Returns:
      first name in the list
    • getNames

      public String[] getNames()
      Description copied from interface: NamedElement
      Returns the names.
      Specified by:
      getNames in interface NamedElement
      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