Class DseTypeSyntaxChecker

  • All Implemented Interfaces:
    Serializable, SchemaObject

    public final class DseTypeSyntaxChecker
    extends SyntaxChecker
    A SyntaxChecker which verifies that a value is a DSEType according to http://tools.ietf.org/id/draft-ietf-asid-ldapv3-attributes-03.txt, par 6.2.1.5 :
     <DSEType>    ::= '(' <sp>* <DSEBit> <sp>* <DSEBitList> ')'
     <DSEBitList> ::= '$' <sp>* <DSEBit> <sp>* <DSEBitList> | e      
     <DSEBit>     ::= 'root' | 'glue' | 'cp' | 'entry' | 'alias' | 'subr' |
                      'nssr' | 'supr' | 'xr' | 'admPoint' | 'subentry' |
                      'shadow' | 'zombie' | 'immSupr' | 'rhob' | 'sa'
     
    Author:
    Apache Directory Project
    See Also:
    Serialized Form
    • Field Detail

      • DSE_BITS_STRINGS

        private static final String[] DSE_BITS_STRINGS
        The DSE BITS keywords
      • DSE_BITS

        private static final Set<String> DSE_BITS
        The Set which contains the DESBits
      • INSTANCE

        public static final DseTypeSyntaxChecker INSTANCE
        A static instance of DseTypeSyntaxChecker
    • Constructor Detail

      • DseTypeSyntaxChecker

        private DseTypeSyntaxChecker​(String oid)
        Creates a new instance of DSETypeSyntaxChecker.
        Parameters:
        oid - The OID to use for this SyntaxChecker
    • Method Detail

      • isValidSyntax

        public boolean isValidSyntax​(Object value)
        Determines if the attribute's value conforms to the attribute syntax.
        Overrides:
        isValidSyntax in class SyntaxChecker
        Parameters:
        value - the value of some attribute with the syntax
        Returns:
        true if the value is in the valid syntax, false otherwise