Class ModuleDependency
- java.lang.Object
-
- org.gradle.plugins.ide.idea.model.ModuleDependency
-
- All Implemented Interfaces:
Dependency
public class ModuleDependency extends java.lang.Object implements Dependency
Represents an orderEntry of type module in the iml XML.
-
-
Constructor Summary
Constructors Constructor Description ModuleDependency(java.lang.String name, java.lang.String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToNode(Node parentNode)booleanequals(java.lang.Object o)java.lang.StringgetName()The name of the module the module depends on.java.lang.StringgetScope()The scope for this dependency.inthashCode()booleanisExported()voidsetExported(boolean exported)voidsetName(java.lang.String name)voidsetScope(java.lang.String scope)The scope of this library.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the module the module depends on. Must not be null.
-
setName
public void setName(java.lang.String name)
-
getScope
public java.lang.String getScope()
The scope for this dependency. If null the scope attribute is not added.- Specified by:
getScopein interfaceDependency
-
setScope
public void setScope(java.lang.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()
-
setExported
public void setExported(boolean exported)
-
addToNode
public void addToNode(Node parentNode)
- Specified by:
addToNodein interfaceDependency
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-