/*******************************************************************************
 * Copyright (c) 2006 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.pde.internal.core.icheatsheet.comp;

import java.io.Serializable;
import java.util.List;

import org.eclipse.pde.core.IWritable;
import org.w3c.dom.Element;

/**
 * ICompCSObject
 *
 */
public interface ICompCSObject extends Serializable, IWritable,
	ICompCSConstants {

	/**
	 * @return
	 */
	ICompCSModel getModel();
	
	/**
	 * @param model
	 */
	void setModel(ICompCSModel model);
	
	/**
	 * @return
	 */
	ICompCS getCompCS();
	
	/**
	 * @param element
	 */
	void parse(Element element);	

	/**
	 * 
	 */
	public void reset();
	
	/**
	 * To avoid using instanceof all over the place
	 * @return
	 */
	public int getType();
	
	
	/**
	 * For the label provider
	 * @return
	 */
	public String getName();
	
	/**
	 * For the content provider
	 * @return A empty / non-empty list - never null
	 */
	public List getChildren();
	
	/**
	 * @return
	 */
	public ICompCSObject getParent();	
	
	/**
	 * @return
	 */
	public String getElement();
	
}
