Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.cubi.lawlet.item.folder;
- import java.util.ArrayList;
- import java.util.List;
- import android.util.SparseArray;
- public class FolderTree {
- public static ExpandableListFolder ROOT;
- /**
- * Will be used to map IDs to their corresponding folders.
- * Whenever a new folder is created, it will put its ID here.
- */
- public static final SparseArray<Folder> FOLDER_MAP = new SparseArray<Folder>();
- static {
- ROOT = new ExpandableListFolder(1, Folder.NO_PARENT, "Cases");
- // * Pleadings
- FolderGroup pleadingsGroup = new FolderGroup("Pleadings");
- // ** Commencing an Action
- NoGroupFolder commencingAnAction = new ListFolder(2, ROOT.getId(), "Commencing an Action");
- DocumentFolder noticeOfCivilClaim = new DocumentFolder(3, commencingAnAction.getId(), "Notice of Civil Claim");
- commencingAnAction.addFolder(noticeOfCivilClaim);
- DocumentFolder petition = new DocumentFolder(4, commencingAnAction.getId(), "Petition");
- commencingAnAction.addFolder(petition);
- DocumentFolder noticeOfFamilyClaim = new DocumentFolder(5, commencingAnAction.getId(), "Notice of Family Claim");
- commencingAnAction.addFolder(noticeOfFamilyClaim);
- DocumentFolder ammendmentsToPleadings = new DocumentFolder(6, commencingAnAction.getId(), "Ammendments to Pleadings");
- commencingAnAction.addFolder(ammendmentsToPleadings);
- pleadingsGroup.addFolder(commencingAnAction);
- // **
- // ** Responding an Action
- NoGroupFolder respondingAnAction = new ListFolder(7, ROOT.getId(), "Responding an Action");
- DocumentFolder responseToCivilClaim = new DocumentFolder(8, respondingAnAction.getId(), "Response to Civlil Claim");
- respondingAnAction.addFolder(responseToCivilClaim);
- DocumentFolder responseToFamilyClaim = new DocumentFolder(9, respondingAnAction.getId(), "Response to Family Claim");
- respondingAnAction.addFolder(responseToFamilyClaim);
- DocumentFolder affidavitInResponseToPetition = new DocumentFolder(10, respondingAnAction.getId(), "Affidavit in Response to a Petition");
- respondingAnAction.addFolder(affidavitInResponseToPetition);
- DocumentFolder amendMentsToResponse = new DocumentFolder(11, respondingAnAction.getId(), "Amendments to Response");
- respondingAnAction.addFolder(amendMentsToResponse);
- pleadingsGroup.addFolder(respondingAnAction);
- // **
- // ** Counter Claim and other Proceedings
- NoGroupFolder counterClaimAndProceedings = new ListFolder(12, ROOT.getId(), "Counter Claim and other Proceedings");
- DocumentFolder counterClaim = new DocumentFolder(13, counterClaimAndProceedings.getId(), "Counter Claim");
- counterClaimAndProceedings.addFolder(counterClaim);
- DocumentFolder responseToCounterClaim = new DocumentFolder(14, counterClaimAndProceedings.getId(), "Response to Counter Claim");
- counterClaimAndProceedings.addFolder(responseToCounterClaim);
- DocumentFolder thirdPartyClaim = new DocumentFolder(15, counterClaimAndProceedings.getId(), "Third Party Claim");
- counterClaimAndProceedings.addFolder(thirdPartyClaim);
- DocumentFolder responseToThirdPartyClaim = new DocumentFolder(16, counterClaimAndProceedings.getId(), "Response to Third Party Claim");
- counterClaimAndProceedings.addFolder(responseToThirdPartyClaim);
- DocumentFolder amendmentsToThirdPartyClaims = new DocumentFolder(17, counterClaimAndProceedings.getId(), "Amendments to Third Party Claim");
- counterClaimAndProceedings.addFolder(amendmentsToThirdPartyClaims);
- pleadingsGroup.addFolder(counterClaimAndProceedings);
- // **
- // ** Reply to Response
- NoGroupFolder replyToResponse = new ListFolder(30, ROOT.getId(), "Reply to Response");
- DocumentFolder reply = new DocumentFolder(31, replyToResponse.getId(), "Reply");
- replyToResponse.addFolder(reply);
- pleadingsGroup.addFolder(replyToResponse);
- // **
- // ** Service Proof
- NoGroupFolder serviceProof = new ListFolder(40, ROOT.getId(), "Service Proof");
- DocumentFolder affidavitOfService = new DocumentFolder(41, serviceProof.getId(), "Affidavit of Service");
- serviceProof.addFolder(affidavitOfService);
- pleadingsGroup.addFolder(serviceProof);
- // **
- // ** Default Judgment
- NoGroupFolder defaultJudgmentIfApplicable = new ListFolder(50, ROOT.getId(), "Default Judgment (If applicable)");
- DocumentFolder requisitionForResponse = new DocumentFolder(51, defaultJudgmentIfApplicable.getId(), "Requisition for Response");
- defaultJudgmentIfApplicable.addFolder(requisitionForResponse);
- DocumentFolder applicationForDefaultJudgment = new DocumentFolder(52, defaultJudgmentIfApplicable.getId(), "Application for Default Judgment");
- defaultJudgmentIfApplicable.addFolder(applicationForDefaultJudgment);
- DocumentFolder defaultJudgment = new DocumentFolder(53, defaultJudgmentIfApplicable.getId(), "Default Judgment");
- defaultJudgmentIfApplicable.addFolder(defaultJudgment);
- pleadingsGroup.addFolder(defaultJudgmentIfApplicable);
- // **
- ROOT.addFolderGroup(pleadingsGroup);
- // *
- // * Pre-trial Documents and Procedures
- FolderGroup preTrialDocumentsAndProceduresGroup = new FolderGroup("Pre-trial Documents and Procedures");
- DocumentFolder casePlanningConferenceAndOrders = new DocumentFolder(100, ROOT.getId(), "Case Planning Conference and Orders");
- preTrialDocumentsAndProceduresGroup.addFolder(casePlanningConferenceAndOrders);
- // ** List of Documents
- TabFolder listOfDocuments = new TabFolder(101, ROOT.getId(), "List of Documents");
- DocumentFolder clientDocuments = new DocumentFolder(102, listOfDocuments.getId(), "Client Documents");
- listOfDocuments.addFolder(clientDocuments);
- DocumentFolder opposingPartyDocuments = new DocumentFolder(103, listOfDocuments.getId(), "Opposing Party Documents");
- listOfDocuments.addFolder(opposingPartyDocuments);
- preTrialDocumentsAndProceduresGroup.addFolder(listOfDocuments);
- // **
- // ** Examination for Discovery Transcripts
- TabFolder examinationForDiscoveryTranscripts = new TabFolder(110, ROOT.getId(), "Examination for Discovery Transcripts");
- DocumentFolder clientTranscripts = new DocumentFolder(111, examinationForDiscoveryTranscripts.getId(), "Client");
- examinationForDiscoveryTranscripts.addFolder(clientTranscripts);
- DocumentFolder opposingPartyTranscripts = new DocumentFolder(112, examinationForDiscoveryTranscripts.getId(), "Opposing Party");
- examinationForDiscoveryTranscripts.addFolder(opposingPartyTranscripts);
- preTrialDocumentsAndProceduresGroup.addFolder(examinationForDiscoveryTranscripts);
- // **
- // ** Discovery by Interrogators
- ListFolder discoveryByInterrogators = new ListFolder(120, ROOT.getId(), "Discovery by Interrogators");
- DocumentFolder clientIssued = new DocumentFolder(121, discoveryByInterrogators.getId(), "Client Issued");
- discoveryByInterrogators.addFolder(clientIssued);
- DocumentFolder clientResponse = new DocumentFolder(122, discoveryByInterrogators.getId(), "Client Response");
- discoveryByInterrogators.addFolder(clientResponse);
- DocumentFolder opposingPartyIssued = new DocumentFolder(123, discoveryByInterrogators.getId(), "Opposing Party Issued");
- discoveryByInterrogators.addFolder(opposingPartyIssued);
- DocumentFolder opposingPartyResponse = new DocumentFolder(124, discoveryByInterrogators.getId(), "Opposing Party Response");
- discoveryByInterrogators.addFolder(opposingPartyResponse);
- preTrialDocumentsAndProceduresGroup.addFolder(discoveryByInterrogators);
- // **
- // ** Pre-trial examination of Witness
- ListFolder examinationForDiscovery = new ListFolder(130, ROOT.getId(), "Pre-trial examination of Witness");
- DocumentFolder clientExaminationTranscript = new DocumentFolder(131, examinationForDiscovery.getId(), "Client Examination Transcript");
- examinationForDiscovery.addFolder(clientExaminationTranscript);
- DocumentFolder opposingPartyExaminationTranscript = new DocumentFolder(132, examinationForDiscovery.getId(), "Opposing Party Examination Transcript");
- examinationForDiscovery.addFolder(opposingPartyExaminationTranscript);
- preTrialDocumentsAndProceduresGroup.addFolder(examinationForDiscovery);
- // **
- // ** Admissions
- ListFolder admissions = new ListFolder(140, ROOT.getId(), "Admissions");
- DocumentFolder noticeToAdmitClient = new DocumentFolder(141, admissions.getId(), "Notice to Admit Client");
- admissions.addFolder(noticeToAdmitClient);
- DocumentFolder responseToNotice = new DocumentFolder(142, admissions.getId(), "Response to Notice");
- admissions.addFolder(responseToNotice);
- DocumentFolder noticeToAdmitOpposingParty = new DocumentFolder(143, admissions.getId(), "Notice to Admit Opposing Party");
- admissions.addFolder(noticeToAdmitOpposingParty);
- DocumentFolder responseToNoticeAdmission = new DocumentFolder(144, admissions.getId(), "Response to Notice");
- admissions.addFolder(responseToNoticeAdmission);
- preTrialDocumentsAndProceduresGroup.addFolder(admissions);
- // **
- // ** Motions/Applications
- TabListFolder motionsOrApplications = new TabListFolder(150, ROOT.getId(), "Motions/Applications");
- List<Folder> clientMotionsOrApplicationsList = new ArrayList<Folder>();
- DocumentFolder clientNoticeOfApplication = new DocumentFolder(151, motionsOrApplications.getId(), "Notice of Applications");
- clientMotionsOrApplicationsList.add(clientNoticeOfApplication);
- DocumentFolder clientSupportingAffidavits = new DocumentFolder(152, motionsOrApplications.getId(), "Supporting Affidavits");
- clientMotionsOrApplicationsList.add(clientSupportingAffidavits);
- DocumentFolder clientApplicationResponse = new DocumentFolder(153, motionsOrApplications.getId(), "Application Response");
- clientMotionsOrApplicationsList.add(clientApplicationResponse);
- DocumentFolder cleintSupportingAffidavitsOfOpposingParty = new DocumentFolder(154, motionsOrApplications.getId(), "Supporting Affidavits of Opposing Party");
- clientMotionsOrApplicationsList.add(cleintSupportingAffidavitsOfOpposingParty);
- DocumentFolder clientApplicationRecordAndRequisition = new DocumentFolder(155, motionsOrApplications.getId(), "Application Record and Requisition");
- clientMotionsOrApplicationsList.add(clientApplicationRecordAndRequisition);
- DocumentFolder clientWrittenArgument = new DocumentFolder(156, motionsOrApplications.getId(), "Written Argument");
- clientMotionsOrApplicationsList.add(clientWrittenArgument);
- DocumentFolder clientOrders = new DocumentFolder(157, motionsOrApplications.getId(), "Orders");
- clientMotionsOrApplicationsList.add(clientOrders);
- FolderGroup clientMotionsGroup = new FolderGroup("Client Motions", clientMotionsOrApplicationsList);
- List<Folder> opposingMotionsOrApplicationsList = new ArrayList<Folder>();
- DocumentFolder opposingNoticeOfApplication = new DocumentFolder(161, motionsOrApplications.getId(), "Notice of Applications");
- opposingMotionsOrApplicationsList.add(opposingNoticeOfApplication);
- DocumentFolder opposingSupportingAffidavits = new DocumentFolder(162, motionsOrApplications.getId(), "Supporting Affidavits");
- opposingMotionsOrApplicationsList.add(opposingSupportingAffidavits);
- DocumentFolder opposingApplicationResponse = new DocumentFolder(163, motionsOrApplications.getId(), "Application Response");
- opposingMotionsOrApplicationsList.add(opposingApplicationResponse);
- DocumentFolder opposingSupportingAffidavitsOfOpposingParty = new DocumentFolder(164, motionsOrApplications.getId(), "Supporting Affidavits of Opposing Party");
- opposingMotionsOrApplicationsList.add(opposingSupportingAffidavitsOfOpposingParty);
- DocumentFolder opposingApplicationRecordAndRequisition = new DocumentFolder(165, motionsOrApplications.getId(), "Application Record and Requisition");
- opposingMotionsOrApplicationsList.add(opposingApplicationRecordAndRequisition);
- DocumentFolder opposingWrittenArgument = new DocumentFolder(166, motionsOrApplications.getId(), "Written Argument");
- opposingMotionsOrApplicationsList.add(opposingWrittenArgument);
- DocumentFolder opposingOrders = new DocumentFolder(167, motionsOrApplications.getId(), "Orders");
- opposingMotionsOrApplicationsList.add(opposingOrders);
- FolderGroup opposingPartyMotionsGroup = new FolderGroup("Opposing Party Motions", opposingMotionsOrApplicationsList);
- motionsOrApplications.addFolderGroup(clientMotionsGroup);
- motionsOrApplications.addFolderGroup(opposingPartyMotionsGroup);
- preTrialDocumentsAndProceduresGroup.addFolder(motionsOrApplications);
- // **
- // ** Offers to Settle
- TabFolder offersToSettle = new TabFolder(170, ROOT.getId(), "Offers to Settle");
- DocumentFolder clientOffers = new DocumentFolder(171, offersToSettle.getId(), "Client Offers");
- offersToSettle.addFolder(clientOffers);
- DocumentFolder opposingPartyOffers = new DocumentFolder(172, offersToSettle.getId(), "Opposing Party Offers");
- offersToSettle.addFolder(opposingPartyOffers);
- preTrialDocumentsAndProceduresGroup.addFolder(offersToSettle);
- // **
- DocumentFolder settlementConferences = new DocumentFolder(180, ROOT.getId(), "Settlement Conferences");
- preTrialDocumentsAndProceduresGroup.addFolder(settlementConferences);
- // ** Summary Judgment Applications
- ListFolder summaryJudgmentApplications = new ListFolder(190, ROOT.getId(), "Summary Judgment Applications");
- DocumentFolder noticeOfApplicationSummaryJudgment = new DocumentFolder(191, summaryJudgmentApplications.getId(), "Notice of Application");
- summaryJudgmentApplications.addFolder(noticeOfApplicationSummaryJudgment);
- DocumentFolder affidavitsInSupportSummaryJudgment = new DocumentFolder(192, summaryJudgmentApplications.getId(), "Affidavits in Support");
- summaryJudgmentApplications.addFolder(affidavitsInSupportSummaryJudgment);
- DocumentFolder responseToApplicationSummaryJudgment = new DocumentFolder(193, summaryJudgmentApplications.getId(), "Response to Application");
- summaryJudgmentApplications.addFolder(responseToApplicationSummaryJudgment);
- DocumentFolder applicationRecordSummaryJudgment = new DocumentFolder(194, summaryJudgmentApplications.getId(), "Application Record");
- summaryJudgmentApplications.addFolder(applicationRecordSummaryJudgment);
- DocumentFolder ordersSummaryJudgment = new DocumentFolder(195, summaryJudgmentApplications.getId(), "Orders");
- summaryJudgmentApplications.addFolder(ordersSummaryJudgment);
- preTrialDocumentsAndProceduresGroup.addFolder(summaryJudgmentApplications);
- // **
- // ** Summary Trial Applications
- ListFolder summaryTrialApplications = new ListFolder(200, ROOT.getId(), "Summary Trial Applications");
- DocumentFolder noticeOfApplicationSummaryTrial = new DocumentFolder(201, summaryTrialApplications.getId(), "Notice of Application");
- summaryTrialApplications.addFolder(noticeOfApplicationSummaryTrial);
- DocumentFolder affidavitsInSupportSummaryTrial = new DocumentFolder(202, summaryTrialApplications.getId(), "Affidavits in Support");
- summaryTrialApplications.addFolder(affidavitsInSupportSummaryTrial);
- DocumentFolder responseToApplicationSummaryTrial = new DocumentFolder(203, summaryTrialApplications.getId(), "Response to Application");
- summaryTrialApplications.addFolder(responseToApplicationSummaryTrial);
- DocumentFolder applicationRecordSummaryTrial = new DocumentFolder(204, summaryTrialApplications.getId(), "Application Record");
- summaryTrialApplications.addFolder(applicationRecordSummaryTrial);
- DocumentFolder ordersSummaryJudgmentSummaryTrial = new DocumentFolder(205, summaryTrialApplications.getId(), "Orders");
- summaryTrialApplications.addFolder(ordersSummaryJudgmentSummaryTrial);
- preTrialDocumentsAndProceduresGroup.addFolder(summaryTrialApplications);
- // **
- // ** Expert reports
- ListFolder expertReports = new ListFolder(210, ROOT.getId(), "Expert Reports");
- DocumentFolder clientExpertReports = new DocumentFolder(211, expertReports.getId(), "Client Expert Reports");
- expertReports.addFolder(clientExpertReports);
- DocumentFolder opposingPartyExpertReports = new DocumentFolder(212, expertReports.getId(), "Opposing Party Expert Reports");
- expertReports.addFolder(opposingPartyExpertReports);
- DocumentFolder clientReplyToReport = new DocumentFolder(213, expertReports.getId(), "Client Reply to Report");
- expertReports.addFolder(clientReplyToReport);
- DocumentFolder opposingPartyReplyToReport = new DocumentFolder(214, expertReports.getId(), "Opposing Party Reply to Report");
- expertReports.addFolder(opposingPartyReplyToReport);
- preTrialDocumentsAndProceduresGroup.addFolder(expertReports);
- // **
- DocumentFolder trialManagementConference = new DocumentFolder(220, ROOT.getId(), "Trial Management Conference");
- preTrialDocumentsAndProceduresGroup.addFolder(trialManagementConference);
- DocumentFolder otherOrders = new DocumentFolder(221, ROOT.getId(), "Other Orders");
- preTrialDocumentsAndProceduresGroup.addFolder(otherOrders);
- ROOT.addFolderGroup(preTrialDocumentsAndProceduresGroup);
- // *
- // * Trial
- FolderGroup trialGroup = new FolderGroup("Trial");
- DocumentFolder trialRecord = new DocumentFolder(300, ROOT.getId(), "Trial Record");
- trialGroup.addFolder(trialRecord);
- DocumentFolder trialCertificate = new DocumentFolder(301, ROOT.getId(), "Trial Certificate");
- trialGroup.addFolder(trialCertificate);
- DocumentFolder caseLaw = new DocumentFolder(302, ROOT.getId(), "Case Law");
- trialGroup.addFolder(caseLaw);
- DocumentFolder writtenArgumentTrial = new DocumentFolder(303, ROOT.getId(), "Written Argument");
- trialGroup.addFolder(writtenArgumentTrial);
- // ** Witness Statements
- ListFolder witnessStatements = new ListFolder(304, ROOT.getId(), "Witness Statements");
- DocumentFolder clientDirect = new DocumentFolder(305, witnessStatements.getId(), "Client Direct");
- witnessStatements.addFolder(clientDirect);
- DocumentFolder crossExaminationOfOpposingPartyAndWitnesses = new DocumentFolder(306, witnessStatements.getId(), "Cross Examination of Opposing Party and Witnesses");
- witnessStatements.addFolder(crossExaminationOfOpposingPartyAndWitnesses);
- trialGroup.addFolder(witnessStatements);
- // **
- // ** Costs
- ListFolder costs = new ListFolder(307, ROOT.getId(), "Costs");
- DocumentFolder ordersTrial = new DocumentFolder(321, costs.getId(), "Orders");
- costs.addFolder(ordersTrial);
- trialGroup.addFolder(costs);
- // **
- ROOT.addFolderGroup(trialGroup);
- // *
- // * Office Administration Documents
- FolderGroup officeAdministrationDocuments = new FolderGroup("Office Administration Documents");
- // ** Clients
- TabFolder clients = new TabFolder(400, ROOT.getId(), "Clients");
- DocumentFolder emailsClient = new DocumentFolder(401, clients.getId(), "Emails");
- clients.addFolder(emailsClient);
- DocumentFolder letterClient = new DocumentFolder(402, clients.getId(), "Letters");
- clients.addFolder(letterClient);
- DocumentFolder memoClient = new DocumentFolder(403, clients.getId(), "Memos");
- clients.addFolder(memoClient);
- officeAdministrationDocuments.addFolder(clients);
- // **
- // ** Opposing Party
- TabFolder opposingParty = new TabFolder(400, ROOT.getId(), "Opposing Party");
- DocumentFolder emailsOpposingParty = new DocumentFolder(411, opposingParty.getId(), "Emails");
- opposingParty.addFolder(emailsOpposingParty);
- DocumentFolder letterOpposingParty = new DocumentFolder(412, opposingParty.getId(), "Letters");
- opposingParty.addFolder(letterOpposingParty);
- DocumentFolder memoOpposingParty = new DocumentFolder(413, opposingParty.getId(), "Memos");
- opposingParty.addFolder(memoOpposingParty);
- officeAdministrationDocuments.addFolder(opposingParty);
- // **
- ROOT.addFolderGroup(officeAdministrationDocuments);
- // *
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement