use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType in project ddf by codice.
the class SlotTypeHelperTest method getRegistryObjectFromResource.
private static RegistryObjectType getRegistryObjectFromResource(String path) throws ParserException {
RegistryObjectType rot = null;
JAXBElement<RegistryObjectType> jaxbRegistryObject = parser.unmarshal(configurator, JAXBElement.class, SlotTypeHelperTest.class.getResourceAsStream(path));
if (jaxbRegistryObject != null) {
rot = jaxbRegistryObject.getValue();
}
return rot;
}
use of oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType in project ddf by codice.
the class RegistryPackageWebConverterTest method getRegistryObjectFromResource.
private RegistryObjectType getRegistryObjectFromResource(String path) throws ParserException {
RegistryObjectType registryObject = null;
JAXBElement<RegistryObjectType> jaxbRegistryObject = parser.unmarshal(configurator, JAXBElement.class, getClass().getResourceAsStream(path));
if (jaxbRegistryObject != null) {
registryObject = jaxbRegistryObject.getValue();
}
return registryObject;
}
Aggregations