use of alma.xmljbind.test.obsproposal.ObsProposalEntityT in project ACS by ACS-Community.
the class XmlComponentImpl method createObsProposal.
/**
* from IDL: <code>ObsProposal createObsProposal();</code>
*
* @see alma.demo.XmlComponentJ#createObsProposal()
*/
public ObsProposal createObsProposal() {
ObsProposal obsProp = new ObsProposal();
try {
ObsProposalEntityT entity = new ObsProposalEntityT();
m_containerServices.assignUniqueEntityId(entity);
obsProp.setObsProposalEntity(entity);
obsProp.setScientificJustification("peak performance enduring a 24-7-365 schedule.");
} catch (AcsJContainerServicesEx e) {
m_logger.log(Level.SEVERE, "failed to create ObsProposal. ", e);
}
return obsProp;
}
use of alma.xmljbind.test.obsproposal.ObsProposalEntityT in project ACS by ACS-Community.
the class TestEntityFactory method getObsProposal.
ObsProposal getObsProposal() {
ObsProposal prop = null;
prop = new ObsProposal();
ObsProposalEntityT entity = new ObsProposalEntityT();
prop.setObsProposalEntity(entity);
entity.setEntityId("uid://X1230000000000000/X00000002");
ObsProjectRefT ref = new ObsProjectRefT();
ref.setEntityId("uid://X1230000000000000/X00000001");
prop.setObsProjectRef(ref);
return prop;
}
Aggregations