/******************************************************************************* * 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.internal.policy.IIdentifiable; import org.eclipse.jst.jsf.common.internal.policy.IIteratorPolicy; import org.eclipse.jst.jsf.common.internal.strategy.IteratorPolicyBasedStrategyComposite; import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagElement; import org.eclipse.jst.jsf.designtime.internal.Messages; /** * @author cbateman * * @param <TLDELEMENT> */ public class CompositeTagResolvingStrategy<TLDELEMENT> extends IteratorPolicyBasedStrategyComposite<TLDELEMENT, ITagElement, ITagElement, String, ITagResolvingStrategy<TLDELEMENT, String>> implements IIdentifiable<String>, ITagResolvingStrategy<TLDELEMENT, String> { private static final String ID = "org.eclipse.jst.jsf.designtime.CompositeTagResolvingStrategy"; //$NON-NLS-1$ /** * @param policy * */ public CompositeTagResolvingStrategy(final IIteratorPolicy<String> policy) { super(policy); } public final String getId() { return ID; } public final String getDisplayName() { return Messages.CompositeTagResolvingStrategy_DisplayName; } @Override public ITagElement getNoResult() { return null; } public final ITagElement getNotFoundIndicator() { return getNoResult(); } public final ITagElement resolve(TLDELEMENT element) { return perform(element); } }