Examples of NameForm


Examples of org.apache.directory.shared.ldap.schema.NameForm

        int pos = 0;

        for ( Value<?> value : attr )
        {
            NameForm nameForm = null;

            try
            {
                nameForm = nameFormParser.parseNameFormDescription( value.getString() );
                nameForm.setSpecification( value.getString() );
            }
            catch ( ParseException e )
            {
                LdapInvalidAttributeValueException iave = new LdapInvalidAttributeValueException( I18n.err( I18n.ERR_428,
                    value.getString() ), ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.NameForm

        Iterator<NameForm> list = registries.getNameFormRegistry().iterator();

        while ( list.hasNext() )
        {
            NameForm nf = list.next();
            attr.add( SchemaUtils.render( nf ).toString() );
        }
       
        return attr;
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.NameForm

        int pos = 0;

        for ( Value<?> value : attr )
        {
            NameForm nameForm = null;

            try
            {
                nameForm = nameFormParser.parseNameFormDescription( value.getString() );
                nameForm.setSpecification( value.getString() );
            }
            catch ( ParseException e )
            {
                LdapInvalidAttributeValueException iave = new LdapInvalidAttributeValueException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_428,
                        value.getString() ) );
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

    {
        id = oidRegistry.getOid( id );

        if ( byOid.containsKey( id ) )
        {
            NameForm dITContentRule = ( NameForm ) byOid.get( id );
            monitor.lookedUp( dITContentRule );
            return dITContentRule;
        }

        if ( bootstrap.hasNameForm( id ) )
        {
            NameForm dITContentRule = bootstrap.lookup( id );
            monitor.lookedUp( dITContentRule );
            return dITContentRule;
        }

        NamingException e = new NamingException( "dITContentRule w/ OID "
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

                + " not registered!" );
            monitor.lookupFailed( id, e );
            throw e;
        }

        NameForm nameForm = ( NameForm ) byOid.get( id );
        monitor.lookedUp( nameForm );
        return nameForm;
    }
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

                + " not registered!" );
            monitor.lookupFailed( id, e );
            throw e;
        }

        NameForm nameForm = ( NameForm ) byOid.get( id );
        monitor.lookedUp( nameForm );
        return nameForm;
    }
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

    {
        id = oidRegistry.getOid( id );

        if ( byOid.containsKey( id ) )
        {
            NameForm dITContentRule = ( NameForm ) byOid.get( id );
            monitor.lookedUp( dITContentRule );
            return dITContentRule;
        }

        if ( bootstrap.hasNameForm( id ) )
        {
            NameForm dITContentRule = bootstrap.lookup( id );
            monitor.lookedUp( dITContentRule );
            return dITContentRule;
        }

        NamingException e = new NamingException( "dITContentRule w/ OID "
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

                DITContentRuleRegistry ditContentRuleRegistry;
                ditContentRuleRegistry = registries.getDitContentRuleRegistry();
                ditContentRuleRegistry.register( schema.getSchemaName(), ditContentRule );
                break;
            case( ProducerTypeEnum.NAME_FORM_PRODUCER_VAL ):
                NameForm nameForm = ( NameForm ) schemaObject;
                NameFormRegistry nameFormRegistry;
                nameFormRegistry = registries.getNameFormRegistry();
                nameFormRegistry.register( schema.getSchemaName(), nameForm );
                break;
            case( ProducerTypeEnum.DIT_STRUCTURE_RULE_PRODUCER_VAL ):
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

        {
            attr = new LockableAttributeImpl( attrs, "nameForms" );
            Iterator list = globalRegistries.getNameFormRegistry().list();
            while ( list.hasNext() )
            {
                NameForm nf = ( NameForm ) list.next();
                attr.add( SchemaUtils.render( nf ).toString() );
            }
            attrs.put( attr );
        }
View Full Code Here

Examples of org.apache.ldap.common.schema.NameForm

                DITContentRuleRegistry ditContentRuleRegistry;
                ditContentRuleRegistry = registries.getDitContentRuleRegistry();
                ditContentRuleRegistry.register( schema.getSchemaName(), ditContentRule );
                break;
            case( ProducerTypeEnum.NAME_FORM_PRODUCER_VAL ):
                NameForm nameForm = ( NameForm ) schemaObject;
                NameFormRegistry nameFormRegistry;
                nameFormRegistry = registries.getNameFormRegistry();
                nameFormRegistry.register( schema.getSchemaName(), nameForm );
                break;
            case( ProducerTypeEnum.DIT_STRUCTURE_RULE_PRODUCER_VAL ):
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.