Class ModuleLibrary
- java.lang.Object
-
- org.gradle.plugins.ide.idea.model.ModuleLibrary
-
- All Implemented Interfaces:
Dependency
- Direct Known Subclasses:
SingleEntryModuleLibrary
public class ModuleLibrary extends Object implements Dependency
Represents an orderEntry of type module-library in the iml XML.
-
-
Constructor Summary
Constructors Constructor Description ModuleLibrary(Collection<? extends Path> classes, Collection<? extends Path> javadoc, Collection<? extends Path> sources, Collection<JarDirectory> jarDirectories, String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToNode(Node parentNode)booleanequals(Object o)Set<Path>getClasses()A set of Jar files or directories containing compiled code.Set<JarDirectory>getJarDirectories()A set of directories containing Jar files.Set<Path>getJavadoc()A set of Jar files or directories containing Javadoc.StringgetScope()The scope of this library.Set<Path>getSources()A set of Jar files or directories containing source code.inthashCode()booleanisExported()Whether the library is exported to dependent modules.voidsetClasses(Set<Path> classes)voidsetExported(boolean exported)voidsetJarDirectories(Set<JarDirectory> jarDirectories)voidsetJavadoc(Set<Path> javadoc)voidsetScope(String scope)The scope of this library.voidsetSources(Set<Path> sources)StringtoString()
-
-
-
Constructor Detail
-
ModuleLibrary
public ModuleLibrary(Collection<? extends Path> classes, Collection<? extends Path> javadoc, Collection<? extends Path> sources, Collection<JarDirectory> jarDirectories, String scope)
-
-
Method Detail
-
getClasses
public Set<Path> getClasses()
A set of Jar files or directories containing compiled code.
-
getJarDirectories
public Set<JarDirectory> getJarDirectories()
A set of directories containing Jar files.
-
setJarDirectories
public void setJarDirectories(Set<JarDirectory> jarDirectories)
-
getScope
public String getScope()
The scope of this library. Ifnull, the scope attribute is not added.- Specified by:
getScopein interfaceDependency
-
setScope
public void setScope(String scope)
Description copied from interface:DependencyThe scope of this library. Ifnull, the scope attribute is not added.- Specified by:
setScopein interfaceDependency
-
isExported
public boolean isExported()
Whether the library is exported to dependent modules.
-
setExported
public void setExported(boolean exported)
-
addToNode
public void addToNode(Node parentNode)
- Specified by:
addToNodein interfaceDependency
-
-