Examples of MatchingRuleDescription


Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.MatchingRuleDescription

                    && fc.getMatchingRuleToken().getOffset() <= hoverRegion.getOffset()
                    && hoverRegion.getOffset() <= fc.getMatchingRuleToken().getOffset()
                        + fc.getMatchingRuleToken().getLength() )
                {
                    String matchingRule = fc.getMatchingRuleToken().getValue();
                    MatchingRuleDescription matchingRuleDescription = schema.getMatchingRuleDescription( matchingRule );
                    return matchingRuleDescription.getLine() != null ? matchingRuleDescription.getLine()
                        .getUnfoldedValue() : null;
                }
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.MatchingRuleDescription

            }

            MatchingRuleDescription[] matchingRuleDescriptions = schema.getMatchingRuleDescriptions();
            for ( int i = 0; i < matchingRuleDescriptions.length; i++ )
            {
                MatchingRuleDescription description = matchingRuleDescriptions[i];
                possibleMatchingRules.put( description.getNumericOID(), description );
                for ( int k = 0; k < description.getNames().length; k++ )
                {
                    possibleMatchingRules.put( description.getNames()[k], description );
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.MatchingRuleDescription

        {
            for ( String possibleMatchingRule : possibleMatchingRules.keySet() )
            {
                if ( possibleMatchingRule.toUpperCase().startsWith( matchingRule.toUpperCase() ) )
                {
                    MatchingRuleDescription description = schema.getMatchingRuleDescription( possibleMatchingRule );
                    String replacementString = possibleMatchingRule;
                    if ( equalsColonToken == null )
                    {
                        replacementString += ":";
                    }
                    if ( equalsToken == null )
                    {
                        replacementString += "=";
                    }
                    String displayString = possibleMatchingRule;
                    if ( displayString.equals( description.getNumericOID() ) )
                    {
                        displayString += " (" + description.toString() + ")";
                    }
                    else
                    {
                        displayString += " (" + description.getNumericOID() + ")";
                    }

                    ICompletionProposal proposal = new CompletionProposal( replacementString, offset, matchingRule
                        .length(), replacementString.length(), getMatchingRuleImage(), displayString, null, schema
                        .getMatchingRuleDescription( possibleMatchingRule ).getLine().getUnfoldedValue() );
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.schema.MatchingRuleDescription

         */
        public boolean select( Viewer viewer, Object parentElement, Object element )
        {
            if ( element instanceof MatchingRuleDescription )
            {
                MatchingRuleDescription mrd = ( MatchingRuleDescription ) element;
                boolean matched = false;

                if ( !matched )
                    matched = mrd.toString().toLowerCase().indexOf( filterText.getText().toLowerCase() ) != -1;
                if ( !matched )
                    matched = mrd.getNumericOID().toLowerCase().indexOf( filterText.getText().toLowerCase() ) != -1;

                return matched;
            }
            return false;
        }
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.