Package com.sun.ccpp

Examples of com.sun.ccpp.DescriptionManager


                (ProfileFragmentFactoryImpl)
                    ProfileFragmentFactoryImpl.getInstance();

        // Create and initialise the RI Description Manager.
        DescriptionManager.setSchema(getVocabularyStream("vocabulary.xsd"));
        DescriptionManager dm = DescriptionManager.getInstance();
       
        // Add the "normal" vocabulary files provided with the RI example.
        // NOTE: it would be better if these were configurable.
        dm.addVocabulary(getVocabularyStream("universalvocab.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-19991014.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20000405.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20000405a.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20000405b.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010111.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010330.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010330a.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010330b.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010430.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010430a.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20010430b.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20020710.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20020710a.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20020710b.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20021212.xml"));
        dm.addVocabulary(getVocabularyStream("ccppschema-20030226.xml"));

        // OK, we have set up the CC/PP RI, so save away the factories
        // for our CC/PP client code to find later. Oh, I love singletons.
        ProfileFactory.setInstance(factory);
        ProfileFragmentFactory.setInstance(fragmentFactory);
View Full Code Here

TOP

Related Classes of com.sun.ccpp.DescriptionManager

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.