Extension SDK 9.0.5

oracle.jdeveloper.jsp.libraries
Class JspLibraryManager

java.lang.Object
  extended byoracle.jdeveloper.jsp.libraries.JspLibraryManager

public class JspLibraryManager
extends java.lang.Object


Field Summary
static JspLibraryManager singleton
           
 
Method Summary
 void addJspLibraryListener(JspLibraryListener listener)
          Add a JspLibraryListener to the JspLibraryManager.
 void addLibrary(JspLibrary library)
          Add a JspLibrary to the current model.
 void addLibrary(java.lang.String classesURL, java.lang.String tldURL, java.lang.String uri, java.lang.String displayName, java.lang.String prefix)
          Add a JspLibrary to current model.
 void addLibrary(java.lang.String classesURL, java.lang.String tldURL, java.lang.String uri, java.lang.String displayName, java.lang.String prefix, java.lang.String libraries, boolean runInEditor)
          Add a JspLibrary to current model.
 void fireJspLibraryAdded(JspLibrary library)
           
 void fireJspLibraryRemoved(JspLibrary library)
           
static JspLibraryManager getInstance()
          Retrieve the current instance of the JspLibraryManager
 oracle.ideimpl.palette.model.Jsplibrary getJsplibrary(java.lang.String prefix)
          This method will only be used for deprecated purposes.
 java.util.Iterator getLibraries()
          Return all installed Tag Libraries
 JspLibrary getLibrary(java.lang.String prefix)
          Since a libraries prefix must be unique, we will use it to identify installed Tag Libraries.
 JspLibrary getLibraryFromURI(java.lang.String uri)
           
 java.lang.String getPrefixFromURI(java.lang.String uri)
           
 java.lang.String getURIFromPrefix(java.lang.String prefix)
           
 void removeJspLibraryListener(JspLibraryListener listener)
          Remove a JspLibraryListener from the JspLibraryManager.
 void removeLibrary(JspLibrary library)
          Remove a JspLibrary from the current model.
 void removeLibrary(java.lang.String uri)
          Remove a JspLibrary by it's Namespace
 void resetModel()
          Resets the current JspLibrary Model.
 void save()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

public static JspLibraryManager singleton
Method Detail

addJspLibraryListener

public void addJspLibraryListener(JspLibraryListener listener)
Add a JspLibraryListener to the JspLibraryManager.

Parameters:
listener - the listener to add.

removeJspLibraryListener

public void removeJspLibraryListener(JspLibraryListener listener)
Remove a JspLibraryListener from the JspLibraryManager.

Parameters:
listener - the listener to remove.

getInstance

public static JspLibraryManager getInstance()
Retrieve the current instance of the JspLibraryManager

Returns:
the current JspLibraryManager

save

public final void save()
                throws java.io.IOException
Throws:
java.io.IOException

resetModel

public final void resetModel()
Resets the current JspLibrary Model.


addLibrary

public final void addLibrary(JspLibrary library)
Add a JspLibrary to the current model.

Parameters:
library - JspLibrary to add.

removeLibrary

public final void removeLibrary(JspLibrary library)
Remove a JspLibrary from the current model.

Parameters:
library - JspLibrary to remove.

removeLibrary

public final void removeLibrary(java.lang.String uri)
Remove a JspLibrary by it's Namespace


addLibrary

public final void addLibrary(java.lang.String classesURL,
                             java.lang.String tldURL,
                             java.lang.String uri,
                             java.lang.String displayName,
                             java.lang.String prefix)
Add a JspLibrary to current model.

Parameters:
classesURL - The string representation of the the Archive URL.
tldURL - The string representation of the tldURL.
uri - The uri to be used for current library.
displayName - Name to display on the component palette.
prefix - The prefix of this tag library.

addLibrary

public final void addLibrary(java.lang.String classesURL,
                             java.lang.String tldURL,
                             java.lang.String uri,
                             java.lang.String displayName,
                             java.lang.String prefix,
                             java.lang.String libraries,
                             boolean runInEditor)
Add a JspLibrary to current model.

Parameters:
classesURL - The string representation of the the Archive URL.
tldURL - The string representation of the tldURL.
uri - The uri to be used for current library.
displayName - Name to display on the component palette.
prefix - The prefix of this tag library.
libraries - the libraries to add to project when dropped.
runInEditor - set to true to run in Visual Editor

getLibrary

public JspLibrary getLibrary(java.lang.String prefix)
Since a libraries prefix must be unique, we will use it to identify installed Tag Libraries.

Parameters:
prefix - Prefix of tag library.

getJsplibrary

public final oracle.ideimpl.palette.model.Jsplibrary getJsplibrary(java.lang.String prefix)
This method will only be used for deprecated purposes.

Parameters:
prefix -
Returns:
Jsplibrary

getLibraryFromURI

public final JspLibrary getLibraryFromURI(java.lang.String uri)

getLibraries

public java.util.Iterator getLibraries()
Return all installed Tag Libraries


getPrefixFromURI

public final java.lang.String getPrefixFromURI(java.lang.String uri)

getURIFromPrefix

public final java.lang.String getURIFromPrefix(java.lang.String prefix)

fireJspLibraryAdded

public void fireJspLibraryAdded(JspLibrary library)

fireJspLibraryRemoved

public void fireJspLibraryRemoved(JspLibrary library)

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.