org.fife.rsta.ac.jsp.TldFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagesupport Show documentation
Show all versions of languagesupport Show documentation
A library adding code completion and other advanced features for Java, JavaScript, Perl, and other languages to RSyntaxTextArea.
/*
* 07/05/2011
*
* Copyright (C) 2011 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* RSTALanguageSupport.License.txt file for details.
*/
package org.fife.rsta.ac.jsp;
import java.io.*;
import java.util.*;
import java.util.jar.*;
import javax.xml.parsers.*;
import org.fife.rsta.ac.jsp.TldAttribute.TldAttributeParam;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
/**
* A TLD.
*
* @author Robert Futrell
* @version 1.0
*/
public class TldFile {
private JspCompletionProvider provider;
private File jar;
private List tldElems;
public TldFile(JspCompletionProvider provider, File jar)
throws IOException {
this.provider = provider;
this.jar = jar;
tldElems = loadTldElems();
}
public List getAttributesForTag(String tagName) {
for (int i=0; i