Package org.jibx.util

Examples of org.jibx.util.DummyClassLocator


            name = name.substring(0, split);
        }
       
        // construct object model for binding
        org.jibx.binding.model.ValidationContext vctx =
            new org.jibx.binding.model.ValidationContext(new DummyClassLocator());
        BindingElement binding = BindingElement.readBinding(url.openStream(), name, null, true,
            vctx);
        binding.setBaseUrl(url);
        vctx.setBindingRoot(binding);
       
View Full Code Here


            if (name == null) {
                name = "binding.xml";
            }
        }
        m_rootHolder = m_bindingDirectory.configureFiles(name, pack, pregens);
        IClassLocator iloc = new DummyClassLocator();
        org.jibx.binding.model.ValidationContext vctx = new org.jibx.binding.model.ValidationContext(iloc);
        if (m_bindingDirectory.validateBindings(m_rootHolder, m_targetDir, vctx)) {
            m_bindingDirectory.writeBindings(m_targetDir);
        } else {
            reportBindingProblems(vctx, handler);
View Full Code Here

            name = name.substring(0, split);
        }
       
        // construct object model for binding
        org.jibx.binding.model.ValidationContext vctx =
            new org.jibx.binding.model.ValidationContext(new DummyClassLocator());
        BindingElement binding = BindingElement.readBinding(url.openStream(), name, null, true,
            vctx);
        binding.setBaseUrl(url);
        vctx.setBindingRoot(binding);
       
View Full Code Here

     * @param types map from qualified name to mapping element for global complex type-equivalent
     * @param elems map from qualified name to mapping element for global element
     * @param formats map from qualified name to format definition for global simple type-equivalent
     */
    public static void getDefinitions(BindingElement binding, final Map types, final Map elems, final Map formats) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {

            public boolean visit(MappingElement mapping) {
                QName qname = mapping.getTypeQName();
                if (qname != null) {
View Full Code Here

        }
    }
    public static void getDefinitions(final BindingHolder holder,
                                      final Map<org.jibx.runtime.QName, MappingElement> types,
                                      final Map<org.jibx.runtime.QName, MappingElement> elems) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {
            public boolean visit(MappingElement mapping) {
                org.jibx.runtime.QName qname = mapping.getTypeQName();
                if (qname != null) {
                    types.put(qname, mapping);
View Full Code Here

        }
    }
    public static void getDefinitions(final BindingHolder holder,
                                      final Map<org.jibx.runtime.QName, MappingElement> types,
                                      final Map<org.jibx.runtime.QName, MappingElement> elems) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {
            public boolean visit(MappingElement mapping) {
                org.jibx.runtime.QName qname = mapping.getTypeQName();
                if (qname != null) {
                    types.put(qname, mapping);
View Full Code Here

        }
    }
    public static void getDefinitions(final BindingHolder holder,
                                      final Map<org.jibx.runtime.QName, MappingElement> types,
                                      final Map<org.jibx.runtime.QName, MappingElement> elems) {
        TreeContext ctx = new TreeContext(new DummyClassLocator());
        ModelVisitor visitor = new ModelVisitor() {
            public boolean visit(MappingElement mapping) {
                org.jibx.runtime.QName qname = mapping.getTypeQName();
                if (qname != null) {
                    types.put(qname, mapping);
View Full Code Here

TOP

Related Classes of org.jibx.util.DummyClassLocator

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.