Class ModuleLibrary
- java.lang.Object
-
- org.gradle.plugins.ide.idea.model.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToNode(Node parentNode)
boolean
equals(java.lang.Object o)
java.util.Set<Path>
getClasses()
A set of Jar files or directories containing compiled code.java.util.Set<JarDirectory>
getJarDirectories()
A set of directories containing Jar files.java.util.Set<Path>
getJavadoc()
A set of Jar files or directories containing Javadoc.java.lang.String
getScope()
The scope of this library.java.util.Set<Path>
getSources()
A set of Jar files or directories containing source code.int
hashCode()
boolean
isExported()
Whether the library is exported to dependent modules.void
setClasses(java.util.Set<Path> classes)
void
setExported(boolean exported)
void
setJarDirectories(java.util.Set<JarDirectory> jarDirectories)
void
setJavadoc(java.util.Set<Path> javadoc)
void
setScope(java.lang.String scope)
The scope of this library.void
setSources(java.util.Set<Path> sources)
java.lang.String
toString()
-
-
-
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. Ifnull
, the scope attribute is not added.- Specified by:
getScope
in interfaceDependency
-
setScope
public void setScope(java.lang.String scope)
Description copied from interface:Dependency
The scope of this library. Ifnull
, the scope attribute is not added.- Specified by:
setScope
in 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:
addToNode
in interfaceDependency
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-