|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.jdeveloper.jsp.utils.JSPTagUtils
The JSPTagUtils class is a utility class to insert/remove tags and their associated
taglib declarations into the CodeEditor.
| Nested Class Summary | |
static class |
JSPTagUtils.JspLibraryComparator
|
| Method Summary | |
static void |
addArchive(JspLibrary jspLib,
Project prj)
Deprecated. use #updateProjectWithTagLibrary(JspLibrary , JProject) |
static void |
addArchive(JspLibrary jspLib,
java.net.URL _url,
Project prj)
Deprecated. use #updateProjectWithTagLibrary(JspLibrary, JProject) |
static void |
addTaglibDefinitionToActiveProject(java.lang.String uri,
java.lang.String archiveLocation)
Deprecated. |
static void |
addTagLibMap(Project prj,
oracle.jdeveloper.xml.j2ee.war.WebAppNode webAppNode,
java.lang.String taglibUri,
java.lang.String taglibLocation)
Inserts new explicit tag-lib entry in the web.xml file. |
static void |
addTld(JspLibrary jspLib,
Project prj)
Deprecated. use updateProjectWithTagLibrary() method to add tag library to the project. It will do all needed actions. |
static java.lang.String |
formatXMLString(java.lang.String xml)
Returns a properly formatted XMLDocument string. |
static JspLibrary |
getJspLibrary(java.lang.String libraryName)
Returns the latest version of the system tag library with the given name. |
static JspLibrary |
getJspLibrary(java.lang.String libraryName,
Project project)
If a tag library with given name is used in the project, returns that library. |
static JspLibrary |
getJspLibraryByPrefix(java.lang.String prefix,
Context context)
|
static JspLibrary |
getJspLibraryByURI(java.lang.String uri)
Returns the latest version of the system tag library with the given URI. |
static JspLibrary |
getJspLibraryByURI(java.lang.String uri,
Project project)
If a tag library with given URI is used in the project, returns that library. |
static java.io.InputStream |
getLibraryInputStream(java.lang.String tldURL)
Retrieve InputStream for Tag Library |
static java.lang.String |
getTaglib(java.lang.String prefix)
Deprecated. |
static java.net.URL |
getTaglibDescriptorArchiveURL(java.lang.String tldURL)
Returns URL of the archive file containing TLD file. |
static java.net.URL |
getTaglibDescriptorURL(java.lang.String tldURL)
Returns a URL pointing to the TLD file given by the tldURL. |
static java.util.Iterator |
getTagsInLibrary(JspLibrary jspLibrary)
Returns a list of all Tag Names in a given JspLibrary |
static java.net.URL |
getWebInfLibURL(Project project)
Returns the current WEB-INF/lib directory of the project. |
static java.net.URL |
getWebInfURL(Project project)
Returns the current WEB-INF directory of the project. |
static void |
insertAtPosition(java.lang.String str,
int position)
Deprecated. |
static void |
insertAtPosition(java.lang.String tag,
int position,
Node node)
Deprecated. |
static void |
insertTag(java.lang.String tag)
Deprecated. |
static void |
insertTagAndTaglib(java.lang.String tag,
java.lang.String taglib)
Deprecated. |
static void |
insertTaglib(JspLibrary jspLib)
Deprecated. use WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel ) |
static void |
insertTaglib(java.lang.String taglib)
Deprecated. HtmlLexerUtil removed, use WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel )
Inserts a taglib declaration into the CodeEditor (Note: Inserts at the top position) |
static void |
insertTaglib(java.lang.String taglib,
Node node)
Deprecated. HtmlLexerUtil removed, use WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel ) |
static void |
insertTaglib(java.lang.String uri,
java.lang.String prefix)
Deprecated. use WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel ) |
static void |
insertTaglib(java.lang.String uri,
java.lang.String prefix,
Node node)
Deprecated. use WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel ) |
static void |
removeTagLibMap(oracle.jdeveloper.xml.j2ee.war.WebAppNode webAppNode,
java.lang.String taglibUri)
Removes explicit tag-lib entry from the web.xml file. |
static boolean |
unregisterTagLibrary(Context context,
java.lang.String libraryName)
Deprecated. |
static void |
updateProjectWithTagLibraries(JspLibrary[] jspLibs,
Project project)
|
static void |
updateProjectWithTagLibrary(JspLibrary jspLib,
Project project)
Updates project with the current Jsplibrary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final java.net.URL getWebInfURL(Project project)
project - The current project
public static final java.net.URL getWebInfLibURL(Project project)
project - The current project
public static final JspLibrary getJspLibrary(java.lang.String libraryName)
libraryName -
public static final JspLibrary getJspLibrary(java.lang.String libraryName,
Project project)
libraryName - project -
public static final JspLibrary getJspLibraryByURI(java.lang.String uri)
uri -
public static final JspLibrary getJspLibraryByURI(java.lang.String uri,
Project project)
uri - project -
public static final JspLibrary getJspLibraryByPrefix(java.lang.String prefix,
Context context)
public static java.util.Iterator getTagsInLibrary(JspLibrary jspLibrary)
jspLibrary - JspLibrary to search
public static java.net.URL getTaglibDescriptorURL(java.lang.String tldURL)
public static java.io.InputStream getLibraryInputStream(java.lang.String tldURL)
public static java.net.URL getTaglibDescriptorArchiveURL(java.lang.String tldURL)
public static final void updateProjectWithTagLibrary(JspLibrary jspLib,
Project project)
jspLib - - the Jsplibary to add to projectproject - - the project to add Jsplibrary to.
public static final void updateProjectWithTagLibraries(JspLibrary[] jspLibs,
Project project)
public static final void addTld(JspLibrary jspLib,
Project prj)
jspLib - The JSP Tag Library to add to the projectprj - The project to update.
public static boolean unregisterTagLibrary(Context context,
java.lang.String libraryName)
public static void addArchive(JspLibrary jspLib,
Project prj)
#updateProjectWithTagLibrary(JspLibrary , JProject)
public static void addArchive(JspLibrary jspLib,
java.net.URL _url,
Project prj)
#updateProjectWithTagLibrary(JspLibrary, JProject)
public static void addTaglibDefinitionToActiveProject(java.lang.String uri,
java.lang.String archiveLocation)
public static void addTagLibMap(Project prj,
oracle.jdeveloper.xml.j2ee.war.WebAppNode webAppNode,
java.lang.String taglibUri,
java.lang.String taglibLocation)
public static void removeTagLibMap(oracle.jdeveloper.xml.j2ee.war.WebAppNode webAppNode,
java.lang.String taglibUri)
public static final java.lang.String getTaglib(java.lang.String prefix)
public static void insertTagAndTaglib(java.lang.String tag,
java.lang.String taglib)
tag - Tag to insert. (Note: Uses the caretposition )taglib - Taglib to insert. (Note: Will insert at the top position)public static void insertTag(java.lang.String tag)
tag - The tag to insert.
public static final void insertTaglib(java.lang.String uri,
java.lang.String prefix,
Node node)
WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel )
public static final void insertTaglib(java.lang.String uri,
java.lang.String prefix)
WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel )
public static final void insertTaglib(java.lang.String taglib,
Node node)
WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel )
public static final void insertTaglib(java.lang.String taglib)
WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel )
Inserts a taglib declaration into the CodeEditor (Note: Inserts at the top position)
taglib - taglib to insertpublic static void insertTaglib(JspLibrary jspLib)
WebDocumentUtil#addTagLibrary( JspLibrary, JProject, AbstractModel )
jspLib - JspLibrary to build declaration from
public static void insertAtPosition(java.lang.String tag,
int position,
Node node)
public static void insertAtPosition(java.lang.String str,
int position)
str - String to insertposition - int position to insert text atpublic static final java.lang.String formatXMLString(java.lang.String xml)
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.