blob: 3c41bb6acf6945184472effbbf42a7c2d2866c95 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2011 Oracle Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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();
}