public class EcogridRepositoryResults extends java.lang.Object
Constructor and Description |
---|
EcogridRepositoryResults(KarXml.KarEntry karEntry,
java.lang.String repositoryName,
int indexValue,
java.lang.String karLSID) |
EcogridRepositoryResults(org.ecoinformatics.ecogrid.queryservice.resultset.ResultsetTypeRecord record,
java.lang.String repositoryName,
boolean authenticate)
default constructor
|
EcogridRepositoryResults(java.lang.String karLSID,
java.lang.String repositoryName,
boolean authenticate) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
cacheKAR(boolean authenticate)
download the kar file and get it ready to be imported into the local
system.
|
CacheObject |
getCacheObject() |
ComponentEntity |
getComponent()
return the instantiated
|
java.lang.String |
getDocid()
return the docid of the result
|
java.lang.Integer |
getIndexValue()
All EcogridRepositoryResults produced by a single call to parseKarXml()
will be assigned the same index value so they can later be put under a
common KAR file.
|
KarXml.KarEntry |
getKarEntry() |
java.lang.String |
getKarLSID()
return the lsid of the kar file associated with this component
|
java.lang.String |
getLSID()
return the lsid (entityId) of the component
|
java.lang.String |
getName()
return the name of the component
|
java.util.Vector<java.lang.String> |
getSemanticTypes()
return any semantic types associated with this component
|
boolean |
hasException()
returns true if the kar caching thread has thrown an exception
|
boolean |
isReady()
returns true of the kar file from this result is ready for use
|
static java.util.List<EcogridRepositoryResults> |
parseKarXml(java.lang.String docid,
java.lang.String repositoryName,
int indexValue,
boolean authenticate) |
void |
setDocId(java.lang.String docid)
Set the docid (kar xml id)
|
void |
setDownloader(KARDownloader downloader) |
java.lang.String |
toString()
return a string rep of this object
|
public EcogridRepositoryResults(java.lang.String karLSID, java.lang.String repositoryName, boolean authenticate)
public EcogridRepositoryResults(KarXml.KarEntry karEntry, java.lang.String repositoryName, int indexValue, java.lang.String karLSID) throws RepositoryException
RepositoryException
public EcogridRepositoryResults(org.ecoinformatics.ecogrid.queryservice.resultset.ResultsetTypeRecord record, java.lang.String repositoryName, boolean authenticate) throws RepositoryException
RepositoryException
public static java.util.List<EcogridRepositoryResults> parseKarXml(java.lang.String docid, java.lang.String repositoryName, int indexValue, boolean authenticate) throws RepositoryException
RepositoryException
public java.lang.Integer getIndexValue()
public KarXml.KarEntry getKarEntry()
public java.io.File cacheKAR(boolean authenticate) throws RepositoryException
RepositoryException
public boolean isReady()
public boolean hasException()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDocid()
public java.lang.String getName()
public java.lang.String getLSID()
public java.lang.String getKarLSID()
public java.util.Vector<java.lang.String> getSemanticTypes()
public CacheObject getCacheObject()
public ComponentEntity getComponent()
public void setDocId(java.lang.String docid)
docid
- public void setDownloader(KARDownloader downloader)