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

org.jboss.drools.util.DroolsXMLProcessor Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
/**
 */
package org.jboss.drools.util;

import java.util.Map;

import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.resource.Resource;

import org.eclipse.emf.ecore.xmi.util.XMLProcessor;

import org.jboss.drools.DroolsPackage;

/**
 * This class contains helper methods to serialize and deserialize XML documents
 * 
 * 
 * @generated
 */
public class DroolsXMLProcessor extends XMLProcessor {

	/**
	 * Public constructor to instantiate the helper.
	 * 
	 * 
	 * @generated
	 */
	public DroolsXMLProcessor() {
		super((EPackage.Registry.INSTANCE));
		DroolsPackage.eINSTANCE.eClass();
	}
	
	/**
	 * Register for "*" and "xml" file extensions the DroolsResourceFactoryImpl factory.
	 * 
	 * 
	 * @generated
	 */
	@Override
	protected Map getRegistrations() {
		if (registrations == null) {
			super.getRegistrations();
			registrations.put(XML_EXTENSION, new DroolsResourceFactoryImpl());
			registrations.put(STAR_EXTENSION, new DroolsResourceFactoryImpl());
		}
		return registrations;
	}

} //DroolsXMLProcessor




© 2015 - 2025 Weber Informatics LLC | Privacy Policy