|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.data.model.io.impl.DefaultTreeReader
public class DefaultTreeReader
Constructor Summary | |
---|---|
DefaultTreeReader()
|
Method Summary | |
---|---|
void |
addControllableListener(ControllableListener listener)
Adds a ControllableListener . |
void |
addProgressableListener(ProgressableListener listener)
Adds a ProgressableListener . |
void |
clearControllableListener()
Clears the list of listeners. |
void |
clearProgressableListener()
Clears the list of listeners. |
int |
getProgress()
Gets the current progress of the Progressable . |
ControllableState |
getState()
Gets the controllable state. |
void |
interrupt()
Sends to the command the order to interrupt its current tasks as soon as possible. |
boolean |
isDetermined()
Checks whether the progress is determined. |
boolean |
isInterrupted()
Checks whether this Controllable has been interrupted. |
boolean |
isInterruptible()
Checks whether this Controllable can be interrupted. |
boolean |
isPausable()
Checks whether this Controllable can be paused. |
void |
pause()
Pauses this Command . |
void |
readTree(DataModel modelToInitialize,
URI anURI,
String metadataFileName)
|
void |
removeControllableListener(ControllableListener listener)
Removes a ControllableListener . |
void |
removeProgressableListener(ProgressableListener listener)
Removes a ProgressableListener . |
void |
resume()
Resumes a paused Command . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTreeReader()
Method Detail |
---|
public void readTree(DataModel modelToInitialize, URI anURI, String metadataFileName) throws IOException
readTree
in interface TreeReader
IOException
public int getProgress()
Progressable
Progressable
.
getProgress
in interface Progressable
public boolean isDetermined()
Progressable
isDetermined
in interface Progressable
public ControllableState getState()
Progressable
getState
in interface Controllable
getState
in interface Progressable
public void addProgressableListener(ProgressableListener listener)
Progressable
ProgressableListener
.
addProgressableListener
in interface Progressable
listener
- the ProgressableListener
to add.public void removeProgressableListener(ProgressableListener listener)
Progressable
ProgressableListener
.
removeProgressableListener
in interface Progressable
listener
- the ProgressableListener
to remove.public void clearProgressableListener()
Progressable
clearProgressableListener
in interface Progressable
public boolean isInterrupted()
Controllable
Controllable
has been interrupted.
isInterrupted
in interface Controllable
Controllable
has been interrupted.public boolean isInterruptible()
Controllable
Controllable
can be interrupted.
isInterruptible
in interface Controllable
Controllable
can be interrupted.public void interrupt()
Controllable
interrupt
in interface Controllable
public boolean isPausable()
Controllable
Controllable
can be paused.
isPausable
in interface Controllable
Controllable
can be paused.public void pause()
Controllable
Command
.
pause
in interface Controllable
public void resume()
Controllable
Command
.
resume
in interface Controllable
public void addControllableListener(ControllableListener listener)
Controllable
ControllableListener
.
addControllableListener
in interface Controllable
listener
- the ControllableListener
to add.public void removeControllableListener(ControllableListener listener)
Controllable
ControllableListener
.
removeControllableListener
in interface Controllable
listener
- the ControllableListener
to remove.public void clearControllableListener()
Controllable
clearControllableListener
in interface Controllable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |