Question: Objective: Create a simple PackageExplorer program that allows you to get information about classes in a directory. It takes one commandline argument for the directory.

 Objective: Create a simple PackageExplorer program that allows you to getinformation about classes in a directory. It takes one commandline argument for

Objective: Create a simple PackageExplorer program that allows you to get information about classes in a directory. It takes one commandline argument for the directory. If the argument is not given, it assumes current directory It should support the following functionality 1. List all classes 2. For any chosen class show the following a. Class Name b. SuperClass c. Interfaces that it implements d. Fields e. Methods f. Providers: (This will be a list of classes that this class depends on. You can get this from the data types of the fields. Only retain classes that are in the same directory, ignore the rest) Clients: (This will be a list of classes that depends on this class. You have to g. update this based on f) 3. Save the information for a class in an xml. Please think about what information you would like to save onto xml. Saving the entire Class metaobject is an option but undesirable and will result in reduced points 4. Save the information for all classes in an xml file Extra Credit: Load the xml for all classes from a previously saved file and allow exploring the classes as above You may assume that the classes are all in default package and in the classpath Here's a sample run of the program S> java PackageExplorer /home/user/vidya/cs151/test Welcome to PackageExplorer - Main Menu 1. List all classes 2. View a class 3. Save all classes 4. Load class info from xml (Extra Credit) Enter your choice (1-4) or q to quit: 1 List of classes 1. Demo 2. DotModel 3. DotPanel 4. Student

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!