Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (C) 2009 STMicroelectronics
*
* This file is part of "Mind Compiler" is free software: you can redistribute
* it and/or modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Contact: [email protected]
*
* Authors: Matthieu Leclercq
* Contributors:
*/
package com.st.p2012.mind.idl.parser;
import static org.objectweb.fractal.mind.BindingControllerImplHelper.checkItfName;
import static org.objectweb.fractal.mind.BindingControllerImplHelper.listFcHelper;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Map;
import org.objectweb.fractal.adl.ADLException;
import org.objectweb.fractal.adl.error.BasicErrorLocator;
import org.objectweb.fractal.adl.error.ErrorLocator;
import org.objectweb.fractal.adl.xml.XMLNodeFactory;
import org.objectweb.fractal.api.NoSuchInterfaceException;
import org.objectweb.fractal.api.control.BindingController;
import org.objectweb.fractal.api.control.IllegalBindingException;
import org.objectweb.fractal.mind.InputResourcesHelper;
import org.objectweb.fractal.mind.idl.IDLErrors;
import org.objectweb.fractal.mind.idl.IDLLoader;
import org.objectweb.fractal.mind.idl.IDLLocator;
import org.objectweb.fractal.mind.idl.ast.IDL;
import org.objectweb.fractal.mind.idl.ast.InterfaceDefinition;
import org.objectweb.fractal.mind.idl.ast.SharedTypeDefinition;
import org.objectweb.fractal.mind.idl.jtb.ParseException;
import org.objectweb.fractal.mind.idl.jtb.Parser;
import org.objectweb.fractal.mind.idl.jtb.syntaxtree.IDTFile;
import org.objectweb.fractal.mind.idl.jtb.syntaxtree.ITFFile;
public class IDLFileLoader implements IDLLoader, BindingController {
protected static final String DTD = "classpath://org/objectweb/fractal/mind/idl/mind_v1.dtd";
// ---------------------------------------------------------------------------
// Client interfaces
// ---------------------------------------------------------------------------
/**
* Client interface bound to the {@link XMLNodeFactory node factory}
* component.
*/
public XMLNodeFactory nodeFactoryItf;
/**
* The {@link IDLLocator} client interface used to locate IDL source files to
* parse.
*/
public IDLLocator idlLocatorItf;
// ---------------------------------------------------------------------------
// Implementation of the Loader interface
// ---------------------------------------------------------------------------
public IDL load(final String name, final Map