Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2010-11-02 16:43:58 -0400
committerpelder2010-11-02 16:43:58 -0400
commit4c6c9ff3bb1d821f73ed3c3703c545a99d6c07fc (patch)
tree7b53d650e546f121613c0e080ea89f3789f177b2 /transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet
parent15ccba1e74a55349bdce44c7e99858795f7925b1 (diff)
downloadorg.eclipse.jet-201011021646.tar.gz
org.eclipse.jet-201011021646.tar.xz
org.eclipse.jet-201011021646.zip
This commit was manufactured by cvs2svn to create tag 'v201011021646'.v201011021646
Diffstat (limited to 'transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet')
-rw-r--r--transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet56
1 files changed, 0 insertions, 56 deletions
diff --git a/transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet b/transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet
deleted file mode 100644
index f5e17fd..0000000
--- a/transforms/org.eclipse.jet.transforms.tagfactory/templates/tagLibrary/tagFactory.java.jet
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- *
- * Copyright (c) <f:formatNow pattern="yyyy"/> IBM 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:
- * IBM - Initial API and implementation
- *
- */
-package <c:get select="$tagLibrary/@pkgFactory"/>;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jet.taglib.CustomTag;
-import org.eclipse.jet.taglib.JET2TagException;
-import org.eclipse.jet.taglib.TagInstanceFactory;
-
-/**
- * Tag Factory for <c:get select="$tagLibrary/@id"/>
- */
-public class <c:get select="$tagLibrary/@clsFactory"/> implements TagInstanceFactory
-{
-
- private final Map tagOrdinalByName;
-
- /**
- *
- */
- public <c:get select="$tagLibrary/@clsFactory"/>()
- {
- tagOrdinalByName = new HashMap(<c:get select="$tagLibrary/@numTags"/>);
-
-<c:iterate select="$tagLibrary/*['Tag' = substring(local-name(), string-length(local-name()) - 2, 3)]" var="tag">
- tagOrdinalByName.put("<c:get select="$tag/@name"/>",new Integer(<c:get select="$tag/@ordinal"/>)); //$NON-NLS-1$
-</c:iterate>
- }
-
- public CustomTag createCustomTag(String name)
- {
- Integer ordinal = (Integer)tagOrdinalByName.get(name);
-
- switch(ordinal == null ? 0 : ordinal.intValue()) {
-<c:iterate select="$tagLibrary/*['Tag' = substring(local-name(), string-length(local-name()) - 2, 3)]" var="tag">
- case <c:get select="$tag/@ordinal"/>: // <c:get select="$tag/@name"/>
- return new <c:get select="$tag/@class"/>();
-</c:iterate>
- default:
- throw new JET2TagException("Unknown Tag: " + name); //$NON-NLS-1$
- }
- }
-
-}

Back to the top