public final class ContentRootData extends AbstractExternalEntityData
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentRootData.SourceRoot |
| Constructor and Description |
|---|
ContentRootData(ProjectSystemId owner,
java.lang.String rootPath)
Creates new
GradleContentRootImpl object. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ContentRootData.SourceRoot> |
getPaths(ExternalSystemSourceType type) |
java.lang.String |
getRootPath() |
void |
storePath(ExternalSystemSourceType type,
java.lang.String path) |
void |
storePath(ExternalSystemSourceType type,
java.lang.String path,
java.lang.String packagePrefix)
Ask to remember that directory at the given path contains sources of the given type.
|
java.lang.String |
toString() |
equals, getOwner, hashCodepublic ContentRootData(ProjectSystemId owner, java.lang.String rootPath)
GradleContentRootImpl object.rootPath - path to the root directorypublic java.util.Collection<ContentRootData.SourceRoot> getPaths(ExternalSystemSourceType type)
type - target dir typepublic void storePath(ExternalSystemSourceType type, java.lang.String path) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic void storePath(ExternalSystemSourceType type, java.lang.String path, java.lang.String packagePrefix) throws java.lang.IllegalArgumentException
type - target sources typepath - target source directory pathpackagePrefix - target source directory package prefixjava.lang.IllegalArgumentException - if given path points to the directory that is not located
under the content rootpublic java.lang.String getRootPath()
public java.lang.String toString()
toString in class java.lang.Object