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

org.eclipse.epsilon.emc.emf.DefaultXMIResource Maven / Gradle / Ivy

The newest version!
/*********************************************************************
* Copyright (c) 2008 The University of York.
*
* 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
**********************************************************************/
package org.eclipse.epsilon.emc.emf;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;

public class DefaultXMIResource extends XMIResourceImpl {
	
	protected boolean useXmiIds = super.useUUIDs();
	
	public DefaultXMIResource() {
		super();
	}

	public DefaultXMIResource(URI uri) {
		super(uri);
	}

	@Override
	protected boolean useUUIDs() {
		return useXmiIds;
	}
	
	public void setUseXmiIds(boolean useXmiIds) {
		this.useXmiIds = useXmiIds;
	}
	
	public boolean isUseXmiIds() {
		return useXmiIds;
	}
	
	public static class Factory implements Resource.Factory {

		@Override
		public Resource createResource(URI uri) {
			return new DefaultXMIResource(uri);
		}
		
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy