Package javax.xml.registry.infomodel

Examples of javax.xml.registry.infomodel.Classification


     * @return JAXR Classification
     * @throws JAXRException
     */
    public Classification createClassification(ClassificationScheme classificationScheme) throws JAXRException
    {
        Classification classification = blm.createClassification(classificationScheme,
                "Java Api for Xml Registries Services","1234");
        return classification;
    }
View Full Code Here


      Collection c = ro.getClassifications();
      Iterator i = c.iterator();

      System.out.println("Classification: " + ro.getClassifications());
      while (i.hasNext()) {
        Classification cl = (Classification)i.next();
        System.out.println("Classification: " + cl.getName());
      }
    }
View Full Code Here

        findQualifiers.add(FindQualifier.AND_ALL_KEYS);
        findQualifiers.add(FindQualifier.EXACT_NAME_MATCH);
        findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
        ClassificationScheme cScheme = bqm.findClassificationSchemeByName(findQualifiers, "org.jboss.soa.esb.:testcategory");
        Collection<Classification> classifications = new ArrayList<Classification>();
        Classification classification =
            blm.createClassification(
              cScheme,
              "category", category );
        classifications.add(classification);
        Collection<String> namePatterns = new ArrayList<String>();
View Full Code Here

            // OK
        }
    }

    public void testCreateObjectClassification() throws JAXRException {
        Classification classification = (Classification) manager.createObject(LifeCycleManager.CLASSIFICATION);
        assertEquals(ClassificationImpl.class, classification.getClass());
        assertSame(manager, classification.getLifeCycleManager());
    }
View Full Code Here

            BusinessQueryManager bqm = rs.getBusinessQueryManager();
            blm = rs.getBusinessLifeCycleManager();
            Remover remover = new Remover(blm);

            ClassificationScheme cScheme = blm.createClassificationScheme("testScheme -- APACHE SCOUT TEST", "Sample Classification Scheme");
            Classification classification = createClassificationForUDDI(bqm);
            cScheme.addClassification(classification);

            ArrayList<ClassificationScheme> cSchemes = new ArrayList<ClassificationScheme>();
            cSchemes.add(cScheme);
View Full Code Here

            throws JAXRException
    {
        //Scheme which maps onto uddi tmodel
        ClassificationScheme udditmodel = bqm.findClassificationSchemeByName(null, "uddi-org:types");

        Classification cl = blm.createClassification(udditmodel, "wsdl", "wsdl");
        return cl;
    }
View Full Code Here

    public void addClassifications(Collection collection)
    {
        if (collection!=null) {
            for (Iterator i = collection.iterator(); i.hasNext();)
            {
                Classification classification = (Classification) i.next();
                classifications.add(classification);
            }
        }
    }
View Full Code Here

    public void setClassifications(Collection<Classification> collection)
    {
        Set<Classification> newClassifications = new HashSet<Classification>(collection.size());
        for (Iterator i = collection.iterator(); i.hasNext();)
        {
            Classification classification = (Classification) i.next();
            newClassifications.add(classification);
        }
        classifications = newClassifications;
    }
View Full Code Here

    public Classification createClassification(Concept concept) throws JAXRException, InvalidRequestException {
        if (concept.getClassificationScheme() == null) {
            throw new InvalidRequestException("Concept is not under classification scheme");
        }
        Classification classify = (Classification) this.createObject(LifeCycleManager.CLASSIFICATION);
        classify.setConcept(concept);
        return classify;
    }
View Full Code Here

    }

    public Classification createClassification(ClassificationScheme scheme,
                                               InternationalString name,
                                               String value) throws JAXRException {
        Classification cl = (Classification) this.createObject(LifeCycleManager.CLASSIFICATION);
        cl.setClassificationScheme(scheme);
        cl.setName(name);
        cl.setValue(value);

        ((ClassificationImpl) cl).setExternal(true);

        return cl;
    }
View Full Code Here

TOP

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

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.