blob: 5380df5d90fe06b8ad480ee438e11e43634c815b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 Sybase, Inc. 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:
* Sybase, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.pagedesigner.jsp.core.pagevar.adapter;
import java.util.List;
import org.eclipse.jst.pagedesigner.jsp.core.pagevar.IVariableInfo;
import org.eclipse.wst.sse.core.internal.provisional.INodeAdapter;
import org.w3c.dom.Element;
/**
* A IPageVariableAdapter normally will be adapted to an JSP tag.
*
* @author mengbo
* @version 1.5
*/
public interface IPageVariableAdapter extends INodeAdapter {
/**
* most JSP tags will only support a single variable.
*
* @return
*/
public boolean supportMultipleVariable(Element element);
/**
* If only support single variable, this method will return the variable
* info. This method is provided for better performance.
*
* @return null means no variable info provided.
*/
public IVariableInfo getVariableInfo(Element element);
/**
* should return a list of IVariableInfo
*
* @return
*/
public List getVariableInfos(Element element);
}