Examples of ConceptImpl


Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

                this.createInternationalString(desc));
    }

    public Concept createConcept(RegistryObject parent, InternationalString name, String value)
            throws JAXRException {
        ConceptImpl concept = new ConceptImpl(this);
        concept.setClassificationScheme((ClassificationScheme) parent);
        concept.setParent(parent);
        concept.setName(name);
        concept.setValue(value);
        return concept;
    }
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

                this.createInternationalString(desc));
    }

    public Concept createConcept(RegistryObject parent, InternationalString name, String value)
            throws JAXRException {
        ConceptImpl concept = new ConceptImpl(this);
        concept.setClassificationScheme((ClassificationScheme) parent);
        concept.setParent(parent);
        concept.setName(name);
        concept.setValue(value);
        return concept;
    }
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

        }
        else if (LifeCycleManager.CLASSIFICATION_SCHEME.equals(interfaceName)) {
            return new ClassificationSchemeImpl(this);
        }
        else if (LifeCycleManager.CONCEPT.equals(interfaceName)) {
            return new ConceptImpl(this);
        }
        else if (LifeCycleManager.EMAIL_ADDRESS.equals(interfaceName)) {
            return new EmailAddressImpl();
        }
        else if (LifeCycleManager.EXTERNAL_IDENTIFIER.equals(interfaceName)) {
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

           Collection<ExternalLink> elinks = getExternalLinks(idetails.getOverviewDoc(),lcm);
           SpecificationLink slink = new SpecificationLinkImpl(lcm);
           slink.addExternalLinks(elinks);
           serviceBinding.addSpecificationLink(slink);
          
           ConceptImpl c = new ConceptImpl(lcm);
           c.setExternalLinks(elinks);
           c.setKey(lcm.createKey(info.getTModelKey()));
           c.setName(lcm.createInternationalString(idetails.getInstanceParms()));
           c.setValue(idetails.getInstanceParms());
          
           slink.setSpecificationObject(c);
         }
      }
     
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

   }

   public static Concept getConcept(TModelDetail tm, LifeCycleManager lcm)
           throws JAXRException
   {
      Concept concept = new ConceptImpl(lcm);
      TModel[] tc = tm.getTModelArray();
      TModel tmodel = tc != null && tc.length > 0 ? tc[0] : null;
     
      if (tmodel != null) {
        concept.setKey(lcm.createKey(tmodel.getTModelKey()));
        concept.setName(lcm.createInternationalString(getLocale(tmodel.getName().getLang()), tmodel.getName().getStringValue()));

        Description desc = getDescription(tmodel);
        if( desc != null ) {
            concept.setDescription(lcm.createInternationalString(getLocale(desc.getLang()), desc.getStringValue()));
        }

          concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lcm));
          concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lcm));
      }
      return concept;
   }
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

   }

   public static Concept getConcept(TModel tmodel, LifeCycleManager lcm)
           throws JAXRException
   {
      Concept concept = new ConceptImpl(lcm);
      concept.setKey(lcm.createKey(tmodel.getTModelKey()));
      concept.setName(lcm.createInternationalString(getLocale(tmodel.getName().getLang()), tmodel.getName().getStringValue()));

      Description desc = getDescription(tmodel);
      if (desc != null) {
          concept.setDescription(lcm.createInternationalString(getLocale(desc.getLang()), desc.getStringValue()));
      }
     
      concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lcm));
      concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lcm));

      return concept;
   }
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

   }

   public static Concept getConcept(TModelInfo tm, LifeCycleManager lcm)
           throws JAXRException
   {
      Concept concept = new ConceptImpl(lcm);
      concept.setKey(lcm.createKey(tm.getTModelKey()));
      concept.setName(lcm.createInternationalString(getLocale(tm.getName().getLang()), tm.getName().getStringValue()));

      return concept;
   }
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

                orgcol.add(new KeyImpl(targetKey));
                BulkResponse bl = getRegistryObjects(orgcol, LifeCycleManager.ORGANIZATION);
                Association asso = ScoutUddiJaxrHelper.getAssociation(bl.getCollection(),
                                             registryService.getBusinessLifeCycleManager());
                KeyedReference keyr = pas.getKeyedReference();
                Concept c = new ConceptImpl(getRegistryService().getBusinessLifeCycleManager());
                c.setName(new InternationalStringImpl(keyr.getKeyName()));
                c.setKey( new KeyImpl(keyr.getTModelKey()) );
                c.setValue(keyr.getKeyValue());
                asso.setAssociationType(c);
                col.add(asso);
            }
            return new BulkResponseImpl(col);
        } catch (RegistryException e)
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

                ((AssociationImpl)asso).setConfirmedByTargetOwner(other);

                if(confirm != Constants.COMPLETION_STATUS_COMPLETE)
                     ((AssociationImpl)asso).setConfirmed(false);

                Concept c = new ConceptImpl(getRegistryService().getBusinessLifeCycleManager());
                KeyedReference keyr = asi.getKeyedReference();
                c.setKey(new KeyImpl(keyr.getTModelKey()));
                c.setName(new InternationalStringImpl(keyr.getKeyName()));
                c.setValue(keyr.getKeyValue());
                asso.setKey(new KeyImpl(keyr.getTModelKey())); //TODO:Validate this
                asso.setAssociationType(c);
                col.add(asso);
            }
View Full Code Here

Examples of org.apache.ws.scout.registry.infomodel.ConceptImpl

     * @param name
     * @throws JAXRException
     */
    private void addChildConcept(ClassificationSchemeImpl scheme, String name)
        throws JAXRException {
        Concept c = new ConceptImpl(registryService.getLifeCycleManagerImpl());

        c.setName(new InternationalStringImpl(name));
        c.setValue(name);
        ((ConceptImpl)c).setScheme((ClassificationSchemeImpl)scheme);

        scheme.addChildConcept(c);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.