Examples of AbstractSchemaDescription


Examples of org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaDescription

    /**
     * {@inheritDoc}
     */
    public String getText()
    {
        AbstractSchemaDescription schemaElement = getSchemElement();
        if ( schemaElement != null )
        {
            if ( schemaElement instanceof ObjectClassDescription )
            {

View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaDescription

     * {@inheritDoc}
     */
    public void saveState( IMemento memento )
    {
        IBrowserConnection connection = getConnection();
        AbstractSchemaDescription schemaElement = getSchemElement();
        memento.putString( "CONNECTION", connection.getConnection().getId() ); //$NON-NLS-1$
        memento.putString( "SCHEMAELEMENTYPE", schemaElement.getClass().getName() ); //$NON-NLS-1$
        memento.putString( "SCHEMAELEMENTOID", schemaElement.getNumericOid() ); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaDescription

    {
        IBrowserConnection connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
            memento.getString( "CONNECTION" ) ); //$NON-NLS-1$
        String schemaElementType = memento.getString( "SCHEMAELEMENTYPE" ); //$NON-NLS-1$
        String schemaElementOid = memento.getString( "SCHEMAELEMENTOID" ); //$NON-NLS-1$
        AbstractSchemaDescription schemaElement = null;
        if ( ObjectClassDescription.class.getName().equals( schemaElementType ) )
        {
            schemaElement = connection.getSchema().getObjectClassDescription( schemaElementOid );
        }
        else if ( AttributeTypeDescription.class.getName().equals( schemaElementType ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaDescription

        {
            return false;
        }

        SchemaBrowserNavigationLocation location = ( SchemaBrowserNavigationLocation ) currentLocation;
        AbstractSchemaDescription other = location.getSchemElement();
        AbstractSchemaDescription element = getSchemElement();

        if ( other == null && element == null )
        {
            return true;
        }
        else if ( other == null || element == null )
        {
            return false;
        }
        else
        {
            return element.equals( other );
        }
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaDescription

        Object editorInput = getInput();
        if ( editorInput != null && editorInput instanceof SchemaBrowserInput )
        {
            SchemaBrowserInput schemaBrowserInput = ( SchemaBrowserInput ) editorInput;
            AbstractSchemaDescription schemaElement = schemaBrowserInput.getSchemaElement();
            if ( schemaElement != null )
            {
                return schemaElement;
            }
        }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.parsers.AbstractSchemaDescription

            // set connection;
            IBrowserConnection connection = sbi.getConnection();
            setConnection( connection );

            // set schema element and activate tab
            AbstractSchemaDescription schemaElement = sbi.getSchemaElement();
            if ( schemaElement instanceof ObjectClassDescription )
            {
                ocdPage.select( schemaElement );
                tabFolder.setSelection( ocdTab );
            }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.syntax.AbstractSchemaDescription

    /**
     * {@inheritDoc}
     */
    public String getText()
    {
        AbstractSchemaDescription schemaElement = getSchemElement();
        if ( schemaElement != null )
        {
            if ( schemaElement instanceof ObjectClassDescription )
            {
                return "Object Class " + schemaElement.toString();
            }
            else if ( schemaElement instanceof AttributeTypeDescription )
            {
                return "Attribute Type " + schemaElement.toString();
            }
            else if ( schemaElement instanceof LdapSyntaxDescription )
            {
                return "Syntax " + schemaElement.toString();
            }
            else if ( schemaElement instanceof MatchingRuleDescription )
            {
                return "Matching Rule " + schemaElement.toString();
            }
            else if ( schemaElement instanceof MatchingRuleUseDescription )
            {
                return "Matching Rule Use " + schemaElement.toString();
            }
            else
            {
                return schemaElement.getNumericOid();
            }
        }
        else
        {
            return super.getText();
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.syntax.AbstractSchemaDescription

     * {@inheritDoc}
     */
    public void saveState( IMemento memento )
    {
        IBrowserConnection connection = getConnection();
        AbstractSchemaDescription schemaElement = getSchemElement();
        memento.putString( "CONNECTION", connection.getConnection().getId() );
        memento.putString( "SCHEMAELEMENTYPE", schemaElement.getClass().getName() );
        memento.putString( "SCHEMAELEMENTOID", schemaElement.getNumericOid() );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.syntax.AbstractSchemaDescription

    {
        IBrowserConnection connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById(
            memento.getString( "CONNECTION" ) );
        String schemaElementType = memento.getString( "SCHEMAELEMENTYPE" );
        String schemaElementOid = memento.getString( "SCHEMAELEMENTOID" );
        AbstractSchemaDescription schemaElement = null;
        if ( ObjectClassDescription.class.getName().equals( schemaElementType ) )
        {
            schemaElement = connection.getSchema().getObjectClassDescription( schemaElementOid );
        }
        else if ( AttributeTypeDescription.class.getName().equals( schemaElementType ) )
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.syntax.AbstractSchemaDescription

        {
            return false;
        }

        SchemaBrowserNavigationLocation location = ( SchemaBrowserNavigationLocation ) currentLocation;
        AbstractSchemaDescription other = location.getSchemElement();
        AbstractSchemaDescription element = getSchemElement();

        if ( other == null && element == null )
        {
            return true;
        }
        else if ( other == null || element == null )
        {
            return false;
        }
        else
        {
            return element.equals( other );
        }
    }
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.