Package org.apache.directory.shared.ldap.schema.parsers

Examples of org.apache.directory.shared.ldap.schema.parsers.NameFormDescription


        int pos = 0;
       
        for ( Value<?> value:attr )
        {
            NameFormDescription desc = null;
           
            try
            {
                desc = nameFormParser.parseNameFormDescription( value.getString() );
            }
            catch ( ParseException e )
            {
                LdapInvalidAttributeValueException iave = new LdapInvalidAttributeValueException(
                    "The following does not conform to the nameFormDescription syntax: " + value.getString(),
                    ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                iave.setRootCause( e );
                throw iave;
            }
           
            NameFormImpl nf = new NameFormImpl( desc.getNumericOid(), globalRegistries );
            nf.setMayUseOids( desc.getMayAttributeTypes().toArray( EMPTY ) );
            nf.setMustUseOids( desc.getMustAttributeTypes().toArray( EMPTY ) );
            nf.setObjectClassOid( desc.getStructuralObjectClass() );
           
            setSchemaObjectProperties( desc, nf );
           
            nameForms[pos++] = nf;
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.schema.parsers.NameFormDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.