Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.Concept


    {
        this.childconcepts.clear();
        Iterator iter = childconcepts.iterator();
        while(iter.hasNext())
        {
            Concept c = (Concept)iter.next();
            ((ConceptImpl)c).setParentconcept(this);
            childconcepts.add(c);
        }
    }
View Full Code Here


                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

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

                if(confirm != CompletionStatus.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

     * @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

                                                        ,lcm))
                      scheme.setClassifications(ScoutUddiJaxrHelper.getClassifications(tmodel.getCategoryBag(),lcm));
                    }
                    else
                    {
                      Concept c = ScoutUddiJaxrHelper.getConcept(tmodeldetail, lcm);

                        /*
                         * now turn into a concrete ClassificationScheme
                         */
                        scheme.setName(c.getName());
                        scheme.setDescription(c.getDescription());
                        scheme.setKey(c.getKey());
                    }

                    return scheme;
                }
            }
View Full Code Here

         * This is a hack!!!  Need to figure out how to do this!
         */
        ClassificationScheme cs = new ClassificationSchemeImpl(null);
        cs.setName(new InternationalStringImpl(firstToken));

        Concept concept = new ConceptImpl(null);
        concept.setName(new InternationalStringImpl(secondToken.toLowerCase()));
        concept.setValue(secondToken);
        ((ConceptImpl)concept).setScheme(((ClassificationSchemeImpl)cs));
        return concept;

    }
View Full Code Here

  }

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

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

    concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
    concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));

    return concept;
  }
View Full Code Here

  }

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

    return concept;
  }
View Full Code Here

     
      if (association.getTargetObject().getKey() != null &&
        association.getTargetObject().getKey().getId() != null) {
            pa.setToKey(association.getTargetObject().getKey().getId());
      }
            Concept c = association.getAssociationType();
            String v = c.getValue();
      KeyedReference kr = objectFactory.createKeyedReference();
            Key key = c.getKey();
      if (key == null) {
        // TODO:Need to check this. If the concept is a predefined
        // enumeration, the key can be the parent classification scheme
                key = c.getClassificationScheme().getKey();
            }
      if (key != null && key.getId() != null) {
        kr.setTModelKey(key.getId());
      }
            kr.setKeyName("Concept");
View Full Code Here

                    } else {
              if (classification.isExternal()) {
                            iname = (InternationalStringImpl) ((RegistryObject) classification).getName();
                            value = classification.getValue();
              } else {
                Concept concept = classification.getConcept();
                if (concept != null) {
                  iname = (InternationalStringImpl) ((RegistryObject) concept).getName();
                  value = concept.getValue();
                  scheme = concept.getClassificationScheme();
                }
              }
     
              String name = iname.getValue();
              if (name != null)
View Full Code Here

TOP

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

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.