edu.stanford.smi.protege.util
Class GetInstancesAndBrowserTextJob
java.lang.Object
edu.stanford.smi.protege.util.RemoteJob
edu.stanford.smi.protege.util.ProtegeJob
edu.stanford.smi.protege.util.GetInstancesAndBrowserTextJob
- All Implemented Interfaces:
- Localizable, Serializable
public class GetInstancesAndBrowserTextJob
- extends ProtegeJob
Protege Job for getting the instances and their browser text from the server.
- Author:
- Tania Tudorache
- See Also:
- Serialized Form
Method Summary |
Collection<FrameWithBrowserText> |
execute()
This method will either execute the job.run() method or - in the
case that the caller is a client to a Protege server - it will copy
this job to the server so that it can execute there. |
void |
localize(KnowledgeBase kb)
This call is used to make needed adjustments to objects after they have
been serialized and then deserialized. |
Collection<FrameWithBrowserText> |
run()
This class is overridden by the sub class and defines
the fuunctionality of this job. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetInstancesAndBrowserTextJob
public GetInstancesAndBrowserTextJob(KnowledgeBase kb,
Collection<Cls> clses,
boolean directInstances)
run
public Collection<FrameWithBrowserText> run()
throws ProtegeException
- Description copied from class:
RemoteJob
- This class is overridden by the sub class and defines
the fuunctionality of this job. The intention is that the
sub-class will define this method and callers will use the
execute() method.
- Specified by:
run
in class RemoteJob
- Returns:
-
- Throws:
ProtegeException
execute
public Collection<FrameWithBrowserText> execute()
throws ProtegeException
- Description copied from class:
ProtegeJob
- This method will either execute the job.run() method or - in the
case that the caller is a client to a Protege server - it will copy
this job to the server so that it can execute there.
- Overrides:
execute
in class ProtegeJob
- Returns:
- the object returned by the execution of this job.
- Throws:
ProtegeException
- the exception thrown by this job during its execution.
localize
public void localize(KnowledgeBase kb)
- Description copied from class:
ProtegeJob
- This call is used to make needed adjustments to objects after they have
been serialized and then deserialized. The main adjustment needed is to
set the knowledge base in all the frames. It is likely that all sub-classes
will need to implement this method.
- Specified by:
localize
in interface Localizable
- Overrides:
localize
in class ProtegeJob
- Parameters:
kb
- The knowledge base of running on the jvm that deserialized this job.
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2013 Stanford University.