Search in sources :

Example 1 with ObsUnitSetT

use of alma.xmljbind.test.obsproject.ObsUnitSetT in project ACS by ACS-Community.

the class TestEntityFactory method getObsProject.

ObsProject getObsProject() {
    ObsProject proj = null;
    proj = new ObsProject();
    ObsProjectEntityT entity = new ObsProjectEntityT();
    proj.setObsProjectEntity(entity);
    entity.setEntityId("uid://X1230000000000000/X00000001");
    entity.setSchemaVersion("1.0");
    ObsProposalRefT ref = new ObsProposalRefT();
    proj.setObsProposalRef(ref);
    ref.setEntityId("uid://X1230000000000000/X00000002");
    ObsProgramT prog = new ObsProgramT();
    proj.setObsProgram(prog);
    ObsUnitSetT obsPlan = new ObsUnitSetT();
    prog.setObsPlan(obsPlan);
    ObsUnitSetTChoice choice = new ObsUnitSetTChoice();
    obsPlan.setObsUnitSetTChoice(choice);
    SchedBlockRefT schedBlockRef1 = new SchedBlockRefT();
    choice.addSchedBlockRef(schedBlockRef1);
    schedBlockRef1.setEntityId("uid://X1230000000000000/X00000003");
    return proj;
}
Also used : ObsUnitSetT(alma.xmljbind.test.obsproject.ObsUnitSetT) ObsUnitSetTChoice(alma.xmljbind.test.obsproject.ObsUnitSetTChoice) ObsProject(alma.xmljbind.test.obsproject.ObsProject) ObsProposalRefT(alma.xmljbind.test.obsproposal.ObsProposalRefT) ObsProjectEntityT(alma.xmljbind.test.obsproject.ObsProjectEntityT) SchedBlockRefT(alma.xmljbind.test.schedblock.SchedBlockRefT) ObsProgramT(alma.xmljbind.test.obsproject.ObsProgramT)

Aggregations

ObsProgramT (alma.xmljbind.test.obsproject.ObsProgramT)1 ObsProject (alma.xmljbind.test.obsproject.ObsProject)1 ObsProjectEntityT (alma.xmljbind.test.obsproject.ObsProjectEntityT)1 ObsUnitSetT (alma.xmljbind.test.obsproject.ObsUnitSetT)1 ObsUnitSetTChoice (alma.xmljbind.test.obsproject.ObsUnitSetTChoice)1 ObsProposalRefT (alma.xmljbind.test.obsproposal.ObsProposalRefT)1 SchedBlockRefT (alma.xmljbind.test.schedblock.SchedBlockRefT)1