kchong | d10b4e4 | 2005-06-15 20:14:51 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 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 | *******************************************************************************/ |
| 11 | package org.eclipse.wst.xsd.contentmodel.internal.util; |
| 12 | |
| 13 | import org.eclipse.emf.common.notify.Adapter; |
| 14 | import org.eclipse.emf.common.notify.Notifier; |
| 15 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; |
| 16 | import org.eclipse.xsd.util.XSDSchemaLocator; |
| 17 | |
| 18 | public 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 | } |