Package org.jitterbit.xml.sax

Examples of org.jitterbit.xml.sax.DefaultKongaSaxParser


        File file = fileProducer.getFile();
        if (file == null) {
            return;
        }
        mappings = Lists.newArrayList();
        DefaultKongaSaxParser parser = createParser();
        MultipleFolderXmlHandler folderHandler = new MultipleFolderXmlHandler(parser);
        parser.load(file);
        multipleFolders = folderHandler.getMultipleFolders();
    }
View Full Code Here


        parser.load(file);
        multipleFolders = folderHandler.getMultipleFolders();
    }

    private DefaultKongaSaxParser createParser() {
        DefaultKongaSaxParser parser = new DefaultKongaSaxParser();
        EndElementHandlerFactory f = new EndElementHandlerFactory() {

            private EndElementHandler handler = new MappingElementHandler();

            @Override
            public EndElementHandler getEndHandler() {
                return handler;
            }
        };
        parser.addEndElementHandlerFactory(MappingsXmlConstants.MAPPING, f);
        return parser;
    }
View Full Code Here

    Map<String, String> read() throws KongaSaxParserException {
        File file = fileFactory.getFile();
        if (file == null) {
            return null;
        }
        DefaultKongaSaxParser parser = new DefaultKongaSaxParser();
        MultipleFolderXmlHandler handler = new MultipleFolderXmlHandler(parser);
        parser.load(file);
        return handler.getMultipleFolders();
    }
View Full Code Here

      serverClientKeyMappings = null;
    }

    InputStream is = getClass().getClassLoader().getResourceAsStream("Deploy.PropertyMappings.xml");

    DefaultKongaSaxParser parser = new DefaultKongaSaxParser();
    parser.addStartElementHandlerFactory("IntegrationEntity", this);
    parser.addStartElementHandlerFactory("Key", this);
    parser.addEndElementHandlerFactory("IntegrationEntity", this);
    try {
      clientServerKeyMappings = Maps.newEnumMap(EntityType.class);
      serverClientKeyMappings = Maps.newEnumMap(EntityType.class);
      currentEntityType = null;
      currentClientServerKeyMappings = null;
      currentServerClientKeyMappings = null;
      parser.load(is);
    } catch (KongaSaxParserException confError) {
      clientServerKeyMappings = null;
      serverClientKeyMappings = null;
      currentEntityType = null;
      currentClientServerKeyMappings = null;
View Full Code Here

    private PluginXmlSingleStringValues_V10 singleStringValues;

    private String xml;

    public PipelinePluginManifestXmlLoader_V10() {
        saxParser = new DefaultKongaSaxParser();
        registerHandlers(saxParser);
        parsedManifests = new ArrayList<PipelinePluginManifest>();
    }
View Full Code Here

     * @return a <code>List</code> of all available function categories. <code>null</code> is
     *         returned if the loading fails.
     */
    public List<FunctionCategory> load() {
        try {
            DefaultKongaSaxParser parser = createParser();
            parser.load(XML_RESOURCE);
            return functionFactory.getCategories();
        } catch (Exception ex) {
            handleLoadingException(ex);
        }
        return null;
View Full Code Here

        ErrorLog.attention(FunctionLoader.class, "Failed to load the available mapping functions. "
                        + "This is due to a configuration error. Please contact Jitterbit Support.", ex);
    }

    private DefaultKongaSaxParser createParser() {
        DefaultKongaSaxParser parser = new DefaultKongaSaxParser();
        registerElementHandlers(parser);
        return parser;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.xml.sax.DefaultKongaSaxParser

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.