Class ModuleLibrary

  • All Implemented Interfaces:
    Dependency
    Direct Known Subclasses:
    SingleEntryModuleLibrary

    public class ModuleLibrary
    extends java.lang.Object
    implements Dependency
    Represents an orderEntry of type module-library in the iml XML.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleLibrary​(java.util.Collection<? extends Path> classes, java.util.Collection<? extends Path> javadoc, java.util.Collection<? extends Path> sources, java.util.Collection<JarDirectory> jarDirectories, java.lang.String scope)  
    • Constructor Detail

      • ModuleLibrary

        public ModuleLibrary​(java.util.Collection<? extends Path> classes,
                             java.util.Collection<? extends Path> javadoc,
                             java.util.Collection<? extends Path> sources,
                             java.util.Collection<JarDirectory> jarDirectories,
                             java.lang.String scope)
    • Method Detail

      • getClasses

        public java.util.Set<Path> getClasses()
        A set of Jar files or directories containing compiled code.
      • setClasses

        public void setClasses​(java.util.Set<Path> classes)
      • getJarDirectories

        public java.util.Set<JarDirectory> getJarDirectories()
        A set of directories containing Jar files.
      • setJarDirectories

        public void setJarDirectories​(java.util.Set<JarDirectory> jarDirectories)
      • getJavadoc

        public java.util.Set<Path> getJavadoc()
        A set of Jar files or directories containing Javadoc.
      • setJavadoc

        public void setJavadoc​(java.util.Set<Path> javadoc)
      • getSources

        public java.util.Set<Path> getSources()
        A set of Jar files or directories containing source code.
      • setSources

        public void setSources​(java.util.Set<Path> sources)
      • getScope

        public java.lang.String getScope()
        The scope of this library. If null, the scope attribute is not added.
        Specified by:
        getScope in interface Dependency
      • setScope

        public void setScope​(java.lang.String scope)
        Description copied from interface: Dependency
        The scope of this library. If null, the scope attribute is not added.
        Specified by:
        setScope in interface Dependency
      • isExported

        public boolean isExported()
        Whether the library is exported to dependent modules.
      • setExported

        public void setExported​(boolean exported)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object