blob: 3704a4613bb164eb69541202b96457d0e8cea73a [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.model.jsp;
import org.eclipse.jst.jsf.common.runtime.internal.model.component.ComponentTypeInfo;
import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IComponentTagElement;
import org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDElementDeclaration;
/**
* A TLD-defined tag (i.e. JSP) that maps one-to-one with a JSF UIComponent
* @author cbateman
*
*/
public class TLDComponentTagElement extends TLDJSFTagElement implements
IComponentTagElement
{
/**
*
*/
private static final long serialVersionUID = -6479445622102799425L;
private final ComponentTypeInfo _componentTypeInfo;
/**
* @param elementDecl
* @param componentTypeInfo
*/
public TLDComponentTagElement(final TLDElementDeclaration elementDecl, final ComponentTypeInfo componentTypeInfo)
{
super(elementDecl);
_componentTypeInfo = componentTypeInfo;
}
public ComponentTypeInfo getComponent()
{
return _componentTypeInfo;
}
@Override
public TagType getType()
{
return TagType.COMPONENT;
}
@Override
public String toString()
{
return _componentTypeInfo.toString();
}
}