com.sap.ide.webdynpro.checklayer.controller
Class ViewControllerChecker

java.lang.Object
  |
  +--com.sap.ide.webdynpro.checklayer.controller.ViewControllerChecker
All Implemented Interfaces:
IWebDynproChecker

public class ViewControllerChecker
extends java.lang.Object
implements IWebDynproChecker

This is the checker class for view controllers.


Constructor Summary
ViewControllerChecker()
           
 
Method Summary
static java.util.Vector areActionAndEventHandlerParameterCompatible(com.sap.ide.metamodel.webdynpro.component.controller.Action action, com.sap.ide.metamodel.webdynpro.base.EventHandler eventHandler)
          Helper method to determine if an action and an event handler are type compatible.
static java.util.Vector areInboundPlugAndEventHandlerParameterCompatible(com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug inboundPlug, com.sap.ide.metamodel.webdynpro.base.EventHandler eventHandler)
          Helper method to determine if an inbound plug and an event handler are type compatible.
static java.util.Vector arePlugsParameterCompatible(com.sap.ide.metamodel.webdynpro.component.navigation.OutboundPlug outPlug, com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug inPlug)
          Helper method to determine if an outbound plug and an inbound plug are type compatible.
static java.util.Vector areUIElementAndActionParameterCompatible(com.sap.ide.metamodel.webdynpro.framework.FrameworkEvent event, com.sap.ide.metamodel.webdynpro.component.controller.Action action)
          Helper method to determine if an event and an action are type compatible.
static void check(com.sap.ide.metamodel.webdynpro.component.controller.Controller controller, boolean fullCheck, CheckResult checkResult)
          This method starts the checks for a view controller.
 void check(com.sap.ide.metamodel.general.DevelopmentObject developmentObject, boolean fullCheck, CheckResult checkResult)
           
static java.util.Vector doesPlugImplementPlug(com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug plugDefinition, com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug plugImplementation)
          Helper method to determine if one inbound plug implements another inbound plug.
static java.util.Vector doesPlugImplementPlug(com.sap.ide.metamodel.webdynpro.component.navigation.OutboundPlug plugDefinition, com.sap.ide.metamodel.webdynpro.component.navigation.OutboundPlug plugImplementation)
          Helper method to determine if one outbound plug implements another outbound plug.
static ViewControllerChecker getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewControllerChecker

public ViewControllerChecker()
Method Detail

getInstance

public static ViewControllerChecker getInstance()

check

public void check(com.sap.ide.metamodel.general.DevelopmentObject developmentObject,
                  boolean fullCheck,
                  CheckResult checkResult)
Specified by:
check in interface IWebDynproChecker
See Also:
IWebDynproChecker.check(DevelopmentObject, boolean, CheckResult)

check

public static void check(com.sap.ide.metamodel.webdynpro.component.controller.Controller controller,
                         boolean fullCheck,
                         CheckResult checkResult)
This method starts the checks for a view controller. The following checks are performed: - Is the controller really a view controller? The following methods are called: - checkActions - checkInboundPlugs - checkOutboundPlugs This method calls the checker for the view.
Parameters:
controller - The interface view controller to check.
fullCheck - This parameter has no effect for this method.
checkResult - The found errors and warnings are stored in this object.

areUIElementAndActionParameterCompatible

public static java.util.Vector areUIElementAndActionParameterCompatible(com.sap.ide.metamodel.webdynpro.framework.FrameworkEvent event,
                                                                        com.sap.ide.metamodel.webdynpro.component.controller.Action action)
Helper method to determine if an event and an action are type compatible. This method delegates to the method areParameterizedFeaturesParameterCompatible(...).
Parameters:
event - The event to check.
action - The action to check.
Returns:
A vector of parameters of the action that cannot be supplied or null if all action parameters can be supplied.

arePlugsParameterCompatible

public static java.util.Vector arePlugsParameterCompatible(com.sap.ide.metamodel.webdynpro.component.navigation.OutboundPlug outPlug,
                                                           com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug inPlug)
Helper method to determine if an outbound plug and an inbound plug are type compatible. This method delegates to the method areParameterizedFeaturesParameterCompatible(...).
Parameters:
outPlug - The outbound plug to check.
inPlug - The inbound plug to check.
Returns:
A vector of parameters of the inbound plug that cannot be supplied or null if all inbound plug parameters can be supplied.

doesPlugImplementPlug

public static java.util.Vector doesPlugImplementPlug(com.sap.ide.metamodel.webdynpro.component.navigation.OutboundPlug plugDefinition,
                                                     com.sap.ide.metamodel.webdynpro.component.navigation.OutboundPlug plugImplementation)
Helper method to determine if one outbound plug implements another outbound plug. This method delegates to the method areParameterizedFeaturesParameterCompatible(...).
Parameters:
plugDefinition - The plug definition.
plugImplementation - The plug implementation.
Returns:
A vector of parameters of the definition plug that are not contained in the parameter list of the implementation plug.

doesPlugImplementPlug

public static java.util.Vector doesPlugImplementPlug(com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug plugDefinition,
                                                     com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug plugImplementation)
Helper method to determine if one inbound plug implements another inbound plug. This method delegates to the method areParameterizedFeaturesParameterCompatible(...).
Parameters:
plugDefinition - The plug definition.
plugImplementation - The plug implementation.
Returns:
A vector of parameters of the definition plug that are not contained in the parameter list of the implementation plug.

areActionAndEventHandlerParameterCompatible

public static java.util.Vector areActionAndEventHandlerParameterCompatible(com.sap.ide.metamodel.webdynpro.component.controller.Action action,
                                                                           com.sap.ide.metamodel.webdynpro.base.EventHandler eventHandler)
Helper method to determine if an action and an event handler are type compatible. This method delegates to the method areParameterizedFeaturesParameterCompatible(...).
Parameters:
action - The action to check.
eventHandler - The event handler to check.
Returns:
A vector of parameters of the event handler that cannot be supplied or null if all event handler parameters can be supplied.

areInboundPlugAndEventHandlerParameterCompatible

public static java.util.Vector areInboundPlugAndEventHandlerParameterCompatible(com.sap.ide.metamodel.webdynpro.component.navigation.InboundPlug inboundPlug,
                                                                                com.sap.ide.metamodel.webdynpro.base.EventHandler eventHandler)
Helper method to determine if an inbound plug and an event handler are type compatible. This method delegates to the method areParameterizedFeaturesParameterCompatible(...).
Parameters:
inboundPlug - The inbound plug to check.
eventHandler - The event handler to check.
Returns:
A vector of parameters of the event handler that cannot be supplied or null if all event handler parameters can be supplied.


Copyright © 2005 SAP AG. All Rights Reserved.