|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.xsp.context.DojoLibrary
com.ibm.xsp.context.BundleDojoLibrary
public class BundleDojoLibrary
Basic class for a Dojo Library contributed as a bundle.
| Constructor Summary | |
|---|---|
BundleDojoLibrary(org.osgi.framework.Bundle bundle,
java.lang.String versionTag,
java.lang.String prefix)
|
|
| Method Summary | |
|---|---|
boolean |
exists(java.lang.String path)
Check if a resource exists in the library. |
org.osgi.framework.Bundle |
getBundle()
|
protected DojoLibrary |
getDelegate(java.lang.String path)
|
protected DojoLibrary |
getDelegateUrl(java.lang.String url)
|
java.io.InputStream |
getFileInputStream(java.lang.String path)
Read a resource from the library. |
java.lang.String |
getPrefix()
|
java.lang.String |
getResourceUrl(java.lang.String path,
boolean optimize)
Encode the resource as a URL. |
com.ibm.xsp.core.Version |
getVersion()
Return the actual version of the library. |
java.lang.String |
getVersionTag()
Return the version of this library. |
boolean |
hasIbmModules()
Check if the dojo library also contain the IBM modules. |
boolean |
isDefaultIbmLibrary()
Check if the library is the default one for IBM classes. |
boolean |
isDefaultLibrary()
Check if the library is the default one. |
boolean |
useIbmLayers()
Check if the layers can be used. |
| Methods inherited from class com.ibm.xsp.context.DojoLibrary |
|---|
getCSSResources, getDojoResources, getVersionNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleDojoLibrary(org.osgi.framework.Bundle bundle,
java.lang.String versionTag,
java.lang.String prefix)
| Method Detail |
|---|
public org.osgi.framework.Bundle getBundle()
public java.lang.String getPrefix()
public boolean isDefaultLibrary()
DojoLibrary
isDefaultLibrary in class DojoLibrarypublic boolean isDefaultIbmLibrary()
DojoLibrary
isDefaultIbmLibrary in class DojoLibrarypublic com.ibm.xsp.core.Version getVersion()
DojoLibrary
getVersion in class DojoLibrarypublic java.lang.String getVersionTag()
DojoLibrary
getVersionTag in class DojoLibrary
public java.lang.String getResourceUrl(java.lang.String path,
boolean optimize)
DojoLibrary
getResourceUrl in class DojoLibraryprotected DojoLibrary getDelegateUrl(java.lang.String url)
public boolean exists(java.lang.String path)
DojoLibrary
exists in class DojoLibrary
public java.io.InputStream getFileInputStream(java.lang.String path)
throws java.io.IOException
DojoLibrary
getFileInputStream in class DojoLibraryjava.io.IOExceptionprotected DojoLibrary getDelegate(java.lang.String path)
public boolean hasIbmModules()
DojoLibrary
hasIbmModules in class DojoLibrarypublic boolean useIbmLayers()
DojoLibrary
useIbmLayers in class DojoLibrary
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||