Search in sources :

Example 21 with RegistryObjectType

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;
}
Also used : RegistryObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType)

Example 22 with RegistryObjectType

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;
}
Also used : RegistryObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType)

Aggregations

RegistryObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryObjectType)16 ArrayList (java.util.ArrayList)8 HashMap (java.util.HashMap)7 Map (java.util.Map)6 Test (org.junit.Test)6 InputStream (java.io.InputStream)5 ExtrinsicObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)5 ByteArrayInputStream (java.io.ByteArrayInputStream)4 ExternalIdentifierType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExternalIdentifierType)4 OrganizationType (oasis.names.tc.ebxml_regrep.xsd.rim._3.OrganizationType)4 PersonType (oasis.names.tc.ebxml_regrep.xsd.rim._3.PersonType)4 ServiceType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ServiceType)4 SlotType1 (oasis.names.tc.ebxml_regrep.xsd.rim._3.SlotType1)4 Metacard (ddf.catalog.data.Metacard)3 CreateRequest (ddf.catalog.operation.CreateRequest)3 CreateRequestImpl (ddf.catalog.operation.impl.CreateRequestImpl)3 JAXBElement (javax.xml.bind.JAXBElement)3 AssociationType1 (oasis.names.tc.ebxml_regrep.xsd.rim._3.AssociationType1)3 RegistryPackageType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType)3 MetacardImpl (ddf.catalog.data.impl.MetacardImpl)2