project35.workBench
Class WorkBenchEntryReader

java.lang.Object
  extended by project35.workBench.WorkBenchEntryReader

public class WorkBenchEntryReader
extends java.lang.Object

reads the ./models/[yourModel]/config/WorkBenchEntry.xml file that describes a model folder.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net),

Constructor Summary
WorkBenchEntryReader()
           
 
Method Summary
 WorkBenchEntryModel[] getWorkBenchEntryModels()
           
 WorkBenchEntryModel parseFile(java.lang.String configurationDirectory, java.io.File workBenchEntryFile)
          uses the attributes found in a work bench entry file to create an instance of a WorkBenchEntryModel.
 void readFiles(java.lang.String[] modelFolders)
          goes through the models directory and scans to find the file .\models\[current model]\config\WorkBenchEntry.xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkBenchEntryReader

public WorkBenchEntryReader()
Method Detail

getWorkBenchEntryModels

public WorkBenchEntryModel[] getWorkBenchEntryModels()

readFiles

public void readFiles(java.lang.String[] modelFolders)
goes through the models directory and scans to find the file .\models\[current model]\config\WorkBenchEntry.xml


parseFile

public WorkBenchEntryModel parseFile(java.lang.String configurationDirectory,
                                     java.io.File workBenchEntryFile)
uses the attributes found in a work bench entry file to create an instance of a WorkBenchEntryModel. This data object is managed by the WorkBench editor to generate rows in the main display table. Each row would contain a thumbnail representing a logo and a description of what the model should do.