Class MatchingRuleUse

All Implemented Interfaces:
SchemaElement

public class MatchingRuleUse extends AbstractNamedSchemaElement
Bean for an matching rule use schema element.
   MatchingRuleUseDescription = LPAREN WSP
     numericoid                 ; object identifier
     [ SP "NAME" SP qdescrs ]   ; short names (descriptors)
     [ SP "DESC" SP qdstring ]  ; description
     [ SP "OBSOLETE" ]          ; not active
     SP "APPLIES" SP oids       ; attribute types
     extensions WSP RPAREN      ; extensions
 
  • Field Details

    • HASH_CODE_SEED

      private static final int HASH_CODE_SEED
      hash code seed.
      See Also:
    • oid

      private final String oid
      OID.
    • appliesAttributeTypes

      private String[] appliesAttributeTypes
      Superior classes.
  • Constructor Details

    • MatchingRuleUse

      public MatchingRuleUse(String s)
      Creates a new matching rule use.
      Parameters:
      s - oid
    • MatchingRuleUse

      public MatchingRuleUse(String oid, String[] names, String description, boolean obsolete, String[] appliesAttributeTypes, Extensions extensions)
      Creates a new matching rule use.
      Parameters:
      oid - oid
      names - names
      description - description
      obsolete - obsolete
      appliesAttributeTypes - applies attribute types
      extensions - extensions
  • Method Details

    • getOID

      public String getOID()
      Returns the oid.
      Returns:
      oid
    • getAppliesAttributeTypes

      public String[] getAppliesAttributeTypes()
      Returns the applies attribute types.
      Returns:
      attribute types
    • setAppliesAttributeTypes

      public void setAppliesAttributeTypes(String[] s)
      Sets the applies attribute types.
      Parameters:
      s - attribute types
    • parse

      public static MatchingRuleUse parse(String definition) throws SchemaParseException
      Parses the supplied definition string and creates an initialized matching rule use.
      Parameters:
      definition - to parse
      Returns:
      matching rule use
      Throws:
      SchemaParseException - if the supplied definition is invalid
    • format

      public String format()
      Description copied from interface: SchemaElement
      Returns this schema element as formatted string per RFC 4512.
      Returns:
      formatted string
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AbstractSchemaElement
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class AbstractSchemaElement
    • toString

      public String toString()
      Overrides:
      toString in class Object