Package org.apache.directory.studio.ldapbrowser.core.model.schema

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



    public final MatchingRuleUseDescription matchingRuleUseDescription() throws RecognitionException,
        TokenStreamException
    {
        MatchingRuleUseDescription mrud = new MatchingRuleUseDescription();

        Token oid = null;
        Token name = null;
        Token desc = null;
        Token applies = null;

        {
            oid = LT( 1 );
            match( STARTNUMERICOID );
            mrud.setNumericOID( oid.getText() );
        }
        {
            _loop132: do
            {
                switch ( LA( 1 ) )
                {
                    case NAME:
                    {
                        {
                            name = LT( 1 );
                            match( NAME );
                            mrud.setNames( qdescrs( name.getText() ) );
                        }
                        break;
                    }
                    case DESC:
                    {
                        {
                            desc = LT( 1 );
                            match( DESC );
                            mrud.setDesc( qdstring( desc.getText() ) );
                        }
                        break;
                    }
                    case OBSOLETE:
                    {
                        {
                            match( OBSOLETE );
                            mrud.setObsolete( true );
                        }
                        break;
                    }
                    case APPLIES:
                    {
                        {
                            applies = LT( 1 );
                            match( APPLIES );
                            mrud.setAppliesAttributeTypeDescriptionOIDs( oids( applies.getText() ) );
                        }
                        break;
                    }
                    default:
                    {
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public void setInput( Object input )
    {
        MatchingRuleUseDescription mrud = null;
        if ( input instanceof MatchingRuleUseDescription )
        {
            mrud = ( MatchingRuleUseDescription ) input;
        }

        // create main content
        this.createMainContent( mrud );
       
        // set flag
        isObsoleteText.setEnabled( mrud != null && mrud.isObsolete() );
       
        // create contents of dynamic sections
        this.createAppliesContents( mrud );
        super.createRawContents( mrud );

View Full Code Here

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

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

                return matched;
            }
            return false;
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.core.model.schema.MatchingRuleUseDescription

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.