Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/AttributeHandlerMapAdapter.java191
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ComponentTag.java76
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ConverterTag.java62
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletAttribute.java59
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java214
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletTag.java96
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/HandlerTag.java56
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/IFaceletTagConstants.java149
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/Messages.java42
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/NoArchetypeFaceletTag.java31
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/SourceTag.java40
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ValidatorTag.java53
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/messages.properties2
13 files changed, 0 insertions, 1071 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/AttributeHandlerMapAdapter.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/AttributeHandlerMapAdapter.java
deleted file mode 100644
index d699df228..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/AttributeHandlerMapAdapter.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Oracle Corporation.
- * 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:
- * Cameron Bateman - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.io.Serializable;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicBoolean;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagAttributeHandler;
-import org.eclipse.jst.jsf.core.internal.JSFCorePlugin;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor.UnknownAttributeException;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.TagInfo;
-import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclaration;
-import org.eclipse.wst.xml.core.internal.contentmodel.CMNode;
-
-/**
- * TODO: merge back with common elements of AttributeHandlerMapAdapter
- *
- * Adapts TLDDocument attributes to a simple map of ITagAttributeHandler. Map is
- * unmodifiable.
- *
- * @author cbateman
- *
- */
-public class AttributeHandlerMapAdapter implements
- Map<String, ITagAttributeHandler>, Serializable
-{
- /**
- *
- */
- private static final long serialVersionUID = -6052662048278098351L;
- private transient final IAttributeAdvisor _advisor;
- private transient AtomicBoolean _isInitialized = new AtomicBoolean(
- false);
- private final transient TagInfo _tagInfo;
- private final Map<String, ITagAttributeHandler> _cache;
- private final String _tagName;
-
- /**
- * @param tagInfo
- * @param advisor
- * @param tagName
- */
- public AttributeHandlerMapAdapter(final TagInfo tagInfo,
- final IAttributeAdvisor advisor, final String tagName)
- {
- _tagInfo = tagInfo;
- _advisor = advisor;
- _tagName = tagName;
- _cache = new HashMap<String, ITagAttributeHandler>();
- }
-
- public boolean containsKey(final Object key)
- {
- ensureAllAttributes();
- return _cache.containsKey(key);
- }
-
- public boolean containsValue(final Object value)
- {
- ensureAllAttributes();
- return _cache.containsValue(value);
- }
-
- public Set<java.util.Map.Entry<String, ITagAttributeHandler>> entrySet()
- {
- ensureAllAttributes();
- return _cache.entrySet();
- }
-
- public ITagAttributeHandler get(final Object key)
- {
- if (key instanceof String)
- {
- return getOrCreateAttribute((String) key);
- }
- return null;
- }
-
- public boolean isEmpty()
- {
- return size() == 0;
- }
-
- public Set<String> keySet()
- {
- ensureAllAttributes();
- return Collections.unmodifiableSet(_cache.keySet());
- }
-
- public int size()
- {
- if (_tagInfo != null)
- {
- return _tagInfo.getAttributes(_tagName).getLength();
- }
- return _cache.size();
- }
-
- public Collection<ITagAttributeHandler> values()
- {
- ensureAllAttributes();
- return Collections.unmodifiableCollection(_cache.values());
- }
-
- private synchronized ITagAttributeHandler getOrCreateAttribute(
- final String name)
- {
- ITagAttributeHandler tagAttr = _cache.get(name);
-
- if (tagAttr == null)
- {
- try
- {
- tagAttr = _advisor.createAttributeHandler(name);
- _cache.put(name, tagAttr);
- }
- catch (final UnknownAttributeException e)
- {
- JSFCorePlugin.log(e, "Trying to get attribute for " + name); //$NON-NLS-1$
- }
- }
-
- return tagAttr;
- }
-
- private void ensureAllAttributes()
- {
- if (_isInitialized.compareAndSet(false, true))
- {
- for (final Iterator<?> it = _tagInfo.getAttributes(_tagName)
- .iterator(); it.hasNext();)
- {
- final CMNode attrDecl = (CMAttributeDeclaration) it.next();
- getOrCreateAttribute(attrDecl.getNodeName());
- }
- }
- }
-
- public void clear()
- {
- throw new UnsupportedOperationException("Cannot modify map"); //$NON-NLS-1$
- }
-
- public ITagAttributeHandler put(final String key,
- final ITagAttributeHandler value)
- {
- throw new UnsupportedOperationException("Cannot modify map"); //$NON-NLS-1$
- }
-
- public void putAll(
- final Map<? extends String, ? extends ITagAttributeHandler> t)
- {
- throw new UnsupportedOperationException("Cannot modify map"); //$NON-NLS-1$
- }
-
- public ITagAttributeHandler remove(final Object key)
- {
- throw new UnsupportedOperationException("Cannot modify map"); //$NON-NLS-1$
- }
-
- private void readObject(final ObjectInputStream in) throws IOException,
- ClassNotFoundException
- {
- in.defaultReadObject();
- _isInitialized = new AtomicBoolean(true);
- }
-
- private void writeObject(final ObjectOutputStream out) throws IOException
- {
- ensureAllAttributes();
- out.defaultWriteObject();
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ComponentTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ComponentTag.java
deleted file mode 100644
index 5e381fd9f..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ComponentTag.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-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.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-
-
-
-
-/**
- * A basic JSF component facelet tag element
- *
- * @author cbateman
- *
- */
-public class ComponentTag extends FaceletTag implements IComponentTagElement
-{
- /**
- *
- */
- private static final long serialVersionUID = -7457091811357699617L;
- private final ComponentTypeInfo _typeInfo;
-
-// public ComponentTag(final String uri, final String name, final String componentType)
-// {
-// // renderType and handlerClass are (?) in the dtd
-// this(uri, name, componentType, null);
-// }
-
- /**
- * @param uri
- * @param name
- * @param typeInfo
- * @param handlerClass
- * @param factory
- * @param advisor
- */
- public ComponentTag(final String uri,
- final String name,
- final ComponentTypeInfo typeInfo,
- final String handlerClass,
- final FaceletDocumentFactory factory,
- final IAttributeAdvisor advisor)
- {
- super(uri, name, TagType.COMPONENT, handlerClass, factory, advisor);
- _typeInfo = typeInfo;
- }
-
- @Override
- public String toString() {
- String toString = super.toString();
- toString += "; Component Type: " + _typeInfo.getComponentType(); //$NON-NLS-1$
-
- final String rendererType = _typeInfo.getRenderFamily();
- if (rendererType != null)
- {
- toString += "; Renderer Type: " + rendererType; //$NON-NLS-1$
- }
-
- final String handlerClass = getTagHandlerClassName();
- if (handlerClass != null)
- {
- toString += "; Handler Class: " + handlerClass; //$NON-NLS-1$
- }
-
- return toString;
- }
-
- public ComponentTypeInfo getComponent()
- {
- return _typeInfo;
- }
-
-
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ConverterTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ConverterTag.java
deleted file mode 100644
index 6c8b0158e..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ConverterTag.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.common.runtime.internal.model.decorator.ConverterTypeInfo;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IConverterTagElement;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-
-
-/**
- * A basic JSF converter facelet tag element
- *
- * @author cbateman
- *
- */
-public class ConverterTag extends FaceletTag implements IConverterTagElement
-{
- /**
- *
- */
- private static final long serialVersionUID = -5310748504219020605L;
- private final ConverterTypeInfo _converter;
-
- /**
- * @param uri
- * @param name
- * @param converter
- * @param handler
- * @param factory
- * @param advisor
- */
- public ConverterTag(final String uri, final String name, final ConverterTypeInfo converter, final String handler, final FaceletDocumentFactory factory,
- final IAttributeAdvisor advisor)
- {
- super(uri, name, TagType.CONVERTER, handler, factory, advisor);
- _converter = converter;
- }
-
- /**
- * @return the converter id
- */
- public ConverterTypeInfo getConverter()
- {
- return _converter;
- }
-
- @Override
- public String toString()
- {
- String toString = super.toString();
-
- toString += "Converter Id: "+getConverter()+"\n"; //$NON-NLS-1$ //$NON-NLS-2$
-
- if (getTagHandlerClassName() != null)
- {
- toString += "Handler Class: "+getTagHandlerClassName()+"\n"; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- return toString;
- }
-
-
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletAttribute.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletAttribute.java
deleted file mode 100644
index ebc6b6a00..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletAttribute.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.AbstractTagAttribute;
-import org.eclipse.jst.jsf.facelet.core.internal.registry.taglib.faceletTaglib.FaceletTaglibTagAttribute;
-
-/**
- * Adapts a FaceletTaglibTagAttribute to the ITagAttribute interface.
- *
- * @author cbateman
- *
- */
-public class FaceletAttribute extends AbstractTagAttribute
-{
-
- /**
- *
- */
- private static final long serialVersionUID = 5909354642079229663L;
-
- private final FaceletTaglibTagAttribute _attr;
-
- /**
- * @param attr
- */
- public FaceletAttribute(final FaceletTaglibTagAttribute attr)
- {
- _attr = attr;
- }
-
- @Override
- public String getName()
- {
- return _attr.getName();
- }
-
- @Override
- public String getTargetNamespace()
- {
- return null;
- }
-
- @Override
- public String getDescription()
- {
- return _attr.getDefaultDescription("\n"); //$NON-NLS-1$
- }
-
- @Override
- public String getDisplayName()
- {
- return _attr.getDefaultDescription("\n"); //$NON-NLS-1$
- }
-
- @Override
- public boolean isRequired()
- {
- return _attr.isRequired();
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java
deleted file mode 100644
index dcb211bf4..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java
+++ /dev/null
@@ -1,214 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import java.io.Serializable;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagElement;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.ITagResolvingStrategy;
-import org.eclipse.jst.jsf.facelet.core.internal.registry.IFaceletTagResolvingStrategy.TLDWrapper;
-import org.eclipse.jst.jsf.facelet.core.internal.registry.taglib.IFaceletTagRecord;
-import org.eclipse.jst.jsf.facelet.core.internal.registry.taglib.faceletTaglib.FaceletTaglibTag;
-
-/**
- * A description about a facelet tag library descriptor (facelet-taglib_1_0.dtd)
- *
- * @author cbateman
- *
- */
-public class FaceletNamespace extends
- org.eclipse.jst.jsf.common.runtime.internal.view.model.common.Namespace
-{
- /**
- *
- */
- private static final long serialVersionUID = 2133853120220947741L;
- /**
- * The namespace that this tag library is associated with
- */
- private final FaceletNamespaceData _data;
-
- /**
- * @param record
- * @param resolver
- */
- public FaceletNamespace(final IFaceletTagRecord record,
- final ITagResolvingStrategy<TLDWrapper, String> resolver)
- {
- _data = new TaglibFaceletNamespaceData(record, resolver);
- }
-
- @Override
- public String getDisplayName()
- {
- return _data.getDisplayName();
- }
-
- @Override
- public String getNSUri()
- {
- return _data.getUri();
- }
-
- @Override
- public Collection<? extends ITagElement> getViewElements()
- {
- return _data.getAllViewElements().values();
- }
-
- @Override
- public String toString()
- {
- return "Namespace: " + getNSUri() + "\n"; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- @Override
- public ITagElement getViewElement(final String name)
- {
- return _data.getViewElement(name);
- }
-
- @Override
- public boolean hasViewElements()
- {
- return _data.getNumTags() > 0;
- }
-
- @Override
- public boolean isInitialized()
- {
- return _data.isInitialized();
- }
-
- /**
- * Namespace data driven off a record.
- *
- */
- private static class TaglibFaceletNamespaceData extends
- FaceletNamespaceData
- {
- /**
- *
- */
- private static final long serialVersionUID = -562720162853425804L;
- private transient final IFaceletTagRecord _record;
- private transient final ITagResolvingStrategy<TLDWrapper, String> _resolver;
- private final Map<String, ITagElement> _tags;
-
- public TaglibFaceletNamespaceData(final IFaceletTagRecord record,
- final ITagResolvingStrategy<TLDWrapper, String> resolver)
- {
- _record = record;
- _tags = new HashMap<String, ITagElement>();
- _resolver = resolver;
- }
-
- @Override
- public synchronized Map<String, ITagElement> getAllViewElements()
- {
- if (!isInitialized())
- {
- for (final FaceletTaglibTag tagDefn : _record.getTags())
- {
- getViewElement(tagDefn.getTagName());
- }
- }
- return _tags;
- }
-
- @Override
- public synchronized ITagElement getViewElement(final String name)
- {
- final FaceletTaglibTag tagDefn = _record.getTag(name);
- if (tagDefn != null)
- {
- return getAndInitIfMissing(tagDefn);
- }
- return null;
- }
-
- private ITagElement getAndInitIfMissing(final FaceletTaglibTag tagDefn)
- {
- ITagElement tagElement = _tags.get(tagDefn.getTagName());
- if (tagElement == null)
- {
- tagElement = _resolver
- .resolve(new TLDWrapper(tagDefn, getUri()));
- _tags.put(tagDefn.getTagName(), tagElement);
- }
- return tagElement;
- }
-
- @Override
- public synchronized boolean isInitialized()
- {
- return _tags.size() == _record.getNumTags();
- }
-
- @Override
- public String getDisplayName()
- {
- return _record.getURI();
- }
-
- @Override
- public int getNumTags()
- {
- return _record.getNumTags();
- }
-
- @Override
- public String getUri()
- {
- return _record.getURI();
- }
- }
-
- /**
- * Encapsulates all the data for a TLDNamespace. Allows the model to be
- * separated from the Namespace interface for ease of serialization and
- * controlled subclassing.
- *
- */
- public abstract static class FaceletNamespaceData implements Serializable
- {
- /**
- *
- */
- private static final long serialVersionUID = 1697605990460247389L;
-
- /**
- * @return the displayb
- */
- public abstract String getDisplayName();
-
- /**
- * @return the number of tags
- */
- public abstract int getNumTags();
-
- /**
- * @return the namespace uri
- */
- public abstract String getUri();
-
- /**
- * @param name
- * @return the view element for name or null if not found.
- */
- public abstract ITagElement getViewElement(final String name);
-
- /**
- * May be long running since it will lazily calculate all unloaded tags.
- *
- * @return all view elements for this namespace
- */
- public abstract Map<String, ITagElement> getAllViewElements();
-
- /**
- * @return true if all elements have been lazily loaded
- */
- public abstract boolean isInitialized();
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletTag.java
deleted file mode 100644
index 8b8a4adcd..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletTag.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import java.util.Map;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IJSFTagElement;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.ITagAttribute;
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.TagElement;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.TagInfo;
-
-/**
- * A description of the a facelet tag
- *
- * @author cbateman
- *
- */
-public abstract class FaceletTag extends TagElement implements IJSFTagElement
-{
- /**
- *
- */
- private static final long serialVersionUID = 3027895246947365781L;
- private final String _uri;
- private final String _name;
- private final TagType _type;
- private final String _tagHandlerClass;
- private final AttributeHandlerMapAdapter _attributeHandlerMapAdapter;
- private final IAttributeAdvisor _advisor;
-
- /**
- * @param uri
- * @param name
- * @param type
- * @param tagHandlerClassName
- * @param docFactory
- * @param advisor
- */
- protected FaceletTag(final String uri, final String name,
- final TagType type, final String tagHandlerClassName,
- final FaceletDocumentFactory docFactory,
- final IAttributeAdvisor advisor)
- {
- _uri = uri;
- _name = name;
- _type = type;
- _tagHandlerClass = tagHandlerClassName;
- final TagInfo tagInfo = docFactory.getOrCreateExtraTagInfo(uri);
- _attributeHandlerMapAdapter = new AttributeHandlerMapAdapter(tagInfo, advisor, name);
- _advisor = advisor;
- }
-
- /**
- * @return the name of the tag
- */
- @Override
- public final String getName()
- {
- return _name;
- }
-
- public final TagType getType()
- {
- return _type;
- }
-
- @Override
- public String getUri()
- {
- return _uri;
- }
-
- @Override
- public String getTagHandlerClassName()
- {
- return _tagHandlerClass;
- }
-
- @Override
- public String toString()
- {
- return "Tag Name: " + getName() + "Tag Type: " + getType(); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- @Override
- public Map<?, ?> getAttributeHandlers()
- {
- return _attributeHandlerMapAdapter;
- }
-
- public Map<String, ? extends ITagAttribute> getAttributes()
- {
- return _advisor.getAttributes();
- }
-
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/HandlerTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/HandlerTag.java
deleted file mode 100644
index b2257c12e..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/HandlerTag.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.common.runtime.internal.view.model.common.IHandlerTagElement;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-
-
-/**
- * A basic handler tag that has no direct effect on creation of components,
- * converters or validators.
- *
- * @author cbateman
- *
- */
-public class HandlerTag extends FaceletTag
-{
- /**
- *
- */
- private static final long serialVersionUID = 8882557774865456522L;
- private final IHandlerTagElement.TagHandlerType _handlerType;
- /**
- * @param uri
- * @param name
- * @param handlerType
- * @param handlerClassName
- * @param factory
- * @param advisor
- */
- public HandlerTag(final String uri, final String name, final IHandlerTagElement.TagHandlerType handlerType,
- final String handlerClassName, final FaceletDocumentFactory factory,
- final IAttributeAdvisor advisor) {
- super(uri, name, TagType.HANDLER, handlerClassName, factory, advisor);
- _handlerType = handlerType;
- }
-
- /**
- * @return the handler type
- */
- public IHandlerTagElement.TagHandlerType getHandlerType()
- {
- return _handlerType;
- }
-
- @Override
- public String toString()
- {
- String toString = super.toString();
-
- toString += "Handler Class: " + getTagHandlerClassName() + "\n"; //$NON-NLS-1$ //$NON-NLS-2$
-
- return toString;
- }
-
-
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/IFaceletTagConstants.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/IFaceletTagConstants.java
deleted file mode 100644
index dd866477b..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/IFaceletTagConstants.java
+++ /dev/null
@@ -1,149 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.common.dom.TagIdentifier;
-import org.eclipse.jst.jsf.core.internal.tld.TagIdentifierFactory;
-
-/**
- * Common constants for Facelet ui tags.
- * @author cbateman
- *
- */
-public interface IFaceletTagConstants
-{
- /**
- * The JSF tag library uri
- */
- final static public String URI_JSF_FACELETS = "http://java.sun.com/jsf/facelets"; //$NON-NLS-1$
-
- /**
- * component tagname
- */
- final static public String TAG_COMPONENT = "component"; //$NON-NLS-1$
-
- /**
- * composition tagname
- */
- final static public String TAG_COMPOSITION = "composition"; //$NON-NLS-1$
- /**
- * debug tagname
- */
- final static public String TAG_DEBUG = "debug"; //$NON-NLS-1$
- /**
- * decorate tagname
- */
- final static public String TAG_DECORATE = "decorate"; //$NON-NLS-1$
- /**
- * define tagname
- */
- final static public String TAG_DEFINE = "define"; //$NON-NLS-1$
- /**
- * fragment tagname
- */
- final static public String TAG_FRAGMENT = "fragment"; //$NON-NLS-1$
- /**
- * include tagname
- */
- final static public String TAG_INCLUDE = "include"; //$NON-NLS-1$
- /**
- * insert tagname
- */
- final static public String TAG_INSERT = "insert"; //$NON-NLS-1$
- /**
- * param tagname
- */
- final static public String TAG_PARAM = "param"; //$NON-NLS-1$
-
- /**
- * remove tagname
- */
- final static public String TAG_REMOVE = "remove"; //$NON-NLS-1$
- /**
- * repeat tagname
- */
- final static public String TAG_REPEAT = "repeat"; //$NON-NLS-1$
-
- /**
- * TagIdentifier for COMPONENT
- */
- final static TagIdentifier TAG_IDENTIFIER_COMPONENT = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_COMPONENT);
- /**
- * TagIdentifier for COMPOSITE
- */
- final static TagIdentifier TAG_IDENTIFIER_COMPOSITION = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_COMPOSITION);
-
- /**
- * TagIdentifier for DEBUG
- */
- final static TagIdentifier TAG_IDENTIFIER_DEBUG = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_DEBUG);
-
- /**
- * TagIdentifier for DEBUG
- */
- final static TagIdentifier TAG_IDENTIFIER_DECORATE = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_DECORATE);
-
- /**
- * TagIdentifier for DEFINE
- */
- final static TagIdentifier TAG_IDENTIFIER_DEFINE = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_DEFINE);
-
- /**
- * TagIdentifier for FRAGMENT
- */
- final static TagIdentifier TAG_IDENTIFIER_FRAGMENT = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_FRAGMENT);
-
- /**
- * TagIdentifier for INCLUDE
- */
- final static TagIdentifier TAG_IDENTIFIER_INCLUDE = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_INCLUDE);
-
- /**
- * TagIdentifier for INCLUDE
- */
- final static TagIdentifier TAG_IDENTIFIER_INSERT = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_INSERT);
-
- /**
- * TagIdentifier for PARAM
- */
- final static TagIdentifier TAG_IDENTIFIER_PARAM = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_PARAM);
- /**
- * TagIdentifier for REPEAT
- */
- final static TagIdentifier TAG_IDENTIFIER_REMOVE = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_REMOVE);
- /**
- * TagIdentifier for REPEAT
- */
- final static TagIdentifier TAG_IDENTIFIER_REPEAT = TagIdentifierFactory
- .createJSPTagWrapper(
- URI_JSF_FACELETS,
- TAG_REPEAT);
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/Messages.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/Messages.java
deleted file mode 100644
index 7bebac44e..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/Messages.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Oracle Corporation.
- * 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:
- * Cameron Bateman - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * Externalizable string support.
- *
- * @author cbateman
- *
- */
-public final class Messages extends NLS
-{
- private static final String BUNDLE_NAME = "org.eclipse.jst.jsf.facelet.core.internal.tagmodel.messages"; //$NON-NLS-1$
- /**
- *
- */
- public static String FaceletTaglibWithLibraryClass_TAG_LIBRARY_TYPE_DESCRIPTION;
- /**
- *
- */
- public static String FaceletTaglibWithTags_TAG_LIBRARY_WITH_TAGS_TYPE_DESCRIPTION;
- static
- {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages()
- {
- // no instantiation
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/NoArchetypeFaceletTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/NoArchetypeFaceletTag.java
deleted file mode 100644
index 142ff3b3b..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/NoArchetypeFaceletTag.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-
-
-/**
- * A facelet tag with no information about it than its name
- *
- * @author cbateman
- *
- */
-public final class NoArchetypeFaceletTag extends FaceletTag {
-
- /**
- *
- */
- private static final long serialVersionUID = 4810723162936027305L;
-
- /**
- * @param uri
- * @param name
- * @param factory
- * @param advisor
- */
- public NoArchetypeFaceletTag(final String uri, final String name, final FaceletDocumentFactory factory,
- final IAttributeAdvisor advisor) {
- super(uri, name, TagType.HANDLER, null, factory, advisor);
- }
-
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/SourceTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/SourceTag.java
deleted file mode 100644
index 59365a693..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/SourceTag.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-
-
-/**
- * A facet "source" tag as defined in the dtd.
- *
- * @author cbateman
- *
- */
-public class SourceTag extends FaceletTag
-{
- /**
- *
- */
- private static final long serialVersionUID = 4648054050352065079L;
- private final String _source;
-
- /**
- * @param uri
- * @param name
- * @param source
- * @param factory
- * @param advisor
- */
- public SourceTag(final String uri, final String name, final String source, final FaceletDocumentFactory factory,
- final IAttributeAdvisor advisor) {
- super(uri, name, TagType.HANDLER, null, factory, advisor);
- _source = source;
- }
-
- /**
- * @return the source
- */
- public final String getSource() {
- return _source;
- }
-} \ No newline at end of file
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ValidatorTag.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ValidatorTag.java
deleted file mode 100644
index f64623c05..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/ValidatorTag.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.eclipse.jst.jsf.facelet.core.internal.tagmodel;
-
-import org.eclipse.jst.jsf.common.runtime.internal.model.decorator.ValidatorTypeInfo;
-import org.eclipse.jst.jsf.designtime.internal.view.model.jsp.IAttributeAdvisor;
-import org.eclipse.jst.jsf.facelet.core.internal.cm.FaceletDocumentFactory;
-
-
-/**
- *
- *
- */
-public class ValidatorTag extends FaceletTag
-{
- /**
- *
- */
- private static final long serialVersionUID = 3898280066837027347L;
- private final ValidatorTypeInfo _validatorTypeInfo;
-
- /**
- * @param name
- * @param uri
- * @param validatorTypeInfo
- * @param handlerClass
- * @param factory
- * @param advisor
- */
- public ValidatorTag(final String uri, final String name, final ValidatorTypeInfo validatorTypeInfo, final String handlerClass, final FaceletDocumentFactory factory,
- final IAttributeAdvisor advisor)
- {
- super(uri, name, TagType.VALIDATOR, handlerClass, factory, advisor);
- _validatorTypeInfo = validatorTypeInfo;
- }
- /**
- * @return the validator id
- */
- public ValidatorTypeInfo getValidatorId()
- {
- return _validatorTypeInfo;
- }
- @Override
- public String toString()
- {
- String toString = super.toString();
- toString += "Validator Id: "+getValidatorId()+"\n"; //$NON-NLS-1$ //$NON-NLS-2$
-
- if (getTagHandlerClassName() != null)
- {
- toString += "Handler Class: "+getTagHandlerClassName()+"\n"; //$NON-NLS-1$ //$NON-NLS-2$
- }
- return toString;
- }
-}
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/messages.properties b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/messages.properties
deleted file mode 100644
index 4fb97d1d3..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/messages.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-FaceletTaglibWithLibraryClass_TAG_LIBRARY_TYPE_DESCRIPTION=Facelet Tag Library With Library Class
-FaceletTaglibWithTags_TAG_LIBRARY_WITH_TAGS_TYPE_DESCRIPTION=Facelet Tag Library with Tag/Function Definitions

Back to the top