public class ModuleSettingsImpl extends ComponentManagerSettingsImpl implements ModuleSettings
myContext, mySettingsFile
MODULE_ROOT_MANAGER_COMPONENT
Constructor and Description |
---|
ModuleSettingsImpl(java.nio.file.Path moduleFile,
ConversionContextImpl context) |
Modifier and Type | Method and Description |
---|---|
void |
addExcludedFolder(java.io.File directory) |
void |
addFacetElement(java.lang.String facetTypeId,
java.lang.String facetName,
Element configuration) |
java.lang.String |
collapsePath(java.lang.String path) |
java.lang.String |
expandPath(java.lang.String path) |
java.util.Collection<ModuleSettings> |
getAllModuleDependencies() |
java.util.Collection<java.io.File> |
getContentRoots() |
Element |
getFacetElement(java.lang.String facetTypeId) |
java.util.Collection<? extends Element> |
getFacetElements(java.lang.String facetTypeId) |
java.io.File |
getModuleFile() |
java.util.List<java.io.File> |
getModuleLibraryRoots(java.lang.String libraryName) |
java.lang.String |
getModuleName() |
static java.lang.String |
getModuleName(java.nio.file.Path moduleFile) |
java.lang.String |
getModuleType() |
java.util.List<Element> |
getOrderEntries() |
java.lang.String |
getProjectOutputUrl() |
java.util.Collection<java.io.File> |
getSourceRoots(boolean includeTests) |
boolean |
hasModuleLibrary(java.lang.String libraryName) |
void |
setModuleType(java.lang.String moduleType) |
getComponentElement
getPath, getRootElement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentElement
getFile, getPath, getRootElement
public ModuleSettingsImpl(java.nio.file.Path moduleFile, ConversionContextImpl context) throws CannotConvertException
CannotConvertException
public static java.lang.String getModuleName(java.nio.file.Path moduleFile)
public java.lang.String getModuleName()
getModuleName
in interface ModuleSettings
public java.lang.String getModuleType()
getModuleType
in interface ModuleSettings
public java.io.File getModuleFile()
getModuleFile
in interface ModuleSettings
public java.util.Collection<? extends Element> getFacetElements(java.lang.String facetTypeId)
getFacetElements
in interface ModuleSettings
public Element getFacetElement(java.lang.String facetTypeId)
getFacetElement
in interface ModuleSettings
public void addFacetElement(java.lang.String facetTypeId, java.lang.String facetName, Element configuration)
addFacetElement
in interface ModuleSettings
public void setModuleType(java.lang.String moduleType)
setModuleType
in interface ModuleSettings
public java.lang.String expandPath(java.lang.String path)
expandPath
in interface ModuleSettings
public java.lang.String collapsePath(java.lang.String path)
collapsePath
in interface ModuleSettings
public java.util.Collection<java.io.File> getSourceRoots(boolean includeTests)
getSourceRoots
in interface ModuleSettings
public java.util.Collection<java.io.File> getContentRoots()
getContentRoots
in interface ModuleSettings
public java.lang.String getProjectOutputUrl()
getProjectOutputUrl
in interface ModuleSettings
public void addExcludedFolder(java.io.File directory)
addExcludedFolder
in interface ModuleSettings
public java.util.List<java.io.File> getModuleLibraryRoots(java.lang.String libraryName)
getModuleLibraryRoots
in interface ModuleSettings
public boolean hasModuleLibrary(java.lang.String libraryName)
hasModuleLibrary
in interface ModuleSettings
public java.util.List<Element> getOrderEntries()
getOrderEntries
in interface ModuleSettings
public java.util.Collection<ModuleSettings> getAllModuleDependencies()
getAllModuleDependencies
in interface ModuleSettings