|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 TreeReaderIOExceptionpublic int getProgress()
ProgressableProgressable.
getProgress in interface Progressablepublic boolean isDetermined()
Progressable
isDetermined in interface Progressablepublic ControllableState getState()
Progressable
getState in interface ControllablegetState in interface Progressablepublic void addProgressableListener(ProgressableListener listener)
ProgressableProgressableListener.
addProgressableListener in interface Progressablelistener - the ProgressableListener to add.public void removeProgressableListener(ProgressableListener listener)
ProgressableProgressableListener.
removeProgressableListener in interface Progressablelistener - the ProgressableListener to remove.public void clearProgressableListener()
Progressable
clearProgressableListener in interface Progressablepublic boolean isInterrupted()
ControllableControllable has been interrupted.
isInterrupted in interface ControllableControllable has been interrupted.public boolean isInterruptible()
ControllableControllable can be interrupted.
isInterruptible in interface ControllableControllable can be interrupted.public void interrupt()
Controllable
interrupt in interface Controllablepublic boolean isPausable()
ControllableControllable can be paused.
isPausable in interface ControllableControllable can be paused.public void pause()
ControllableCommand.
pause in interface Controllablepublic void resume()
ControllableCommand.
resume in interface Controllablepublic void addControllableListener(ControllableListener listener)
ControllableControllableListener.
addControllableListener in interface Controllablelistener - the ControllableListener to add.public void removeControllableListener(ControllableListener listener)
ControllableControllableListener.
removeControllableListener in interface Controllablelistener - 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 | |||||||||