blob: c2db1401cd3bfc7664874561b6fcda5daa84157c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2019 IBM Corporation and others.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/**
* <copyright>
* </copyright>
*
* $Id: TraitTypesXMLProcessor.java,v 1.6 2010/04/27 17:40:11 gkessler Exp $
*/
package org.eclipse.jst.jsf.common.metadata.traittypes.traittypes.internal.util;
import java.util.Map;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
import org.eclipse.jst.jsf.common.metadata.traittypes.traittypes.TraitTypesPackage;
/**
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class TraitTypesXMLProcessor extends XMLProcessor {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Copyright (c) 2007 Oracle Corporation"; //$NON-NLS-1$
/**
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public TraitTypesXMLProcessor() {
super((EPackage.Registry.INSTANCE));
TraitTypesPackage.eINSTANCE.eClass();
}
/**
* Register for "*" and "xml" file extensions the TraitTypesResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Map getRegistrations() {
if (registrations == null) {
super.getRegistrations();
registrations.put(XML_EXTENSION, new TraitTypesResourceFactoryImpl());
registrations.put(STAR_EXTENSION, new TraitTypesResourceFactoryImpl());
}
return registrations;
}
} //TraitTypesXMLProcessor