public final class AddinLibrary extends AbstractLibrary implements ExtensionLibrary, EndorsedStandardsOverride
This class is misnamed for historical reasons. It is not related to
Addin
s.
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_PROPERTY
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTY
CLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY
Constructor and Description |
---|
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 clsPath,
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.lang.Boolean |
getDeployedByDefault() |
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.
|
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.
|
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.lang.String |
getProviderExtensionId()
Get the id of the extension that provided this library,
may be
null . |
java.lang.String |
getShortLabel()
This implementation returns a place-holder
String . |
URLPath |
getSourcePath() |
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, isLocked
getAttributes, getChildren, getData, mayHaveChildren
getToolTipText, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, initFromLibrary
getToolTipText, toString
public 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 clsPath, 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 java.lang.String getName()
public URLPath getClassPath()
getClassPath
in interface JPaths
public URLPath getSourcePath()
getSourcePath
in interface JPaths
public URLPath getDocPath()
getDocPath
in interface JPaths
public java.lang.Boolean getDeployedByDefault() throws AttributeMarker
getDeployedByDefault
in interface JLibrary
AttributeMarker
public java.lang.String getShortLabel()
DefaultDisplayable
String
.getShortLabel
in interface Displayable
getShortLabel
in class AbstractLibrary
Displayable
that can be shown to the user.Displayable.getShortLabel()
public java.lang.String getLongLabel()
DefaultDisplayable
DefaultDisplayable.getShortLabel()
.getLongLabel
in interface Displayable
getLongLabel
in class DefaultDisplayable
Displayable
that
can be shown to the user.Displayable.getLongLabel()
public javax.swing.Icon getIcon()
DefaultDisplayable
getIcon
in interface Displayable
getIcon
in class AbstractLibrary
Icon
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 JLibrary
public void setDeployedByDefault(java.lang.Boolean deployed)
setDeployedByDefault
in interface JLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void markDirty(boolean dirty)
Dirtyable
markDirty(...)
instead of
setDirty(...)
so that the JavaBeans
Introspector
will not
mistakenly identify "dirty" as a JavaBean property.markDirty
in interface Dirtyable
markDirty
in class AbstractLibrary
dirty
- 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 JPaths
setClassPath
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.@Deprecated public void setDefaultClassPath(URLPath clsPath)
setDefaultClassPath
in interface Library
setDefaultClassPath
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.@Deprecated public void setDefaultDocPath(URLPath docPath)
setDefaultDocPath
in interface Library
setDefaultDocPath
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.@Deprecated public void setDefaultSourcePath(URLPath srcPath)
setDefaultSourcePath
in interface Library
setDefaultSourcePath
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setDocPath(URLPath docPath)
setDocPath
in interface JPaths
setDocPath
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setLocked(boolean isLocked)
setLocked
in interface JPaths
setLocked
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setName(java.lang.String name)
setName
in interface Library
setName
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public void setSourcePath(URLPath srcPath)
setSourcePath
in interface JPaths
setSourcePath
in class AbstractLibrary
java.lang.UnsupportedOperationException
- instances of this class are
immutable.public boolean getForceExtensionInitialization()
ExtensionLibrary
getForceExtensionInitialization
in interface ExtensionLibrary
true
if the extension should be initialized;
false
otherwisepublic java.lang.String getProviderExtensionId()
ExtensionLibrary
null
.getProviderExtensionId
in interface ExtensionLibrary
null
public boolean isHidden()
ExtensionLibrary
isHidden
in interface ExtensionLibrary
true
if this library is hidden from the user,
false
otherwisepublic URLPath getEndorsedStandardsDirectories()
EndorsedStandardsOverride
getEndorsedStandardsDirectories
in interface EndorsedStandardsOverride
public URLPath getEndorsedStandardsSourcePath()
EndorsedStandardsOverride
getEndorsedStandardsSourcePath
in interface EndorsedStandardsOverride
public URLPath getEndorsedStandardsDocPath()
EndorsedStandardsOverride
getEndorsedStandardsDocPath
in interface EndorsedStandardsOverride