| /******************************************************************************* |
| * Copyright (c) 2001, 2007 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.metadataprocessors; |
| |
| import org.eclipse.jst.jsf.common.metadata.Entity; |
| import org.eclipse.jst.jsf.common.metadata.Trait; |
| |
| /** |
| * Binds tag library context to the metadata context |
| */ |
| public class TaglibMetadataContext extends MetaDataContext { |
| |
| private String uri; |
| private String tagName; |
| private String attributeName; |
| |
| /** |
| * Constructor |
| * |
| * @param uri - must not be null |
| * @param tagName - must not be null |
| * @param attributeName - may be null |
| * @param entity - the metadata entity represented by the tag or attribute |
| * @param trait - the metadata trait of interest |
| */ |
| public TaglibMetadataContext(String uri, String tagName, String attributeName, Entity entity, Trait trait){ |
| super(entity, trait); |
| this.uri = uri; |
| this.tagName = tagName; |
| this.attributeName = attributeName; |
| } |
| |
| /** |
| * @return URI |
| */ |
| public String getUri() { |
| return uri; |
| } |
| |
| /** |
| * @return Tag name - should not be null |
| */ |
| public String getTagName() { |
| return tagName; |
| } |
| |
| /** |
| * @return Attribute name - may be null |
| */ |
| public String getAttributeName() { |
| return attributeName; |
| } |
| |
| |
| } |