Class MockLibrary

    • Constructor Detail

      • MockLibrary

        public MockLibrary()
    • Method Detail

      • getExports

        public java.util.Collection<java.lang.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:
        Library.getExports()
      • addExport

        public MockLibrary addExport​(java.lang.String exportPrefix)
        Parameters:
        exportPrefix - export prefix to add
        Returns:
        this instance
      • setPath

        public MockLibrary setPath​(java.lang.String value)
        Parameters:
        value - the path to set
        Returns:
        this instance
      • setVersion

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

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