Class ImportStatus

java.lang.Object
it.uniroma2.art.semanticturkey.ontology.ImportStatus

public class ImportStatus extends Object
Author:
Armando Stellato
  • Constructor Details

  • Method Details

    • createFailedStatus

      public static ImportStatus createFailedStatus(String reason)
    • getCacheFile

      public OntFile getCacheFile()
      Returns:
      the cacheFile, this is only the name of the file; complete path is resolved by the application on the basis of the status
    • setCacheFile

      public void setCacheFile(OntFile cacheFile)
      sets the cache file for this importStatus
      Parameters:
      cacheFile -
    • getValue

      public ImportStatus.Values getValue()
      Returns:
      the status of the import, it explains whether a given import is LOCAL, WEB, NULL or FAILED
    • getReason

      public String getReason()
      Returns:
      the reason for the failed import (null if status!=FAILED)
    • setValue

      public void setValue(ImportStatus.Values status)
    • setValue

      public void setValue(ImportStatus.Values status, OntFile cacheFile)
    • setFailed

      public void setFailed(String reason)