JxTaglib.java :  » Development » jXLS-0.9.9 » net » sf » jxls » tag » Java Open Source

Java Open Source » Development » jXLS 0.9.9 
jXLS 0.9.9 » net » sf » jxls » tag » JxTaglib.java
package net.sf.jxls.tag;

import java.util.HashMap;
import java.util.Map;

/**
 * Defines mapping between java class files and jx tag names
 * @author Leonid Vysochyn
 */
public class JxTaglib implements TagLib {
    static String[] tagName = new String[]{ "forEach", "if", "outline", "out"};
    static String[] tagClassName = new String[]{ "net.sf.jxls.tag.ForEachTag", "net.sf.jxls.tag.IfTag", "net.sf.jxls.tag.OutlineTag", "net.sf.jxls.tag.OutTag" };

    static Map tags = new HashMap();

    static{
        for (int i = 0; i < tagName.length; i++) {
            String key = tagName[i];
            String value = tagClassName[i];
            tags.put( key, value );
        }
    }

    public Map getTags(){
        return tags;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.