public final class AddinLibrary extends AbstractLibrary implements ExtensionLibrary, EndorsedStandardsOverride, oracle.javatools.exports.library.ExportLibrary
This class is misnamed for historical reasons. It is not related to
Addins.
Thread Safety: instances of this class are immutable, and
can be used safely from multiple threads. A copy is taken of the
(mutable) URLPath objects passed into the constructor, and these
effectively immutable copies are always returned by getClassPath(),
getSourcePath(), and getDocPath().
DEPLOYED_BY_DEFAULT_PROPERTYLIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY| Constructor and Description |
|---|
AddinLibrary(oracle.javatools.exports.library.FileExportLibrary library) |
AddinLibrary(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed) |
AddinLibrary(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension) |
AddinLibrary(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension,
java.lang.Boolean hidden) |
AddinLibrary(java.lang.String name,
URLPath classPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension,
java.lang.Boolean hidden,
URLPath endorsedDirs,
URLPath endorsedSrcPath,
URLPath endorsedDocPath) |
AddinLibrary(java.net.URL origin,
java.lang.String name,
URLPath classPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension,
java.lang.Boolean hidden,
URLPath endorsedDirs,
URLPath endorsedSrcPath,
URLPath endorsedDocPath) |
| Modifier and Type | Method and Description |
|---|---|
URLPath |
getClassPath() |
JLibraryDefinition |
getDefaultLibraryDefinition()
Deprecated.
JDK based versions desupported. Use JLibrary directly.
|
java.util.Collection<oracle.javatools.exports.library.LibraryDependency> |
getDependencies() |
java.lang.Boolean |
getDeployedByDefault() |
java.lang.String |
getDescription() |
URLPath |
getDocPath() |
URLPath |
getEndorsedStandardsDirectories()
Get the endorsed standards override directories associated with this
library.
|
URLPath |
getEndorsedStandardsDocPath()
Get the doc path for the endorsed standards override associated with this
library.
|
URLPath |
getEndorsedStandardsSourcePath()
Get the source path for the endorsed standards override associated with
this library.
|
java.util.Map<java.lang.String,java.util.List<java.net.URL>> |
getExportSpecificationPaths() |
boolean |
getForceExtensionInitialization()
Determine whether or not the extension that provided the library
should be initialized if the library is referenced.
|
javax.swing.Icon |
getIcon()
This implementation returns a plain document icon.
|
java.lang.String |
getId() |
JLibraryDefinition |
getLibraryDefinition(VersionNumber jdkVer)
Deprecated.
JDK based versions desupported. Use JLibrary directly.
|
java.lang.String |
getLongLabel()
This implementation delegates to
DefaultDisplayable.getShortLabel(). |
java.lang.String |
getName() |
java.net.URL |
getOrigin() |
java.lang.String |
getProviderExtensionId()
Get the id of the extension that provided this library,
may be
null. |
java.util.List<java.net.URL> |
getRemediationCommentsPaths() |
java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> |
getResolvedClassPath() |
java.util.Map<java.lang.String,java.lang.String> |
getResolvedRemediationComments() |
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String. |
URLPath |
getSourcePath() |
java.util.Set<oracle.javatools.exports.library.ClassPathEntry> |
getSuppliedClassPath() |
boolean |
isHidden()
Whether the library should be hidden from the user.
|
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
void |
setClassPath(URLPath clsPath) |
void |
setDefaultClassPath(URLPath clsPath)
Deprecated.
|
void |
setDefaultDocPath(URLPath docPath)
Deprecated.
|
void |
setDefaultSourcePath(URLPath srcPath)
Deprecated.
|
void |
setDeployedByDefault(java.lang.Boolean deployed) |
void |
setDocPath(URLPath docPath) |
void |
setLocked(boolean isLocked) |
void |
setName(java.lang.String name) |
void |
setSourcePath(URLPath srcPath) |
copyToImpl, equals, equalsImpl, equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary, isDirty, isLockedgetAttributes, getChildren, getData, mayHaveChildrengetToolTipText, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrarygetAttributedLabel, getToolTipText, toStringpublic AddinLibrary(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed)
public AddinLibrary(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension)
public AddinLibrary(java.lang.String name,
URLPath clsPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension,
java.lang.Boolean hidden)
public AddinLibrary(java.lang.String name,
URLPath classPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension,
java.lang.Boolean hidden,
URLPath endorsedDirs,
URLPath endorsedSrcPath,
URLPath endorsedDocPath)
public AddinLibrary(java.net.URL origin,
java.lang.String name,
URLPath classPath,
URLPath srcPath,
URLPath docPath,
java.lang.Boolean deployed,
java.lang.Boolean forceExtInit,
java.lang.String providerExtension,
java.lang.Boolean hidden,
URLPath endorsedDirs,
URLPath endorsedSrcPath,
URLPath endorsedDocPath)
public AddinLibrary(oracle.javatools.exports.library.FileExportLibrary library)
public java.net.URL getOrigin()
getOrigin in interface oracle.javatools.exports.library.ExportLibrarypublic java.lang.String getProviderExtensionId()
ExtensionLibrarynull.getProviderExtensionId in interface ExtensionLibrarynullpublic java.lang.String getId()
getId in interface oracle.javatools.exports.library.ExportLibrarypublic java.lang.String getName()
public java.lang.String getDescription()
getDescription in interface oracle.javatools.exports.library.ExportLibrarypublic java.lang.Boolean getDeployedByDefault()
throws AttributeMarker
getDeployedByDefault in interface JLibraryAttributeMarkerpublic boolean isHidden()
ExtensionLibraryisHidden in interface ExtensionLibrarytrue if this library is hidden from the user,
false otherwisepublic boolean getForceExtensionInitialization()
ExtensionLibrarygetForceExtensionInitialization in interface ExtensionLibrarytrue if the extension should be initialized;
false otherwisepublic URLPath getClassPath()
getClassPath in interface JPathspublic java.util.Set<oracle.javatools.exports.library.ClassPathEntry> getSuppliedClassPath()
getSuppliedClassPath in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.Collection<oracle.javatools.exports.library.ClassPathEntry> getResolvedClassPath()
getResolvedClassPath in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.Map<java.lang.String,java.util.List<java.net.URL>> getExportSpecificationPaths()
getExportSpecificationPaths in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.List<java.net.URL> getRemediationCommentsPaths()
getRemediationCommentsPaths in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.Map<java.lang.String,java.lang.String> getResolvedRemediationComments()
getResolvedRemediationComments in interface oracle.javatools.exports.library.ExportLibrarypublic java.util.Collection<oracle.javatools.exports.library.LibraryDependency> getDependencies()
getDependencies in interface oracle.javatools.exports.library.ExportLibrarypublic URLPath getSourcePath()
getSourcePath in interface JPathspublic URLPath getDocPath()
getDocPath in interface JPathspublic URLPath getEndorsedStandardsDirectories()
EndorsedStandardsOverridegetEndorsedStandardsDirectories in interface EndorsedStandardsOverridepublic URLPath getEndorsedStandardsSourcePath()
EndorsedStandardsOverridegetEndorsedStandardsSourcePath in interface EndorsedStandardsOverridepublic URLPath getEndorsedStandardsDocPath()
EndorsedStandardsOverridegetEndorsedStandardsDocPath in interface EndorsedStandardsOverridepublic java.lang.String getShortLabel()
DefaultDisplayableString.getShortLabel in interface DisplayablegetShortLabel in class AbstractLibraryDisplayable
that can be shown to the user.Displayable.getShortLabel()public java.lang.String getLongLabel()
DefaultDisplayableDefaultDisplayable.getShortLabel().getLongLabel in interface DisplayablegetLongLabel in class DefaultDisplayableDisplayable that
can be shown to the user.Displayable.getLongLabel()public javax.swing.Icon getIcon()
DefaultDisplayablegetIcon in interface DisplayablegetIcon in class AbstractLibraryIcon to be displayed for the
Displayable.Displayable.getIcon()@Deprecated public JLibraryDefinition getDefaultLibraryDefinition()
getDefaultLibraryDefinition in interface JLibrary@Deprecated public JLibraryDefinition getLibraryDefinition(VersionNumber jdkVer)
getLibraryDefinition in interface JLibrarypublic void setDeployedByDefault(java.lang.Boolean deployed)
setDeployedByDefault in interface JLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.public void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.markDirty in interface DirtyablemarkDirty in class AbstractLibrarydirty - If true, sets the object as being
dirty; if false, sets the object as being up-to-date.java.lang.UnsupportedOperationException - instances of this class are
immutable.public void setClassPath(URLPath clsPath)
setClassPath in interface JPathssetClassPath in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.@Deprecated public void setDefaultClassPath(URLPath clsPath)
setDefaultClassPath in interface LibrarysetDefaultClassPath in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.@Deprecated public void setDefaultDocPath(URLPath docPath)
setDefaultDocPath in interface LibrarysetDefaultDocPath in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.@Deprecated public void setDefaultSourcePath(URLPath srcPath)
setDefaultSourcePath in interface LibrarysetDefaultSourcePath in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.public void setDocPath(URLPath docPath)
setDocPath in interface JPathssetDocPath in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.public void setLocked(boolean isLocked)
setLocked in interface JPathssetLocked in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.public void setName(java.lang.String name)
setName in interface LibrarysetName in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.public void setSourcePath(URLPath srcPath)
setSourcePath in interface JPathssetSourcePath in class AbstractLibraryjava.lang.UnsupportedOperationException - instances of this class are
immutable.