All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jcc.model.parser.uml2.StoreFactory Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package net.sf.jcc.model.parser.uml2;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

import net.sf.jcc.model.parser.XmlParser;

public class StoreFactory 
{
    private XmlParser xmlParser;
    
	public void setXmlParser(XmlParser xmlParser) 
	{
		this.xmlParser = xmlParser;
	}

	public ElementStore createStore(String modelFilename)
	{
    	StoreTransformationResult transformResult = new StoreTransformationResult();

    	InputStream ins = Thread.currentThread().getContextClassLoader().getResourceAsStream(modelFilename);
    	Map initialProperties = new HashMap();
    	xmlParser.parse(ins, initialProperties, transformResult);
    	return transformResult.getElementStore();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy