blob: ad3a7a231c5b645863ff2a67f483d32fb9d29ee6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2008 Oracle 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:
* Oracle Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsf.designtime.internal.view;
import org.eclipse.jst.jsf.common.runtime.internal.model.ViewObject;
import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagElement;
/**
* A strategy for constructing a new view object from a tag element
* @author cbateman
* @param <VIEW_DEFN_BASE_TYPE>
*
*/
public abstract class ViewObjectConstructionStrategy<VIEW_DEFN_BASE_TYPE>
{
/**
* For a tag element return the corresponding view object or null if
* there is no such object. XMLViewObjectMappingService must be updated
* if not null with any attribute->property mappings.
*
* @param viewBase the source object in the source
* @param tagElement
* @return a new view object or null if we can't do so
*/
public abstract ViewObject createViewObject(VIEW_DEFN_BASE_TYPE viewBase,
ITagElement tagElement);
}