|
JPF 1.5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.java.plugin.tools.mocks.MockIdentity org.java.plugin.tools.mocks.MockPluginDescriptor
public class MockPluginDescriptor
Constructor Summary | |
---|---|
MockPluginDescriptor()
No-arguments constructor. |
|
MockPluginDescriptor(java.lang.String id)
|
|
MockPluginDescriptor(java.lang.String id,
Version aVersion)
|
Method Summary | |
---|---|
MockPluginDescriptor |
addAttribute(PluginAttribute attribute)
|
MockPluginDescriptor |
addExtension(Extension extension)
|
MockPluginDescriptor |
addExtensionPoint(ExtensionPoint extPoint)
|
MockPluginDescriptor |
addFragment(PluginFragment fragment)
|
MockPluginDescriptor |
addLibrary(Library library)
|
MockPluginDescriptor |
addPrerequisite(PluginPrerequisite pre)
|
PluginAttribute |
getAttribute(java.lang.String id)
|
java.util.Collection<PluginAttribute> |
getAttributes()
Returns collection of all top level attributes defined in manifest. |
java.util.Collection<PluginAttribute> |
getAttributes(java.lang.String id)
|
java.lang.String |
getDocsPath()
|
Documentation<PluginDescriptor> |
getDocumentation()
|
Extension |
getExtension(java.lang.String id)
|
ExtensionPoint |
getExtensionPoint(java.lang.String id)
|
java.util.Collection<ExtensionPoint> |
getExtensionPoints()
Returns collection of all extension points defined in manifest. |
java.util.Collection<Extension> |
getExtensions()
Returns collection of all extensions defined in manifest. |
java.util.Collection<PluginFragment> |
getFragments()
Returns collection of plug-in fragments which contributes to this plug-in. |
java.util.Collection<Library> |
getLibraries()
Returns collection of all libraries defined in manifest. |
Library |
getLibrary(java.lang.String id)
|
java.net.URL |
getLocation()
|
java.lang.String |
getPluginClassName()
|
PluginPrerequisite |
getPrerequisite(java.lang.String id)
|
java.util.Collection<PluginPrerequisite> |
getPrerequisites()
Returns collection of all prerequisites defined in manifest. |
PluginRegistry |
getRegistry()
|
java.lang.String |
getUniqueId()
|
java.lang.String |
getVendor()
|
Version |
getVersion()
|
MockPluginDescriptor |
setDocsPath(java.lang.String value)
|
MockPluginDescriptor |
setDocumentation(Documentation<PluginDescriptor> value)
|
MockPluginDescriptor |
setLocation(java.net.URL value)
|
MockPluginDescriptor |
setPluginClassName(java.lang.String value)
|
MockPluginDescriptor |
setRegistry(PluginRegistry value)
|
MockPluginDescriptor |
setVendor(java.lang.String value)
|
MockPluginDescriptor |
setVersion(Version value)
|
Methods inherited from class org.java.plugin.tools.mocks.MockIdentity |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.java.plugin.registry.Identity |
---|
getId |
Constructor Detail |
---|
public MockPluginDescriptor()
public MockPluginDescriptor(java.lang.String id)
id
- plug-in IDpublic MockPluginDescriptor(java.lang.String id, Version aVersion)
id
- plug-in IDaVersion
- plug-in versionMethod Detail |
---|
public PluginAttribute getAttribute(java.lang.String id)
getAttribute
in interface PluginDescriptor
id
- ID of attribute to look for
PluginDescriptor.getAttribute(
java.lang.String)
public java.util.Collection<PluginAttribute> getAttributes()
PluginDescriptor
getAttributes
in interface PluginDescriptor
PluginAttribute
objectsPluginDescriptor.getAttributes()
public java.util.Collection<PluginAttribute> getAttributes(java.lang.String id)
getAttributes
in interface PluginDescriptor
id
- ID of attribute to look for
PluginDescriptor.getAttributes(
java.lang.String)
public MockPluginDescriptor addAttribute(PluginAttribute attribute)
attribute
- attribute to add
public Extension getExtension(java.lang.String id)
getExtension
in interface PluginDescriptor
id
- extension ID
null
PluginDescriptor.getExtension(
java.lang.String)
public ExtensionPoint getExtensionPoint(java.lang.String id)
getExtensionPoint
in interface PluginDescriptor
id
- extension point ID
null
PluginDescriptor.getExtensionPoint(
java.lang.String)
public java.util.Collection<ExtensionPoint> getExtensionPoints()
PluginDescriptor
getExtensionPoints
in interface PluginDescriptor
ExtensionPoint
objectsPluginDescriptor.getExtensionPoints()
public java.util.Collection<Extension> getExtensions()
PluginDescriptor
getExtensions
in interface PluginDescriptor
Extension
objectsPluginDescriptor.getExtensions()
public MockPluginDescriptor addExtensionPoint(ExtensionPoint extPoint)
extPoint
- extension point to add
public MockPluginDescriptor addExtension(Extension extension)
extension
- extension to add
public java.util.Collection<PluginFragment> getFragments()
PluginDescriptor
getFragments
in interface PluginDescriptor
PluginFragment
objectsPluginDescriptor.getFragments()
public MockPluginDescriptor addFragment(PluginFragment fragment)
fragment
- plug-in fragment to add
public java.util.Collection<Library> getLibraries()
PluginDescriptor
getLibraries
in interface PluginDescriptor
Library
objectsPluginDescriptor.getLibraries()
public MockPluginDescriptor addLibrary(Library library)
library
- library to add
public Library getLibrary(java.lang.String id)
getLibrary
in interface PluginDescriptor
id
- library ID
null
PluginDescriptor.getLibrary(
java.lang.String)
public java.net.URL getLocation()
getLocation
in interface PluginDescriptor
PluginDescriptor.getLocation()
public MockPluginDescriptor setLocation(java.net.URL value)
value
- the location to set
public java.lang.String getPluginClassName()
getPluginClassName
in interface PluginDescriptor
null
PluginDescriptor.getPluginClassName()
public MockPluginDescriptor setPluginClassName(java.lang.String value)
value
- the plug-in class name to set
public PluginPrerequisite getPrerequisite(java.lang.String id)
getPrerequisite
in interface PluginDescriptor
id
- prerequisite ID
null
PluginDescriptor.getPrerequisite(
java.lang.String)
public java.util.Collection<PluginPrerequisite> getPrerequisites()
PluginDescriptor
getPrerequisites
in interface PluginDescriptor
PluginPrerequisite
objectsPluginDescriptor.getPrerequisites()
public MockPluginDescriptor addPrerequisite(PluginPrerequisite pre)
pre
- plug-in prerequisite to add
public PluginRegistry getRegistry()
getRegistry
in interface PluginDescriptor
PluginDescriptor.getRegistry()
public MockPluginDescriptor setRegistry(PluginRegistry value)
value
- the registry to set
public java.lang.String getVendor()
getVendor
in interface PluginDescriptor
PluginDescriptor.getVendor()
public MockPluginDescriptor setVendor(java.lang.String value)
value
- the vendor to set
public Version getVersion()
getVersion
in interface PluginDescriptor
PluginDescriptor.getVersion()
public MockPluginDescriptor setVersion(Version value)
value
- the version to set
public java.lang.String getUniqueId()
getUniqueId
in interface UniqueIdentity
UniqueIdentity.getUniqueId()
public java.lang.String getDocsPath()
getDocsPath
in interface Documentable<PluginDescriptor>
Documentable.getDocsPath()
public MockPluginDescriptor setDocsPath(java.lang.String value)
value
- the docs path to set
public Documentation<PluginDescriptor> getDocumentation()
getDocumentation
in interface Documentable<PluginDescriptor>
null
if there is no documentation providedDocumentable.getDocumentation()
public MockPluginDescriptor setDocumentation(Documentation<PluginDescriptor> value)
value
- the documentation to set
|
JPF 1.5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |