Package org.apache.directory.ldapstudio.browser.core.model.schema

Examples of org.apache.directory.ldapstudio.browser.core.model.schema.ObjectClassDescription


    {
        IStructuredSelection selection = ( IStructuredSelection ) iselection;
        Iterator it = selection.iterator();
        while ( it.hasNext() )
        {
            ObjectClassDescription ocd = ( ObjectClassDescription ) it.next();
            if ( !availableObjectClasses.contains( ocd ) && selectedObjectClasses.contains( ocd ) )
            {
                selectedObjectClasses.remove( ocd );
                availableObjectClasses.add( ocd );

                // recursively remove sub object classes
                ObjectClassDescription[] subObjectClassDescriptions = ocd.getSubObjectClassDescriptions();
                if ( subObjectClassDescriptions.length > 0 )
                {
                    remove( new StructuredSelection( subObjectClassDescriptions ) );
                }
            }
View Full Code Here


         */
        public boolean select( Viewer viewer, Object parentElement, Object element )
        {
            if ( element instanceof ObjectClassDescription )
            {
                ObjectClassDescription ocd = ( ObjectClassDescription ) element;
                Set<String> lowerCaseIdentifierSet = ocd.getLowerCaseIdentifierSet();
                for ( Iterator<String> it = lowerCaseIdentifierSet.iterator(); it.hasNext(); )
                {
                    String s = it.next();
                    if ( s.toLowerCase().startsWith( filterText.getText().toLowerCase() ) )
                    {
View Full Code Here

            remainingObjectClassesSet.removeAll( selectedObjectClasses );
            Set remainingAttributeSet = new HashSet();
            for ( Iterator it = remainingObjectClassesSet.iterator(); it.hasNext(); )
            {
                String oc = ( String ) it.next();
                ObjectClassDescription ocd = entry.getConnection().getSchema().getObjectClassDescription( oc );
                if ( ocd != null )
                {
                    remainingAttributeSet
                        .addAll( Arrays.asList( ocd.getMustAttributeTypeDescriptionNamesTransitive() ) );
                    remainingAttributeSet.addAll( Arrays.asList( ocd.getMayAttributeTypeDescriptionNamesTransitive() ) );
                }
            }
            // check against attributes
            IAttribute[] attributes = entry.getAttributes();
            for ( int i = 0; i < attributes.length; i++ )
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.model.schema.ObjectClassDescription

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.