blob: 2cf9a0021cc42b70ca6037327680e764f7a64c3f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2005 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
*******************************************************************************/
package org.eclipse.wst.common.frameworks.datamodel.provisional;
import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
public interface IDataModelProvider {
public static IStatus OK_STATUS = new Status(IStatus.OK, "org.eclipse.wst.common.frameworks.internal", 0, "OK", null); //$NON-NLS-1$ //$NON-NLS-2$
public void setDataModel(IDataModel dataModel);
public IDataModel getDataModel();
/**
* Returns a list of property names for which this provider is responsible. This method is
* called only once during initialization.
*
* @return the array of valid property names.
*/
public String[] getPropertyNames();
/**
* Providers should perform additional initialization here.
*
*/
public void init();
public Object getDefaultProperty(String propertyName);
public boolean isPropertyEnabled(String propertyName);
public IStatus validateProperty(String propertyName);
public boolean setProperty(String propertyName, Object propertyValue);
public DataModelPropertyDescriptor getPropertyDescriptor(String propertyName);
public DataModelPropertyDescriptor[] getValidPropertyDescriptors(String propertyName);
public List getExtendedContext();
public DataModelOperation getDefaultOperation();
}