Package manager

Examples of manager.IllegalParameterException


        return cont;
    }

    public Object getInstance(String name, Class type) throws IllegalParameterException {
        if((!ALIGN_AND_DISTRIBUTION_SERVICE_NAME.equals(name))||(!FComponent.class.equals(type)))
            throw new IllegalParameterException("IllegalParameterException");

        AlignAndDistService alignAndDistService = new AlignAndDistService();

        Context cont = alignAndDistService.getContext();
        ActionMap actionMap = alignAndDistService.getActionMap();
View Full Code Here


        return cont;
    }

    public Object getInstance(String name, Class type) throws IllegalParameterException
    {
        IllegalParameterException ipe = new IllegalParameterException("IllegalArgument");

        if(NGOBJECT.equals(name)&&(type.equals(FComponent.class))){
            Object interfaces = getContext().getValue(INTERFACES);
            Object classes = getContext().getValue(CLASSES);
            Object objectName = getContext().getValue(NAME);;
View Full Code Here


    public Object getInstance(String name, Class type) throws IllegalParameterException {

        if ((!GRAPHICAL_EDITOR_NAME.equals(name)) || (!FComponent.class.equals(type))) {
            throw new IllegalParameterException("IllegalParameterException");
        }

        Object value = getContext().getValue(DRAWING_ARRAY_CONTEXT);

        GraphicalEditor graphicalEditor;
        GraphicalEditorUI graphicalEditorUI;
        DrawingViewContainer drawingViewContainer;
        ActionMap actionMap;
        DropTargetListener dropTargetListener;
        ElementLocator elementLocator;

        if (value == null) {
            graphicalEditor = createGraphicalEditor();
        } else {
            if (!value.getClass().isArray()) {
                throw new IllegalParameterException("IllegalParameterException");
            }

            Object[] objects = (Object[]) value;

            if (!(objects instanceof Drawing[])) {
                throw new IllegalParameterException("IllegalParameterException");
            }

            Drawing[] drawings = (Drawing[]) objects;

            graphicalEditor = createGraphicalEditor(drawings);
View Full Code Here

    }

    public Object getInstance(String name, Class type) throws IllegalParameterException
    {
        if((!FEATURE_MODEL_NAME.equals(name))||(!FComponent.class.equals(type)))
            throw new IllegalParameterException("IllegalParameterException");

        String modelName = (String) getContext().getValue(NAME_CONTEXT);
        String modelDesp = (String) getContext().getValue(DESCRIPTION_CONTEXT);

        FeatureModel featureModel;
View Full Code Here

    //�������Ƽ����ͻ�ȡһ��ʵ��������������ȷʱ�׳��쳣
    public Object getInstance(String name, Class type) throws IllegalParameterException {

        if ((!ConstantDefinition.VIEW_ID_MAP_NAME.equals(name)) || (!FComponent.class.equals(type))) {
            throw new IllegalParameterException("IllegalParameterException");
        }

        View_IDMapImplementation imp = new View_IDMapImplementation();

        Hashtable interfaces = null;
View Full Code Here


    public Object getInstance(String name, Class type) throws IllegalParameterException {

        if ((!GRAPHICAL_EDITOR_NAME.equals(name)) || (!FComponent.class.equals(type))) {
            throw new IllegalParameterException("IllegalParameterException");
        }

        Object value = getContext().getValue(DRAWING_ARRAY_CONTEXT);

        Interface graphicalEditor;
        UI graphicalEditorUI;
        DrawingViewContainer drawingViewContainer;
        ActionMap actionMap;
        DropTargetListener dropTargetListener;

        if (value == null) {
            graphicalEditor = createGraphicalEditor();
        } else {
            if (!value.getClass().isArray()) {
                throw new IllegalParameterException("IllegalParameterException");
            }

            Object[] objects = (Object[]) value;

            if (!(objects instanceof Drawing[])) {
                throw new IllegalParameterException("IllegalParameterException");
            }

            Drawing[] drawings = (Drawing[]) objects;

            graphicalEditor = createGraphicalEditor(drawings);
View Full Code Here

    public Object getInstance(String name, Class type)
            throws IllegalParameterException {
        if (CONTEXT.equals(name) && (type.equals(Context.class))) {
            return new ContextImp();
        } else
            throw new IllegalParameterException("IllegalParameterException");
    }
View Full Code Here

        return cont;
    }

    public Object getInstance(String name, Class type) throws IllegalParameterException
    {
        IllegalParameterException ipe = new IllegalParameterException("IllegalArgument");

        if(NGOBJECT.equals(name)&&(type.equals(FComponent.class))){
            Object interfaces = getContext().getValue(INTERFACES);
            Object classes = getContext().getValue(CLASSES);
            Object objectName = getContext().getValue(NAME);;
View Full Code Here

TOP

Related Classes of manager.IllegalParameterException

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.