Class MockLibrary

All Implemented Interfaces:
Documentable<Library>, Identity, Library, PluginElement<Library>, UniqueIdentity

public class MockLibrary extends MockPluginElement<Library> implements Library
Version:
$Id$
  • Constructor Details

    • MockLibrary

      public MockLibrary()
  • Method Details

    • getExports

      public Collection<String> getExports()
      Description copied from interface: Library
      This method should return collection of String objects that represent resource name prefixes or package name patterns that are available to other plug-ins.
      For code library, prefix is a package name, for resource library, the same rules applied to relative resource path calculated against library path (you can replace slash characters in path with dots).
      Example prefixes are:
      "*", "package.name.*", "package.name.ClassName", "resource/path/*
      Specified by:
      getExports in interface Library
      Returns:
      collection of exported resource name patterns
      See Also:
    • addExport

      public MockLibrary addExport(String exportPrefix)
      Parameters:
      exportPrefix - export prefix to add
      Returns:
      this instance
    • getPath

      public String getPath()
      Specified by:
      getPath in interface Library
      Returns:
      path to resource
      See Also:
    • setPath

      public MockLibrary setPath(String value)
      Parameters:
      value - the path to set
      Returns:
      this instance
    • getVersion

      public Version getVersion()
      Specified by:
      getVersion in interface Library
      Returns:
      library version identifier as specified in manifest file or null
      See Also:
    • setVersion

      public MockLibrary setVersion(Version value)
      Parameters:
      value - the version to set
      Returns:
      this instance
    • isCodeLibrary

      public boolean isCodeLibrary()
      Specified by:
      isCodeLibrary in interface Library
      Returns:
      true if this is "code" library
      See Also:
    • setCodeLibrary

      public MockLibrary setCodeLibrary(boolean value)
      Parameters:
      value - the code library flag to set
      Returns:
      this instance
    • getUniqueId

      public String getUniqueId()
      Specified by:
      getUniqueId in interface UniqueIdentity
      Returns:
      unique ID of plug-in element
      See Also: