
Public Member Functions | |
| XmlInOut () | |
| ObsProposal | unmarshalObsProposal (String xmlFileName) throws FileNotFoundException, MarshalException, ValidationException |
| ObsProject | unmarshalObsProject (String xmlFileName) throws FileNotFoundException, MarshalException, ValidationException |
| String | marshalObsProposalToFile (ObsProposal prop, String originalXmlFilename) throws MarshalException, ValidationException, IOException |
| String | marshalObsProjectToFile (ObsProject proj, String originalXmlFilename) throws MarshalException, ValidationException, IOException |
Private Member Functions | |
| String | getRemarshaledFilename (String filename) |
Private Attributes | |
| File | module_dir |
Static Private Attributes | |
| static final String | pathToXmlSamples = "test/data/xml_instances_fake/" |
Test helper class that manages sample XML files, the unmarshaling to Castor classes, and marshalling back to files.
| alma::tools::entitybuilder::XmlInOut::XmlInOut | ( | ) | [inline] |
References module_dir.
| String alma::tools::entitybuilder::XmlInOut::getRemarshaledFilename | ( | String | filename | ) | [inline, private] |
Referenced by marshalObsProjectToFile(), and marshalObsProposalToFile().
| String alma::tools::entitybuilder::XmlInOut::marshalObsProjectToFile | ( | ObsProject | proj, | |
| String | originalXmlFilename | |||
| ) | throws MarshalException, ValidationException, IOException [inline] |
References getRemarshaledFilename(), module_dir, and pathToXmlSamples.
Referenced by alma::tools::entitybuilder::MarshalRoundtripTest::testMarshalObsProject().
| String alma::tools::entitybuilder::XmlInOut::marshalObsProposalToFile | ( | ObsProposal | prop, | |
| String | originalXmlFilename | |||
| ) | throws MarshalException, ValidationException, IOException [inline] |
References getRemarshaledFilename(), module_dir, and pathToXmlSamples.
Referenced by alma::tools::entitybuilder::MarshalRoundtripTest::testMarshalObsProposal().
| ObsProject alma::tools::entitybuilder::XmlInOut::unmarshalObsProject | ( | String | xmlFileName | ) | throws FileNotFoundException, MarshalException, ValidationException [inline] |
| ObsProposal alma::tools::entitybuilder::XmlInOut::unmarshalObsProposal | ( | String | xmlFileName | ) | throws FileNotFoundException, MarshalException, ValidationException [inline] |
File alma::tools::entitybuilder::XmlInOut::module_dir [private] |
Referenced by marshalObsProjectToFile(), marshalObsProposalToFile(), unmarshalObsProject(), unmarshalObsProposal(), and XmlInOut().
final String alma::tools::entitybuilder::XmlInOut::pathToXmlSamples = "test/data/xml_instances_fake/" [static, private] |
Referenced by marshalObsProjectToFile(), marshalObsProposalToFile(), unmarshalObsProject(), and unmarshalObsProposal().
1.6.2