
org.w3.rdfs.util.RdfsResourceFactoryImpl Maven / Gradle / Ivy
/*
* Copyright (c) 2012 - 2024 Data In Motion and others.
* All rights reserved.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Mark Hoffmann - initial API and implementation
*/
package org.w3.rdfs.util;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
import org.gecko.emf.osgi.constants.EMFNamespaces;
import org.w3.rdfs.RdfsPackage;
/**
*
* The Resource Factory associated with the package.
*
* @see org.w3.rdfs.util.RdfsResourceImpl
* @generated
*/
public class RdfsResourceFactoryImpl extends ResourceFactoryImpl {
/**
* Creates an instance of the resource factory.
*
*
* @generated
*/
public RdfsResourceFactoryImpl() {
super();
}
/**
* Creates an instance of the resource.
*
*
* @generated
*/
@Override
public Resource createResource(URI uri) {
Resource result = new RdfsResourceImpl(uri);
return result;
}
/**
* A method providing the Properties the services around this ResourceFactory should be registered with.
* @generated
*/
public Map getServiceProperties() {
Map properties = new HashMap();
properties.put(EMFNamespaces.EMF_CONFIGURATOR_NAME, RdfsPackage.eNAME);
properties.put(EMFNamespaces.EMF_MODEL_FILE_EXT, "rdfs");
properties.put(EMFNamespaces.EMF_MODEL_VERSION, "1.0");
return properties;
}
} //RdfsResourceFactoryImpl
© 2015 - 2025 Weber Informatics LLC | Privacy Policy