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 void
addToNode(Node parentNode)
boolean
equals(java.lang.Object o)
java.lang.String
getName()
The name of the module the module depends on.java.lang.String
getScope()
The scope for this dependency.int
hashCode()
boolean
isExported()
void
setExported(boolean exported)
void
setName(java.lang.String name)
void
setScope(java.lang.String scope)
The scope of this library.java.lang.String
toString()
-
-
-
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:
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()
-
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
-
-