blob: b2d7fcda4bb8c11e183c78113c9158238910d2fc [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 Oracle Corporation.
* 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:
* Oracle - initial API and implementation
*
********************************************************************************/
package org.eclipse.jst.jsf.common.metadata.internal;
import java.util.Set;
import org.eclipse.core.resources.IProject;
/**
* Binds a domain of metadata to a source model type which is defined by a {@link IMetaDataLocator}
* and set of {@link IMetaDataTranslator}s
* Not intended to be implemented by clients. Created from ext-pts.
*/
public interface IDomainSourceModelType {
/**
* @return domain id
*/
public String getDomain();
/**
* @param project - may be null
* @return instance of IMetaDataLocator - may return null if the locator cannot operate in the current context
*/
public IMetaDataLocator getLocator(IProject project);
// public int getOrdinal();
/**
* @return set of {@link IMetaDataTranslator}s for the domain source model type
*/
public Set<IMetaDataTranslator> getTranslators();
/**
* @return oridinal for this type within the domain
*/
public int getOrdinal();
}