Package org.apache.ldap.common.schema

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


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

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

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

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

    {
        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

                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

        {
            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

                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

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

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

        {
            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

    {
        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

TOP

Related Classes of org.apache.ldap.common.schema.NameForm

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.