@Test public void testGetAssociationEndTypeName() throws Exception { Mockito.when(attribute.getName()).thenReturn("academicWeekReference"); Assert.assertEquals("AcademicWeek", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("accountReference"); Assert.assertEquals("Account", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("assignmentSchoolReference"); Assert.assertEquals("School", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("assessmentReference"); Assert.assertEquals("Assessment", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("assessmentFamilyReference"); Assert.assertEquals("AssessmentFamily", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("assessmentItemReference"); Assert.assertEquals("AssessmentItem", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("calendarDateReference"); Assert.assertEquals("CalendarDate", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("classPeriodReference"); Assert.assertEquals("ClassPeriod", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("cohortReference"); Assert.assertEquals("Cohort", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("courseReference"); Assert.assertEquals("Course", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("courseOfferingReference"); Assert.assertEquals("CourseOffering", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("disciplineIncidentReference"); Assert.assertEquals("DisciplineIncident", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("diplomaReference"); Assert.assertEquals("Diploma", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("educationContentReference"); Assert.assertEquals("EducationContent", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("educationOrganizationNetworkReference"); Assert.assertEquals("EducationOrganizationNetwork", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("educationOrganizationPeerReference"); Assert.assertEquals("EducationOrganization", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("educationOrganizationReference"); Assert.assertEquals("EducationOrganization", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("educationOrgReference"); Assert.assertEquals("EducationOrganization", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("educationServiceCenterReference"); Assert.assertEquals("EducationServiceCenter", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("feederSchoolReference"); Assert.assertEquals("School", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("gradeReference"); Assert.assertEquals("Grade", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("gradebookEntryReference"); Assert.assertEquals("GradebookEntry", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("gradingPeriodReference"); Assert.assertEquals("GradingPeriod", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("graduationPlanReference"); Assert.assertEquals("GraduationPlan", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("interventionReference"); Assert.assertEquals("Intervention", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("interventionPrescriptionReference"); Assert.assertEquals("InterventionPrescription", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("learningStandardReference"); Assert.assertEquals("LearningStandard", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("learningStandardItemReference"); Assert.assertEquals("LearningStandard", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("learningObjectiveReference"); Assert.assertEquals("LearningObjective", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("localEducationAgencyReference"); Assert.assertEquals("LocalEducationAgency", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("locationReference"); Assert.assertEquals("Location", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("mandatingEducationOrganizationReference"); Assert.assertEquals("EducationOrganization", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("meetingTimeReference"); Assert.assertEquals("MeetingTime", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("objectiveAssessmentReference"); Assert.assertEquals("ObjectiveAssessment", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("prerequisiteLearningStandardReference"); Assert.assertEquals("LearningStandard", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("programReference"); Assert.assertEquals("Program", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("parentReference"); Assert.assertEquals("Parent", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("receivingSchoolReference"); Assert.assertEquals("School", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("responsibilitySchoolReference"); Assert.assertEquals("School", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("reportCardReference"); Assert.assertEquals("ReportCard", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("schoolReference"); Assert.assertEquals("School", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("sectionReference"); Assert.assertEquals("Section", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("sessionReference"); Assert.assertEquals("Session", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("staffReference"); Assert.assertEquals("Staff", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("stateEducationAgencyReference"); Assert.assertEquals("StateEducationAgency", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentReference"); Assert.assertEquals("Student", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentAcademicRecordReference"); Assert.assertEquals("StudentAcademicRecord", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentAssessmentReference"); Assert.assertEquals("StudentAssessment", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentCompetencyReference"); Assert.assertEquals("StudentCompetency", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentCompetencyObjectiveReference"); Assert.assertEquals("StudentCompetencyObjective", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentObjectiveAssessmentReference"); Assert.assertEquals("StudentObjectiveAssessment", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("studentSectionAssociationReference"); Assert.assertEquals("StudentSectionAssociation", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); Mockito.when(attribute.getName()).thenReturn("teacherReference"); Assert.assertEquals("Teacher", pluginForEdFi.getAssociationEndTypeName(classType, attribute, host)); }
@Override public String getAssociationEndTypeName(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host) { if (attribute == null) { throw new IllegalArgumentException("attribute"); } final String attributeName = attribute.getName(); if (attributeName == null) { throw new IllegalStateException("attributeName"); } if ("academicWeekReference".equalsIgnoreCase(attributeName)) { return "AcademicWeek"; } else if ("accountReference".equalsIgnoreCase(attributeName)) { return "Account"; } else if ("assignmentSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("assessmentReference".equalsIgnoreCase(attributeName)) { return "Assessment"; } else if ("assessmentFamilyReference".equalsIgnoreCase(attributeName)) { return "AssessmentFamily"; } else if ("assessmentItemReference".equalsIgnoreCase(attributeName)) { return "AssessmentItem"; } else if ("calendarDateReference".equalsIgnoreCase(attributeName)) { return "CalendarDate"; } else if ("classPeriodReference".equalsIgnoreCase(attributeName)) { return "ClassPeriod"; } else if ("cohortReference".equalsIgnoreCase(attributeName)) { return "Cohort"; } else if ("courseReference".equalsIgnoreCase(attributeName)) { return "Course"; } else if ("courseOfferingReference".equalsIgnoreCase(attributeName)) { return "CourseOffering"; } else if ("disciplineIncidentReference".equalsIgnoreCase(attributeName)) { return "DisciplineIncident"; } else if ("diplomaReference".equalsIgnoreCase(attributeName)) { return "Diploma"; } else if ("educationContentReference".equalsIgnoreCase(attributeName)) { return "EducationContent"; } else if ("educationOrganizationNetworkReference".equalsIgnoreCase(attributeName)) { return "EducationOrganizationNetwork"; } else if ("educationOrganizationPeerReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrgReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationServiceCenterReference".equalsIgnoreCase(attributeName)) { return "EducationServiceCenter"; } else if ("feederSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("gradeReference".equalsIgnoreCase(attributeName)) { return "Grade"; } else if ("gradebookEntryReference".equalsIgnoreCase(attributeName)) { return "GradebookEntry"; } else if ("gradingPeriodReference".equalsIgnoreCase(attributeName)) { return "GradingPeriod"; } else if ("graduationPlanReference".equalsIgnoreCase(attributeName)) { return "GraduationPlan"; } else if ("interventionReference".equalsIgnoreCase(attributeName)) { return "Intervention"; } else if ("interventionPrescriptionReference".equalsIgnoreCase(attributeName)) { return "InterventionPrescription"; } else if ("learningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningStandardItemReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningObjectiveReference".equalsIgnoreCase(attributeName)) { return "LearningObjective"; } else if ("localEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "LocalEducationAgency"; } else if ("locationReference".equalsIgnoreCase(attributeName)) { return "Location"; } else if ("mandatingEducationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("meetingTimeReference".equalsIgnoreCase(attributeName)) { return "MeetingTime"; } else if ("objectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "ObjectiveAssessment"; } else if ("prerequisiteLearningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("programReference".equalsIgnoreCase(attributeName)) { return "Program"; } else if ("parentReference".equalsIgnoreCase(attributeName)) { return "Parent"; } else if ("receivingSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("responsibilitySchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("reportCardReference".equalsIgnoreCase(attributeName)) { return "ReportCard"; } else if ("schoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("sectionReference".equalsIgnoreCase(attributeName)) { return "Section"; } else if ("sessionReference".equalsIgnoreCase(attributeName)) { return "Session"; } else if ("staffReference".equalsIgnoreCase(attributeName)) { return "Staff"; } else if ("stateEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "StateEducationAgency"; } else if ("studentReference".equalsIgnoreCase(attributeName)) { return "Student"; } else if ("studentAcademicRecordReference".equalsIgnoreCase(attributeName)) { return "StudentAcademicRecord"; } else if ("studentAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentAssessment"; } else if ("studentCompetencyReference".equalsIgnoreCase(attributeName)) { return "StudentCompetency"; } else if ("studentCompetencyObjectiveReference".equalsIgnoreCase(attributeName)) { return "StudentCompetencyObjective"; } else if ("studentObjectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentObjectiveAssessment"; } else if ("studentSectionAssociationReference".equalsIgnoreCase(attributeName)) { return "StudentSectionAssociation"; } else if ("teacherReference".equalsIgnoreCase(attributeName)) { return "Teacher"; } else { throw new UnsupportedOperationException(classType.getName() + "." + attribute.getName()); } }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String getAssociationEndTypeName(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host) { if (attribute == null) { throw new IllegalArgumentException("attribute"); } final String attributeName = attribute.getName(); if (attributeName == null) { throw new IllegalStateException("attributeName"); } if ("academicWeekReference".equalsIgnoreCase(attributeName)) { return "AcademicWeek"; } else if ("accountReference".equalsIgnoreCase(attributeName)) { return "Account"; } else if ("assignmentSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("assessmentReference".equalsIgnoreCase(attributeName)) { return "Assessment"; } else if ("assessmentFamilyReference".equalsIgnoreCase(attributeName)) { return "AssessmentFamily"; } else if ("assessmentItemReference".equalsIgnoreCase(attributeName)) { return "AssessmentItem"; } else if ("calendarDateReference".equalsIgnoreCase(attributeName)) { return "CalendarDate"; } else if ("classPeriodReference".equalsIgnoreCase(attributeName)) { return "ClassPeriod"; } else if ("cohortReference".equalsIgnoreCase(attributeName)) { return "Cohort"; } else if ("courseReference".equalsIgnoreCase(attributeName)) { return "Course"; } else if ("courseOfferingReference".equalsIgnoreCase(attributeName)) { return "CourseOffering"; } else if ("disciplineIncidentReference".equalsIgnoreCase(attributeName)) { return "DisciplineIncident"; } else if ("diplomaReference".equalsIgnoreCase(attributeName)) { return "Diploma"; } else if ("educationContentReference".equalsIgnoreCase(attributeName)) { return "EducationContent"; } else if ("educationOrganizationNetworkReference".equalsIgnoreCase(attributeName)) { return "EducationOrganizationNetwork"; } else if ("educationOrganizationPeerReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrgReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationServiceCenterReference".equalsIgnoreCase(attributeName)) { return "EducationServiceCenter"; } else if ("feederSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("gradeReference".equalsIgnoreCase(attributeName)) { return "Grade"; } else if ("gradebookEntryReference".equalsIgnoreCase(attributeName)) { return "GradebookEntry"; } else if ("gradingPeriodReference".equalsIgnoreCase(attributeName)) { return "GradingPeriod"; } else if ("graduationPlanReference".equalsIgnoreCase(attributeName)) { return "GraduationPlan"; } else if ("interventionReference".equalsIgnoreCase(attributeName)) { return "Intervention"; } else if ("interventionPrescriptionReference".equalsIgnoreCase(attributeName)) { return "InterventionPrescription"; } else if ("learningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningStandardItemReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningObjectiveReference".equalsIgnoreCase(attributeName)) { return "LearningObjective"; } else if ("localEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "LocalEducationAgency"; } else if ("locationReference".equalsIgnoreCase(attributeName)) { return "Location"; } else if ("mandatingEducationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("meetingTimeReference".equalsIgnoreCase(attributeName)) { return "MeetingTime"; } else if ("objectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "ObjectiveAssessment"; } else if ("prerequisiteLearningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("programReference".equalsIgnoreCase(attributeName)) { return "Program"; } else if ("parentReference".equalsIgnoreCase(attributeName)) { return "Parent"; } else if ("receivingSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("responsibilitySchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("reportCardReference".equalsIgnoreCase(attributeName)) { return "ReportCard"; } else if ("schoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("sectionReference".equalsIgnoreCase(attributeName)) { return "Section"; } else if ("sessionReference".equalsIgnoreCase(attributeName)) { return "Session"; } else if ("staffReference".equalsIgnoreCase(attributeName)) { return "Staff"; } else if ("stateEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "StateEducationAgency"; } else if ("studentReference".equalsIgnoreCase(attributeName)) { return "Student"; } else if ("studentAcademicRecordReference".equalsIgnoreCase(attributeName)) { return "StudentAcademicRecord"; } else if ("studentAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentAssessment"; } else if ("studentCompetencyReference".equalsIgnoreCase(attributeName)) { return "StudentCompetency"; } else if ("studentCompetencyObjectiveReference".equalsIgnoreCase(attributeName)) { return "StudentCompetencyObjective"; } else if ("studentObjectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentObjectiveAssessment"; } else if ("studentSectionAssociationReference".equalsIgnoreCase(attributeName)) { return "StudentSectionAssociation"; } else if ("teacherReference".equalsIgnoreCase(attributeName)) { return "Teacher"; } else { throw new UnsupportedOperationException(classType.getName() + "." + attribute.getName()); } } }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String getAssociationEndTypeName(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host) { if (attribute == null) { throw new IllegalArgumentException("attribute"); } final String attributeName = attribute.getName(); if (attributeName == null) { throw new IllegalStateException("attributeName"); } if ("academicWeekReference".equalsIgnoreCase(attributeName)) { return "AcademicWeek"; } else if ("accountReference".equalsIgnoreCase(attributeName)) { return "Account"; } else if ("assignmentSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("assessmentReference".equalsIgnoreCase(attributeName)) { return "Assessment"; } else if ("assessmentFamilyReference".equalsIgnoreCase(attributeName)) { return "AssessmentFamily"; } else if ("assessmentItemReference".equalsIgnoreCase(attributeName)) { return "AssessmentItem"; } else if ("calendarDateReference".equalsIgnoreCase(attributeName)) { return "CalendarDate"; } else if ("classPeriodReference".equalsIgnoreCase(attributeName)) { return "ClassPeriod"; } else if ("cohortReference".equalsIgnoreCase(attributeName)) { return "Cohort"; } else if ("courseReference".equalsIgnoreCase(attributeName)) { return "Course"; } else if ("courseOfferingReference".equalsIgnoreCase(attributeName)) { return "CourseOffering"; } else if ("disciplineIncidentReference".equalsIgnoreCase(attributeName)) { return "DisciplineIncident"; } else if ("diplomaReference".equalsIgnoreCase(attributeName)) { return "Diploma"; } else if ("educationContentReference".equalsIgnoreCase(attributeName)) { return "EducationContent"; } else if ("educationOrganizationNetworkReference".equalsIgnoreCase(attributeName)) { return "EducationOrganizationNetwork"; } else if ("educationOrganizationPeerReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrgReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationServiceCenterReference".equalsIgnoreCase(attributeName)) { return "EducationServiceCenter"; } else if ("feederSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("gradeReference".equalsIgnoreCase(attributeName)) { return "Grade"; } else if ("gradebookEntryReference".equalsIgnoreCase(attributeName)) { return "GradebookEntry"; } else if ("gradingPeriodReference".equalsIgnoreCase(attributeName)) { return "GradingPeriod"; } else if ("graduationPlanReference".equalsIgnoreCase(attributeName)) { return "GraduationPlan"; } else if ("interventionReference".equalsIgnoreCase(attributeName)) { return "Intervention"; } else if ("interventionPrescriptionReference".equalsIgnoreCase(attributeName)) { return "InterventionPrescription"; } else if ("learningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningStandardItemReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningObjectiveReference".equalsIgnoreCase(attributeName)) { return "LearningObjective"; } else if ("localEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "LocalEducationAgency"; } else if ("locationReference".equalsIgnoreCase(attributeName)) { return "Location"; } else if ("mandatingEducationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("meetingTimeReference".equalsIgnoreCase(attributeName)) { return "MeetingTime"; } else if ("objectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "ObjectiveAssessment"; } else if ("prerequisiteLearningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("programReference".equalsIgnoreCase(attributeName)) { return "Program"; } else if ("parentReference".equalsIgnoreCase(attributeName)) { return "Parent"; } else if ("receivingSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("responsibilitySchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("reportCardReference".equalsIgnoreCase(attributeName)) { return "ReportCard"; } else if ("schoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("sectionReference".equalsIgnoreCase(attributeName)) { return "Section"; } else if ("sessionReference".equalsIgnoreCase(attributeName)) { return "Session"; } else if ("staffReference".equalsIgnoreCase(attributeName)) { return "Staff"; } else if ("stateEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "StateEducationAgency"; } else if ("studentReference".equalsIgnoreCase(attributeName)) { return "Student"; } else if ("studentAcademicRecordReference".equalsIgnoreCase(attributeName)) { return "StudentAcademicRecord"; } else if ("studentAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentAssessment"; } else if ("studentCompetencyReference".equalsIgnoreCase(attributeName)) { return "StudentCompetency"; } else if ("studentCompetencyObjectiveReference".equalsIgnoreCase(attributeName)) { return "StudentCompetencyObjective"; } else if ("studentObjectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentObjectiveAssessment"; } else if ("studentSectionAssociationReference".equalsIgnoreCase(attributeName)) { return "StudentSectionAssociation"; } else if ("teacherReference".equalsIgnoreCase(attributeName)) { return "Teacher"; } else { throw new UnsupportedOperationException(classType.getName() + "." + attribute.getName()); } } Xsd2UmlPluginForEdFi(); }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String getAssociationEndTypeName(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host) { if (attribute == null) { throw new IllegalArgumentException("attribute"); } final String attributeName = attribute.getName(); if (attributeName == null) { throw new IllegalStateException("attributeName"); } if ("academicWeekReference".equalsIgnoreCase(attributeName)) { return "AcademicWeek"; } else if ("accountReference".equalsIgnoreCase(attributeName)) { return "Account"; } else if ("assignmentSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("assessmentReference".equalsIgnoreCase(attributeName)) { return "Assessment"; } else if ("assessmentFamilyReference".equalsIgnoreCase(attributeName)) { return "AssessmentFamily"; } else if ("assessmentItemReference".equalsIgnoreCase(attributeName)) { return "AssessmentItem"; } else if ("calendarDateReference".equalsIgnoreCase(attributeName)) { return "CalendarDate"; } else if ("classPeriodReference".equalsIgnoreCase(attributeName)) { return "ClassPeriod"; } else if ("cohortReference".equalsIgnoreCase(attributeName)) { return "Cohort"; } else if ("courseReference".equalsIgnoreCase(attributeName)) { return "Course"; } else if ("courseOfferingReference".equalsIgnoreCase(attributeName)) { return "CourseOffering"; } else if ("disciplineIncidentReference".equalsIgnoreCase(attributeName)) { return "DisciplineIncident"; } else if ("diplomaReference".equalsIgnoreCase(attributeName)) { return "Diploma"; } else if ("educationContentReference".equalsIgnoreCase(attributeName)) { return "EducationContent"; } else if ("educationOrganizationNetworkReference".equalsIgnoreCase(attributeName)) { return "EducationOrganizationNetwork"; } else if ("educationOrganizationPeerReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrgReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationServiceCenterReference".equalsIgnoreCase(attributeName)) { return "EducationServiceCenter"; } else if ("feederSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("gradeReference".equalsIgnoreCase(attributeName)) { return "Grade"; } else if ("gradebookEntryReference".equalsIgnoreCase(attributeName)) { return "GradebookEntry"; } else if ("gradingPeriodReference".equalsIgnoreCase(attributeName)) { return "GradingPeriod"; } else if ("graduationPlanReference".equalsIgnoreCase(attributeName)) { return "GraduationPlan"; } else if ("interventionReference".equalsIgnoreCase(attributeName)) { return "Intervention"; } else if ("interventionPrescriptionReference".equalsIgnoreCase(attributeName)) { return "InterventionPrescription"; } else if ("learningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningStandardItemReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningObjectiveReference".equalsIgnoreCase(attributeName)) { return "LearningObjective"; } else if ("localEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "LocalEducationAgency"; } else if ("locationReference".equalsIgnoreCase(attributeName)) { return "Location"; } else if ("mandatingEducationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("meetingTimeReference".equalsIgnoreCase(attributeName)) { return "MeetingTime"; } else if ("objectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "ObjectiveAssessment"; } else if ("prerequisiteLearningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("programReference".equalsIgnoreCase(attributeName)) { return "Program"; } else if ("parentReference".equalsIgnoreCase(attributeName)) { return "Parent"; } else if ("receivingSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("responsibilitySchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("reportCardReference".equalsIgnoreCase(attributeName)) { return "ReportCard"; } else if ("schoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("sectionReference".equalsIgnoreCase(attributeName)) { return "Section"; } else if ("sessionReference".equalsIgnoreCase(attributeName)) { return "Session"; } else if ("staffReference".equalsIgnoreCase(attributeName)) { return "Staff"; } else if ("stateEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "StateEducationAgency"; } else if ("studentReference".equalsIgnoreCase(attributeName)) { return "Student"; } else if ("studentAcademicRecordReference".equalsIgnoreCase(attributeName)) { return "StudentAcademicRecord"; } else if ("studentAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentAssessment"; } else if ("studentCompetencyReference".equalsIgnoreCase(attributeName)) { return "StudentCompetency"; } else if ("studentCompetencyObjectiveReference".equalsIgnoreCase(attributeName)) { return "StudentCompetencyObjective"; } else if ("studentObjectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentObjectiveAssessment"; } else if ("studentSectionAssociationReference".equalsIgnoreCase(attributeName)) { return "StudentSectionAssociation"; } else if ("teacherReference".equalsIgnoreCase(attributeName)) { return "Teacher"; } else { throw new UnsupportedOperationException(classType.getName() + "." + attribute.getName()); } } Xsd2UmlPluginForEdFi(); @Override List<TagDefinition> declareTagDefinitions(final Xsd2UmlPluginHost host); @Override String getAssociationEndTypeName(final ClassType classType, final Attribute attribute,
            final Xsd2UmlPluginHost host); @Override boolean isAssociationEnd(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host); @Override String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host); @Override String nameFromSchemaAttributeName(final QName name); @Override String nameFromSchemaElementName(final QName name); @Override List<TaggedValue> tagsFromAppInfo(final XmlSchemaAppInfo appInfo, final Xsd2UmlPluginHost host); }
Xsd2UmlPluginForEdFi extends Xsd2UmlPluginDefault implements Xsd2UmlHostedPlugin { @Override public String getAssociationEndTypeName(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host) { if (attribute == null) { throw new IllegalArgumentException("attribute"); } final String attributeName = attribute.getName(); if (attributeName == null) { throw new IllegalStateException("attributeName"); } if ("academicWeekReference".equalsIgnoreCase(attributeName)) { return "AcademicWeek"; } else if ("accountReference".equalsIgnoreCase(attributeName)) { return "Account"; } else if ("assignmentSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("assessmentReference".equalsIgnoreCase(attributeName)) { return "Assessment"; } else if ("assessmentFamilyReference".equalsIgnoreCase(attributeName)) { return "AssessmentFamily"; } else if ("assessmentItemReference".equalsIgnoreCase(attributeName)) { return "AssessmentItem"; } else if ("calendarDateReference".equalsIgnoreCase(attributeName)) { return "CalendarDate"; } else if ("classPeriodReference".equalsIgnoreCase(attributeName)) { return "ClassPeriod"; } else if ("cohortReference".equalsIgnoreCase(attributeName)) { return "Cohort"; } else if ("courseReference".equalsIgnoreCase(attributeName)) { return "Course"; } else if ("courseOfferingReference".equalsIgnoreCase(attributeName)) { return "CourseOffering"; } else if ("disciplineIncidentReference".equalsIgnoreCase(attributeName)) { return "DisciplineIncident"; } else if ("diplomaReference".equalsIgnoreCase(attributeName)) { return "Diploma"; } else if ("educationContentReference".equalsIgnoreCase(attributeName)) { return "EducationContent"; } else if ("educationOrganizationNetworkReference".equalsIgnoreCase(attributeName)) { return "EducationOrganizationNetwork"; } else if ("educationOrganizationPeerReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationOrgReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("educationServiceCenterReference".equalsIgnoreCase(attributeName)) { return "EducationServiceCenter"; } else if ("feederSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("gradeReference".equalsIgnoreCase(attributeName)) { return "Grade"; } else if ("gradebookEntryReference".equalsIgnoreCase(attributeName)) { return "GradebookEntry"; } else if ("gradingPeriodReference".equalsIgnoreCase(attributeName)) { return "GradingPeriod"; } else if ("graduationPlanReference".equalsIgnoreCase(attributeName)) { return "GraduationPlan"; } else if ("interventionReference".equalsIgnoreCase(attributeName)) { return "Intervention"; } else if ("interventionPrescriptionReference".equalsIgnoreCase(attributeName)) { return "InterventionPrescription"; } else if ("learningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningStandardItemReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("learningObjectiveReference".equalsIgnoreCase(attributeName)) { return "LearningObjective"; } else if ("localEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "LocalEducationAgency"; } else if ("locationReference".equalsIgnoreCase(attributeName)) { return "Location"; } else if ("mandatingEducationOrganizationReference".equalsIgnoreCase(attributeName)) { return "EducationOrganization"; } else if ("meetingTimeReference".equalsIgnoreCase(attributeName)) { return "MeetingTime"; } else if ("objectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "ObjectiveAssessment"; } else if ("prerequisiteLearningStandardReference".equalsIgnoreCase(attributeName)) { return "LearningStandard"; } else if ("programReference".equalsIgnoreCase(attributeName)) { return "Program"; } else if ("parentReference".equalsIgnoreCase(attributeName)) { return "Parent"; } else if ("receivingSchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("responsibilitySchoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("reportCardReference".equalsIgnoreCase(attributeName)) { return "ReportCard"; } else if ("schoolReference".equalsIgnoreCase(attributeName)) { return "School"; } else if ("sectionReference".equalsIgnoreCase(attributeName)) { return "Section"; } else if ("sessionReference".equalsIgnoreCase(attributeName)) { return "Session"; } else if ("staffReference".equalsIgnoreCase(attributeName)) { return "Staff"; } else if ("stateEducationAgencyReference".equalsIgnoreCase(attributeName)) { return "StateEducationAgency"; } else if ("studentReference".equalsIgnoreCase(attributeName)) { return "Student"; } else if ("studentAcademicRecordReference".equalsIgnoreCase(attributeName)) { return "StudentAcademicRecord"; } else if ("studentAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentAssessment"; } else if ("studentCompetencyReference".equalsIgnoreCase(attributeName)) { return "StudentCompetency"; } else if ("studentCompetencyObjectiveReference".equalsIgnoreCase(attributeName)) { return "StudentCompetencyObjective"; } else if ("studentObjectiveAssessmentReference".equalsIgnoreCase(attributeName)) { return "StudentObjectiveAssessment"; } else if ("studentSectionAssociationReference".equalsIgnoreCase(attributeName)) { return "StudentSectionAssociation"; } else if ("teacherReference".equalsIgnoreCase(attributeName)) { return "Teacher"; } else { throw new UnsupportedOperationException(classType.getName() + "." + attribute.getName()); } } Xsd2UmlPluginForEdFi(); @Override List<TagDefinition> declareTagDefinitions(final Xsd2UmlPluginHost host); @Override String getAssociationEndTypeName(final ClassType classType, final Attribute attribute,
            final Xsd2UmlPluginHost host); @Override boolean isAssociationEnd(final ClassType classType, final Attribute attribute, final Xsd2UmlPluginHost host); @Override String nameAssociation(final AssociationEnd lhs, final AssociationEnd rhs, final Xsd2UmlHostedPlugin host); @Override String nameFromSchemaAttributeName(final QName name); @Override String nameFromSchemaElementName(final QName name); @Override List<TaggedValue> tagsFromAppInfo(final XmlSchemaAppInfo appInfo, final Xsd2UmlPluginHost host);  }