Package org.apache.directory.server.core.tools.schema

Examples of org.apache.directory.server.core.tools.schema.ObjectClassLiteral


        // Getting the right schema
        Schema schema = pool.getSchema( schemaName );

        // Creating the new object class and adding it to the schema
        ObjectClassLiteral objectClassLiteral = new ObjectClassLiteral( this.page.getOidField() );
        objectClassLiteral.setNames( new String[]
            { this.page.getNameField() } );
        objectClassLiteral.setSuperiors( new String[]
            { "top" } ); //$NON-NLS-1$
        ObjectClass objectClass = new ObjectClass( objectClassLiteral, schema );
        schema.addObjectClass( objectClass );

        // Opening the associated editor
View Full Code Here


     */
    public Object clone() throws CloneNotSupportedException
    {
        ObjectClass oc = ( ObjectClass ) super.clone();

        oc.literal = new ObjectClassLiteral( literal.getOid() );
        oc.literal.setClassType( literal.getClassType() );
        oc.literal.setDescription( literal.getDescription() );
        oc.literal.setMay( literal.getMay() );
        oc.literal.setMust( literal.getMust() );
        oc.literal.setNames( literal.getNames() );
View Full Code Here

        { "att4", "att5", "att6" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$


    public void setUp()
    {
        literal = new ObjectClassLiteral( oid );
        literal.setNames( new String[]
            { name } );
        literal.setDescription( desc );
        literal.setSuperiors( superiors );
        literal.setMay( may );
View Full Code Here

    public void setUp()
    {
        elementChanged = false;
        schema = new Schema( "test" ); //$NON-NLS-1$
        at = new AttributeType( new AttributeTypeLiteral( "1.2.3" ), schema ); //$NON-NLS-1$
        oc = new ObjectClass( new ObjectClassLiteral( "4.5.6" ), schema ); //$NON-NLS-1$
        schema.addAttributeType( at );
        schema.addObjectClass( oc );
    }
View Full Code Here

        // Getting the right schema
        Schema schema = pool.getSchema( schemaName );

        // Creating the new object class and adding it to the schema
        ObjectClassLiteral objectClassLiteral = new ObjectClassLiteral( this.page.getOidField() );
        objectClassLiteral.setNames( new String[] { this.page.getNameField() } );
        objectClassLiteral.setSuperiors( new String[]{ "top" } ); //$NON-NLS-1$
        ObjectClass objectClass = new ObjectClass( objectClassLiteral, schema );
        schema.addObjectClass( objectClass );

        // Opening the associated editor
        ObjectClassFormEditorInput input = new ObjectClassFormEditorInput( objectClass );
View Full Code Here

        schema.addAttributeType( new AttributeType( new AttributeTypeLiteral( "1.2.3" ), schema ) ); //$NON-NLS-1$
        assertTrue( schemaChanged );

        schemaChanged = false;

        schema.addObjectClass( new ObjectClass( new ObjectClassLiteral( "4.5.6" ), schema ) ); //$NON-NLS-1$
        assertTrue( schemaChanged );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.tools.schema.ObjectClassLiteral

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.