Search in sources :

Example 1 with InternationalStringTypeHelper

use of org.codice.ddf.registry.schemabindings.helper.InternationalStringTypeHelper in project ddf by codice.

the class IdentityNodeInitializationTest method buildRegistryPackageType.

private RegistryPackageType buildRegistryPackageType() {
    SlotTypeHelper slotTypeHelper = new SlotTypeHelper();
    InternationalStringTypeHelper internationalStringTypeHelper = new InternationalStringTypeHelper();
    String registryPackageId = RegistryConstants.GUID_PREFIX + UUID.randomUUID().toString().replaceAll("-", "");
    RegistryPackageType registryPackage = RIM_FACTORY.createRegistryPackageType();
    registryPackage.setId(registryPackageId);
    registryPackage.setObjectType(RegistryConstants.REGISTRY_NODE_OBJECT_TYPE);
    ExtrinsicObjectType extrinsicObject = RIM_FACTORY.createExtrinsicObjectType();
    extrinsicObject.setObjectType(RegistryConstants.REGISTRY_NODE_OBJECT_TYPE);
    String extrinsicObjectId = RegistryConstants.GUID_PREFIX + UUID.randomUUID().toString().replaceAll("-", "");
    extrinsicObject.setId(extrinsicObjectId);
    extrinsicObject.setName(internationalStringTypeHelper.create(TEST_SITE_NAME));
    String home = SystemBaseUrl.getBaseUrl();
    extrinsicObject.setHome(home);
    registryPackage.setRegistryObjectList(RIM_FACTORY.createRegistryObjectListType());
    registryPackage.getRegistryObjectList().getIdentifiable().add(RIM_FACTORY.createIdentifiable(extrinsicObject));
    return registryPackage;
}
Also used : SlotTypeHelper(org.codice.ddf.registry.schemabindings.helper.SlotTypeHelper) RegistryPackageType(oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType) InternationalStringTypeHelper(org.codice.ddf.registry.schemabindings.helper.InternationalStringTypeHelper) ExtrinsicObjectType(oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)

Aggregations

ExtrinsicObjectType (oasis.names.tc.ebxml_regrep.xsd.rim._3.ExtrinsicObjectType)1 RegistryPackageType (oasis.names.tc.ebxml_regrep.xsd.rim._3.RegistryPackageType)1 InternationalStringTypeHelper (org.codice.ddf.registry.schemabindings.helper.InternationalStringTypeHelper)1 SlotTypeHelper (org.codice.ddf.registry.schemabindings.helper.SlotTypeHelper)1