blob: 102b3faabd3f81eb7782c26bc00b61596cc307c7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Jens Lukowski/Innoopract - initial renaming/restructuring
*
*******************************************************************************/
package org.eclipse.wst.sse.core.internal.ltk.modelhandler;
import java.util.List;
import org.eclipse.wst.sse.core.internal.provisional.IModelLoader;
public interface IModelHandler extends IDocumentTypeHandler {
/**
* This method should return Factories which are added automatically by
* IModelManager. This can and will often be an empty List (or null),
* since some AdapterFactories must be added by Loader directly, and most
* should be added by Editors. FormatAdapterFactory is an example of one
* that can be returned here, since the timing of adding it is not
* critical, but it may be needed even when an editor is not being used.
*/
List getAdapterFactories();
/**
* Returns the ID for the associated ContentTypeHandler But is needed for
* now.
*/
String getAssociatedContentTypeId();
/**
* The Loader is reponsible for decoding the Resource,
*/
IModelLoader getModelLoader();
boolean isDefault();
}