Package de.unirostock.sems.ModelCrawler
Class CrawlerAPI
- java.lang.Object
-
- de.unirostock.sems.ModelCrawler.CrawlerAPI
-
public class CrawlerAPI extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CRAWLED_DATE
static String
FILE_NAME
static String
FILE_PATH
static String
REPOSITORY_URL
static String
VERSION_DATE
static String
VERSION_ID
-
Constructor Summary
Constructors Constructor Description CrawlerAPI(String[] args)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,ChangeSet>
getChangesPerRelease(CrawlerAPI api)
static ArrayList<String>
getDownloadedModels(App crawler)
static String
getModelChange(Change change, String field)
Return a specific field within the provided model's change.static ChangeSet
getModelChangeSet(Map<String,ChangeSet> changesPerRelease, String modelName)
Return all ChangeSet changes associated with the given modelName.static void
main(String[] args)
Class demo.
-
-
-
Field Detail
-
REPOSITORY_URL
public static final String REPOSITORY_URL
-
FILE_PATH
public static final String FILE_PATH
-
FILE_NAME
public static final String FILE_NAME
-
VERSION_ID
public static final String VERSION_ID
-
VERSION_DATE
public static final String VERSION_DATE
-
CRAWLED_DATE
public static final String CRAWLED_DATE
-
-
Constructor Detail
-
CrawlerAPI
public CrawlerAPI(String[] args)
-
-
Method Detail
-
getChangesPerRelease
public static Map<String,ChangeSet> getChangesPerRelease(CrawlerAPI api)
-
getModelChangeSet
public static ChangeSet getModelChangeSet(Map<String,ChangeSet> changesPerRelease, String modelName)
Return all ChangeSet changes associated with the given modelName.- Parameters:
changesPerRelease
- the changes per releasemodelName
- the model name- Returns:
- the model change set
-
getModelChange
public static String getModelChange(Change change, String field)
Return a specific field within the provided model's change.- Parameters:
change
- the changefield
- the field- Returns:
- the model change
-
main
public static void main(String[] args)
Class demo. Uncomment the procedure you wish to test- Parameters:
args
- the args
-
-