Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.RegistryObject


       
        // Classifications
      TModelBag tbag = objectFactory.createTModelBag();
      Iterator speciter = specifications.iterator();
      while (speciter.hasNext()) {
        RegistryObject registryobject = (RegistryObject) speciter.next();
        if (registryobject instanceof SpecificationLink) {
          SpecificationLink specificationlink = (SpecificationLink) registryobject;
          if (specificationlink.getSpecificationObject() != null) {
            RegistryObject ro = specificationlink.getSpecificationObject();
            if (ro.getKey() != null) {
              Key key = ro.getKey();
              tbag.getTModelKey().add(key.toString());
            }
          }
        } else {
          log.info("ebXML case - the RegistryObject is an ExtrinsicObject, Not implemented");
View Full Code Here


        LinkedHashSet<Object> suc = new LinkedHashSet<Object>();
        Collection<Exception> exc = new ArrayList<Exception>();

        while (iter.hasNext()) {
            RegistryObject reg = (RegistryObject) iter.next();

            BulkResponse br = null;

            Collection<RegistryObject> c = new ArrayList<RegistryObject>();
            c.add(reg);

            if (reg instanceof javax.xml.registry.infomodel.Association) {
                br = saveAssociations(c, true);
            }
            else if (reg instanceof javax.xml.registry.infomodel.ClassificationScheme) {
                br = saveClassificationSchemes(c);
            }
            else if (reg instanceof javax.xml.registry.infomodel.Concept) {
                br = saveConcepts(c);
            }
            else if (reg instanceof javax.xml.registry.infomodel.Organization) {
                br = saveOrganizations(c);
            }
            else if (reg instanceof javax.xml.registry.infomodel.Service) {
                br = saveServices(c);
            }
            else if (reg instanceof javax.xml.registry.infomodel.ServiceBinding) {
                br = saveServiceBindings(c);
            }
            else {
                throw new JAXRException("Delete Operation for " + reg.getClass()
                        + " not implemented by Scout");
            }

            if (br.getCollection() != null) {
                suc.addAll(br.getCollection());
View Full Code Here

                       //get the objects for this
                       Collection rokeys = response.getCollection();
                       //need to return ClassificationSchemes
                       Iterator kiter = rokeys.iterator();
                       while (kiter.hasNext()) {
                           RegistryObject ro = (RegistryObject)kiter.next();
                           schemes.add(ro);
                       }
                   }
               }
               //set the bulk response
View Full Code Here

               Collection tModels =
                   detail.getTModel();
               Iterator iter = tModels.iterator();
               while (iter.hasNext()){
                   RegistryObject registryObject =
                   mapper.tModel2ConceptOrClassificationScheme((TModel)iter.next());
                   if (type.equals(mapper.FIND))
                       fbResponse.add(registryObject);
                   else
                       fbResponse.add(registryObject.getKey());
               }
               bResponse.setCollection(fbResponse);
           }
           return bResponse;
       }
View Full Code Here

TOP

Related Classes of javax.xml.registry.infomodel.RegistryObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.