org.robotframework.javalib.factory
Class AnnotationKeywordFactory

java.lang.Object
  extended by org.robotframework.javalib.factory.AnnotationKeywordFactory
All Implemented Interfaces:
KeywordFactory<DocumentedKeyword>

public class AnnotationKeywordFactory
extends java.lang.Object
implements KeywordFactory<DocumentedKeyword>

Author:
Heikki Hulkko

Constructor Summary
AnnotationKeywordFactory(java.util.Map<java.lang.String,java.lang.Object> keywordBeansMap)
           
 
Method Summary
 DocumentedKeyword createKeyword(java.lang.String keywordName)
          Creates an instance of the class implementing the given keyword name
protected  void extractKeywordsFromKeywordBeans(java.util.Map<java.lang.String,java.lang.Object> keywordBeansMap)
           
 java.lang.String[] getKeywordNames()
          Returns all the names of the keywords that this factory can create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationKeywordFactory

public AnnotationKeywordFactory(java.util.Map<java.lang.String,java.lang.Object> keywordBeansMap)
Method Detail

createKeyword

public DocumentedKeyword createKeyword(java.lang.String keywordName)
Description copied from interface: KeywordFactory
Creates an instance of the class implementing the given keyword name

Specified by:
createKeyword in interface KeywordFactory<DocumentedKeyword>
Parameters:
keywordName - keyword name (will be normalized, so pretty much any formatting will do)
Returns:
keyword instance

getKeywordNames

public java.lang.String[] getKeywordNames()
Description copied from interface: KeywordFactory
Returns all the names of the keywords that this factory can create

Specified by:
getKeywordNames in interface KeywordFactory<DocumentedKeyword>
Returns:
names of available keywords

extractKeywordsFromKeywordBeans

protected void extractKeywordsFromKeywordBeans(java.util.Map<java.lang.String,java.lang.Object> keywordBeansMap)


Copyright © 2008. All Rights Reserved.