|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.robotframework.javalib.factory.CompositeKeywordFactory
public class CompositeKeywordFactory
A composite keyword factory that combines several keyword factories.
In case of a conflicting keyword name we register a
CollisionKeyword instead of either of the real implementations.
When executed, the collision keyword will notify the user of the
keyword name conflict.
CollisionKeyword| Constructor Summary | |
|---|---|
CompositeKeywordFactory()
|
|
| Method Summary | |
|---|---|
void |
addKeywordFactory(KeywordFactory factory)
Adds a keyword factory. |
Keyword |
createKeyword(java.lang.String keywordName)
Creates an instance of the class implementing the given keyword name |
KeywordFactory[] |
getKeywordFactories()
Returns the keyword factories this instance combines |
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 |
|---|
public CompositeKeywordFactory()
| Method Detail |
|---|
public Keyword createKeyword(java.lang.String keywordName)
KeywordFactory
createKeyword in interface KeywordFactory<Keyword>keywordName - keyword name (will be normalized, so pretty much
any formatting will do)
KeywordFactory.createKeyword(String)public java.lang.String[] getKeywordNames()
KeywordFactory
getKeywordNames in interface KeywordFactory<Keyword>KeywordFactory.getKeywordNames()public void addKeywordFactory(KeywordFactory factory)
factory - factory to addpublic KeywordFactory[] getKeywordFactories()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||