Class AttributeTypeDescriptionSchemaParser

    • Method Detail

      • parse

        public AttributeType parse​(String attributeTypeDescription)
                            throws ParseException
        Parses a attribute type description according to RFC 4512:
         AttributeTypeDescription = LPAREN WSP
             numericoid                    ; object identifier
             [ SP "NAME" SP qdescrs ]      ; short names (descriptors)
             [ SP "DESC" SP qdstring ]     ; description
             [ SP "OBSOLETE" ]             ; not active
             [ SP "SUP" SP oid ]           ; supertype
             [ SP "EQUALITY" SP oid ]      ; equality matching rule
             [ SP "ORDERING" SP oid ]      ; ordering matching rule
             [ SP "SUBSTR" SP oid ]        ; substrings matching rule
             [ SP "SYNTAX" SP noidlen ]    ; value syntax
             [ SP "SINGLE-VALUE" ]         ; single-value
             [ SP "COLLECTIVE" ]           ; collective
             [ SP "NO-USER-MODIFICATION" ] ; not user modifiable
             [ SP "USAGE" SP usage ]       ; usage
             extensions WSP RPAREN         ; extensions
         
         usage = "userApplications"     /  ; user
                 "directoryOperation"   /  ; directory operational
                 "distributedOperation" /  ; DSA-shared operational
                 "dSAOperation"            ; DSA-specific operational     
         
         extensions = *( SP xstring SP qdstrings )
         xstring = "X" HYPHEN 1*( ALPHA / HYPHEN / USCORE ) 
         
        Specified by:
        parse in class AbstractSchemaParser<AttributeType>
        Parameters:
        attributeTypeDescription - the attribute type description to be parsed
        Returns:
        the parsed AttributeTypeDescription bean
        Throws:
        ParseException - if there are any recognition errors (bad syntax)