org.robotframework.javalib.keyword
Class CollisionKeyword

java.lang.Object
  extended by org.robotframework.javalib.keyword.CollisionKeyword
All Implemented Interfaces:
Keyword

public class CollisionKeyword
extends java.lang.Object
implements Keyword

If a keyword name collision is detected, an instance of this class will be associated with the colliding name. Execution of this keyword will notify the user of the collision and the two classes that have the same keyword name.


Constructor Summary
CollisionKeyword(java.lang.String implementingClassName1, java.lang.String implementingClassName2)
          Creates a collision keyword
 
Method Summary
 java.lang.Object execute(java.lang.Object[] arguments)
          Throws a KeywordNameCollisionException with an error message notifying the user of the collision and classes causing the collision.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionKeyword

public CollisionKeyword(java.lang.String implementingClassName1,
                        java.lang.String implementingClassName2)
Creates a collision keyword

Parameters:
implementingClassName1 - name of first class with colliding keyword name
implementingClassName2 - name of second class with colliding keyword name
Method Detail

execute

public java.lang.Object execute(java.lang.Object[] arguments)
Throws a KeywordNameCollisionException with an error message notifying the user of the collision and classes causing the collision.

Specified by:
execute in interface Keyword
Parameters:
arguments - arguments from Robot
Returns:
keyword return value. If the keyword isn't suppose to return anything useful, use Boolean.TRUE.
Throws:
KeywordNameCollisionException - always throws this exception


Copyright © 2009. All Rights Reserved.