public class ActorMetadataKAREntryHandler extends java.lang.Object implements KAREntryHandler
Modifier and Type | Class and Description |
---|---|
static class |
ActorMetadataKAREntryHandler.Factory
A factory that creates a KAREntryHandler object.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Constructor and Description |
---|
ActorMetadataKAREntryHandler() |
Modifier and Type | Method and Description |
---|---|
CacheObject |
cache(KARFile karFile,
KAREntry entry)
This method should return a CacheObject that will be put into the cache.
|
java.lang.String |
getTypeName()
Method for backwards compatibility with KAR version 1.0 KAR version 2.0
and 2.1 uses the binary class name as the type.
|
static boolean |
handlesClass(java.lang.String className)
If the typeName is equal to or a subclass of any of the handled class
types, then we return true.
|
boolean |
handlesType(java.lang.String typeName)
If the typeName is equal to or a subclass of any of the handled class
types, then we return true.
|
void |
initialize()
The initialize method is called directly after instantiating this
KAREntryHandler.
|
boolean |
open(KARFile karFile,
KAREntry entry,
TableauFrame tableauFrame)
When a KAR file is opened, any entries in the KAR file that have the same
type as this KAREntryHandler will be passed to this open method.
|
java.util.Hashtable<KAREntry,java.io.InputStream> |
save(java.util.Vector<KeplerLSID> lsids,
KeplerLSID karLsid,
TableauFrame tableauFrame)
The save method for ActorMetadataKAREntryHandler is not used since Actors
and Workflows are not dependent on anything else.
|
public static final java.lang.String TYPE
public ActorMetadataKAREntryHandler()
public java.lang.String getTypeName()
getTypeName
in interface KAREntryHandler
KAREntryHandler.getTypeName()
public boolean handlesType(java.lang.String typeName)
handlesType
in interface KAREntryHandler
public static boolean handlesClass(java.lang.String className)
public void initialize()
KAREntryHandler
initialize
in interface KAREntryHandler
public CacheObject cache(KARFile karFile, KAREntry entry) throws java.lang.Exception
KAREntryHandler
cache
in interface KAREntryHandler
java.lang.Exception
public boolean open(KARFile karFile, KAREntry entry, TableauFrame tableauFrame) throws java.lang.Exception
KAREntryHandler
open
in interface KAREntryHandler
java.lang.Exception
public java.util.Hashtable<KAREntry,java.io.InputStream> save(java.util.Vector<KeplerLSID> lsids, KeplerLSID karLsid, TableauFrame tableauFrame) throws java.lang.Exception
save
in interface KAREntryHandler
karLsid
- the lsid of the containing KARjava.lang.Exception
org.kepler.kar.KAREntryHandler#save(org.kepler.objectmanager.lsid.KeplerLSID
)