public abstract class Library extends Object implements ReflectionSubscriber<Event>
| Modifier | Constructor and Description |
|---|---|
protected |
Library(Library library) |
protected |
Library(String namespace) |
protected |
Library(String namespace,
Library library) |
| Modifier and Type | Method and Description |
|---|---|
BlackboardSource |
blackboard()
Returns the variable store of the interpreter.
|
boolean |
containsKeyword(String keyword)
Checks if this library has a instruction registered for the specified
keywords.
|
InterpreterContext |
context() |
DocumentMediator |
documentMediator() |
void |
eventHandler(FetchLibrariesEvent event) |
void |
eventHandler(FetchLibraryEvent event) |
Interpreter |
executor()
Return the interpreter when executing or validating a feed.
|
Feed |
feed()
Returns the feed holding the instructions.
|
DataSource |
getDataSource() |
DataSource |
getDataSource(String name) |
Instruction |
getInstruction(String keyword)
Returns the instruction registered under the specified keyword.
|
Instruction[] |
getInstructions()
Returns all the instruction that this library hold.
|
String[] |
getKeywords()
Returns all the keywords that this library contains instructions for.
|
String |
getNamespace()
Return the namespace of this library.
|
boolean |
hasInstruction(String keyword)
Returns true if a instruction is registered under the specified keyword.
|
Log |
log()
Returns the log when executing or validating a feed.
|
void |
publish(Event event)
Fired events are send to the libraries that are registered with the
executor.
|
protected void |
setEvents(EventService service)
Registers the EventService of the calling interpreter with this library.
|
protected abstract void |
setup() |
void |
setup(Library library) |
SheetFactory |
sheetFactory() |
protected abstract void |
teardown() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteventHandlerprotected Library(Library library)
protected Library(String namespace)
protected void setEvents(EventService service)
service - the EventService to setpublic final void setup(Library library)
public DataSource getDataSource()
public final DataSource getDataSource(String name)
public final String getNamespace()
public boolean containsKeyword(String keyword)
public final String[] getKeywords()
public final Instruction[] getInstructions()
public final Instruction getInstruction(String keyword)
public boolean hasInstruction(String keyword)
public void publish(Event event)
public final InterpreterContext context()
public final Interpreter executor()
public final Feed feed()
public final Log log()
public final BlackboardSource blackboard()
public final SheetFactory sheetFactory()
public final DocumentMediator documentMediator()
protected abstract void setup()
protected abstract void teardown()
public void eventHandler(FetchLibraryEvent event)
public void eventHandler(FetchLibrariesEvent event)
Copyright © 2015. All rights reserved.