Package org.cishell.remoting.service.framework

Examples of org.cishell.remoting.service.framework.DataModelRegistry


            Vector dataModelIDs, Hashtable dictionary) {
        AlgorithmFactory factory = getAlgorithmFactory(servicePID);
       
        AlgorithmRegistry algReg = (AlgorithmRegistry) algRegistry.getService();
        MetaTypeProviderRegistry mtpReg = (MetaTypeProviderRegistry) mtpRegistry.getService();
        DataModelRegistry dmReg = (DataModelRegistry) dmRegistry.getService();
       
        String algID = "-1";
        if (factory != null && algReg != null && mtpReg != null && dmReg != null) {
            Data[] dm = dmReg.getDataModels(dataModelIDs);
           
            CIShellContext ciContext = null;
            synchronized (sidToContextMap) {
                ciContext = (CIShellContext) sidToContextMap.get(sessionID);
               
View Full Code Here


    public String createParameters(String servicePID, Vector dataModelIDs) {
        AlgorithmFactory factory = getAlgorithmFactory(servicePID);
       
        AlgorithmRegistry algReg = (AlgorithmRegistry) algRegistry.getService();
        MetaTypeProviderRegistry mtpReg = (MetaTypeProviderRegistry) mtpRegistry.getService();
        DataModelRegistry dmReg = (DataModelRegistry) dmRegistry.getService();
       
        String mtpID = "-1";
        if (factory != null && algReg != null && mtpReg != null && dmReg != null) {
            Data[] dm = dmReg.getDataModels(dataModelIDs);
           
            MetaTypeProvider mtp = getMetaTypeProvider(servicePID, dm);
            mtpID = mtpReg.registerMetaTypeProvider(mtp);
        }
       
View Full Code Here

       
    public void algorithmFinished(Algorithm algorithm, Data[] createdDM) {
        if (algorithm instanceof WrapperAlgorithm) {
            WrapperAlgorithm alg = (WrapperAlgorithm) algorithm;
           
            DataModelRegistry dmRegistry = (DataModelRegistry) dmReg.getService();
            Vector dmID = dmRegistry.registerDataModels(createdDM);
           
            if (dmID == null) {
                dmID = new Vector();
            }
           
View Full Code Here

     */
    public String convert(String dataModelID, String outFormat) {
        DataConversionService converter = getConverter();
        String id = "-1";
       
        DataModelRegistry dmRegistry = (DataModelRegistry) dmReg.getService();
       
        Data dm = dmRegistry.getDataModel(dataModelID);
        if (dm != null) {
            try {
        dm = converter.convert(dm, outFormat);
      } catch (ConversionException e) {
        dm = null;
      }
           
            if (dm != null) {
                id = dmRegistry.registerDataModel(dm);
            }
        }
       
        return id;
    }
View Full Code Here

    /**
     * @see org.cishell.remoting.service.conversion.RemoteDataConversionService#getConversions(java.lang.String, java.lang.String)
     */
    public Vector getConversions(String dataModelID, String outFormat) {
        DataModelRegistry dmRegistry = (DataModelRegistry) dmReg.getService();
        Data dm = dmRegistry.getDataModel(dataModelID);
       
        Set conversions = new HashSet();
        if (dm != null) {
            Converter[] converters = getConverter().findConverters(dm, outFormat);
           
View Full Code Here

TOP

Related Classes of org.cishell.remoting.service.framework.DataModelRegistry

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.