SimpleFile - ALL STUDENTS COMPLETE THESE SECTIONS Main Class File FileSystemMain.java File SimpleFile.java Semester CS367 Spring 2015 Author Thomas

SimpleFile - ALL STUDENTS COMPLETE THESE SECTIONS Main...

This preview shows page 1 - 2 out of 3 pages.

/////////////////////////////////////////////////////////////////////////////// // ALL STUDENTS COMPLETE THESE SECTIONS // Main Class File: FileSystemMain.java // File: SimpleFile.java // Semester: CS367 Spring 2015 // // Author: Thomas Whitburn // CS Login: whitburn // Lecturer's Name: Jim Skrentny // //////////////////// PAIR PROGRAMMERS COMPLETE THIS SECTION /////////////////// // // Pair Partner: Haomin Li // Email: [email protected] // CS Login: haomin // Lecturer's Name: Jim Skrentny // //////////////////////////// 80 columns wide ////////////////////////////////// import java.util.ArrayList; public class SimpleFile { private String name; private Extension extension; private String content; private User owner; private ArrayList<Access> allowedUsers; private String path; private SimpleFolder parent; public SimpleFile(String name, Extension extension, String path, String content, SimpleFolder parent, User owner) { if ((name == null) || (extension == null) || (path == null) || (parent == null) || (owner == null)) { throw new IllegalArgumentException(); } this.name = name; this.extension = extension; this.path = path; this.content = content; this.parent = parent; this.owner = owner; this.allowedUsers = new ArrayList<Access>(); } //returns the path variable.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Spring '08
  • MarvinSolomon
  • Login, new IllegalArgumentException, Jim Skrentny, User owner

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture