Package org.onebusaway.admin.bundle
Class AgencyList
- java.lang.Object
-
- org.onebusaway.admin.bundle.AgencyList
-
public class AgencyList extends Object
This class contains utility methods for dealing with lists of agencies for a particular data bundle. These are used by the Transit Data Bundle Utility in building a bundle.
-
-
Constructor Summary
Constructors Constructor Description AgencyList(FileService fileService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.simple.JSONArray
updateAgencyList(DirectoryStatus directoryStatus, String directoryName)
This method will create an agencyList JSON array based on the directories and files currently in this bundle directory.
-
-
-
Constructor Detail
-
AgencyList
public AgencyList(FileService fileService)
-
-
Method Detail
-
updateAgencyList
public org.json.simple.JSONArray updateAgencyList(DirectoryStatus directoryStatus, String directoryName)
This method will create an agencyList JSON array based on the directories and files currently in this bundle directory. That list will then be updated based on any additional information in the bundleInfo data from the file info.json.- Parameters:
directoryStatus
- contains info about the bundle build processdirectoryName
- name of the directory for this bundle- Returns:
- the updated agency list
-
-