blob: cba5df1d0832146d0f60c9fa575f68d6f726fe62 [file] [log] [blame]
kchongd10b4e42005-06-15 20:14:51 +00001/*******************************************************************************
2 * Copyright (c) 2001, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.wst.xsd.contentmodel.internal.util;
12
13import org.eclipse.emf.common.notify.Adapter;
14import org.eclipse.emf.common.notify.Notifier;
15import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
16import org.eclipse.xsd.util.XSDSchemaLocator;
17
18public class XSDSchemaLocatorAdapterFactory extends AdapterFactoryImpl
19{
20 protected XSDSchemaLocatorImpl schemaLocator = new XSDSchemaLocatorImpl();
21
22 public boolean isFactoryForType(Object type)
23 {
24 return type == XSDSchemaLocator.class;
25 }
26
27 public Adapter adaptNew(Notifier target, Object type)
28 {
29 return schemaLocator;
30 }
31}