Package gov.nasa.arc.mct.services.component

Examples of gov.nasa.arc.mct.services.component.ViewType


        AbstractComponent component = context.getProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), AbstractComponent.class);       
        if (!checkArguments(context, component))
            return trueResult; // pass it over to the next policy in the chain       

        ViewType viewType = context
                .getProperty(PolicyContext.PropertyName.VIEW_TYPE.getName(), ViewType.class);
        ViewInfo targetViewInfo = context.getProperty(PolicyContext.PropertyName.TARGET_VIEW_INFO.getName(), ViewInfo.class);
        if (viewType == ViewType.OBJECT || viewType == ViewType.CENTER) {
                if (DropboxCanvasView.class.isAssignableFrom(targetViewInfo.getViewClass()) ||
                        targetViewInfo.getViewName().equals("Info"))
View Full Code Here


        ExecutionResult trueResult = new ExecutionResult(context, true, EM_STR);
        TelemetryDataTaxonomyComponent component = context.getProperty(PolicyContext.PropertyName.TARGET_COMPONENT.getName(), TelemetryDataTaxonomyComponent.class);
        if (component == null || component != rootComponent)
            return trueResult;
       
        ViewType viewType = context.getProperty(PolicyContext.PropertyName.VIEW_TYPE.getName(), ViewType.class);
        return viewType != ViewType.OBJECT ? trueResult : new ExecutionResult(context, false, EM_STR);
    }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.services.component.ViewType

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.