IJspDocument Interface
- public interface IJspDocument
extends IDOMDocument
Interface for performing JSP specific manipulations on a JSP document.
-
All Superinterfaces
-
IDOMDocument, IDOMNode
Methods from interface com.bea.ide.lang.jsp.IDOMDocument |
beginEdit, createCompatibleDocument, createElement, createNode, createTextNode, endEdit, getDocumentURI, getElementsByTagName, getSelectedNode, importNode, selectNode |
Methods from interface com.bea.ide.lang.jsp.IDOMNode |
appendChild, decodeNodeValue, encodeNodeValue, getChildCount, getChildNode, getFirstChild, getLastChild, getNodeName, getNodeValue, getOwnerDocument, getParentNode, insertAfter, insertBefore, isReadOnly, matches, nextSibling, normalize, previousSibling, reformat, removeChild, setNodeValue |
addTaglibDirective(TagLibraryInfo) Method
public IJspTaglibDirective addTaglibDirective(TagLibraryInfo tli)
Adds a <%@taglib directive that refers to the document if there
is not one there already.
If there is already a <%@taglib directive on the page which
refers to the specified TagLibraryInfo then this method will
return the IJspTaglibDirective which is already present.
Otherwise a new IJspTaglibDirective is added to the document, below
the tag library directives which are already there. The prefix of the newly added
tag library will be chosen so as not to conflict with any taglib directives which
are already there. It defaults to the "shortname" attribute from the tag library,
but it may have a number appended to the end of it to ensure uniqueness within the document.
Parameters
-
tli
- TagLibraryInfo which the new directive should point to
Returns
- newly added taglib directive, or the existing one that refers to
tli
getTaglibDirectiveFromPrefix(String) Method
public IJspTaglibDirective getTaglibDirectiveFromPrefix(String strPrefix)
Returns the IJspTaglibDirective on the page which has the specified prefix.
Parameters
-
strPrefix
- prefix to look for
Returns
-
IJspTaglibDirective for the directive on the page which matches this prefix,
or null if there is no matching directive.