Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b1617db1c253dd44cf32e463ab0a3e14afc5ea0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * 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.view.model.common.ITagElement;
import org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDElementDeclaration;

/**
 * This a fallback strategy that always creates an element for a tld decl.  This
 * can be tacked to the end of a composite strategy (or used alone) to ensure
 * that a basic ITagElement is always created for a TLDElementDeclaration.
 * 
 * @author cbateman
 *
 */
public class UnresolvedJSPTagResolvingStrategy extends JSPTagResolvingStrategy
{
    /**
     * the identifier of this strategy
     */
    public final static String ID = "org.eclipse.jst.jsf.designtime.UnresolvedJSPTagResolvingStrategy";
    /**
     * the displayable name
     */
    public final static String DISPLAY_NAME = "Unresolved Tag Resolver";

    @Override
    public String getId()
    {
        return ID;
    }

    public String getDisplayName()
    {
        return DISPLAY_NAME;
    }

    @Override
    public ITagElement resolve(TLDElementDeclaration element)
    {
        // just create a tag element
        return new TLDTagElement(element);
    }

}

Back to the top