Package org.fife.rsta.ac.jsp
Class TldFile
- java.lang.Object
-
- org.fife.rsta.ac.jsp.TldFile
-
public class TldFile extends java.lang.ObjectA TLD.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filejarprivate JspCompletionProviderproviderprivate java.util.List<TldElement>tldElems
-
Constructor Summary
Constructors Constructor Description TldFile(JspCompletionProvider provider, java.io.File jar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.fife.ui.autocomplete.ParameterizedCompletion.Parameter>getAttributesForTag(java.lang.String tagName)Returns the attributes for a tag.private java.lang.StringgetChildText(org.w3c.dom.Node elem)TldElementgetElement(int index)Returns an element.intgetElementCount()Returns the number of elements.private java.util.List<TldElement>loadTldElems()private java.util.List<TldElement>parseTld(java.io.InputStream in)
-
-
-
Field Detail
-
provider
private JspCompletionProvider provider
-
jar
private java.io.File jar
-
tldElems
private java.util.List<TldElement> tldElems
-
-
Constructor Detail
-
TldFile
public TldFile(JspCompletionProvider provider, java.io.File jar) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getAttributesForTag
public java.util.List<org.fife.ui.autocomplete.ParameterizedCompletion.Parameter> getAttributesForTag(java.lang.String tagName)
Returns the attributes for a tag.- Parameters:
tagName- The tag to look up.- Returns:
- The attributes for the tag, or
nullif none.
-
getChildText
private java.lang.String getChildText(org.w3c.dom.Node elem)
-
getElement
public TldElement getElement(int index)
Returns an element.- Parameters:
index- The index of the element.- Returns:
- The element.
- See Also:
getElementCount()
-
getElementCount
public int getElementCount()
Returns the number of elements.- Returns:
- The element count.
- See Also:
getElement(int)
-
loadTldElems
private java.util.List<TldElement> loadTldElems() throws java.io.IOException
- Throws:
java.io.IOException
-
parseTld
private java.util.List<TldElement> parseTld(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
-