Class ParsedConfig
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.projects.ParsedConfig
-
public final class ParsedConfig extends Object
Parsed configuration file, for project or a build template/configuration.- Author:
- Leonid Bushuev from JetBrains
-
-
Constructor Summary
Constructors Constructor Description ParsedConfig(File configFile, boolean enableValidation, ProjectConfigContentProvider fileContentProvider)
ParsedConfig(File configFile, ProjectConfigContentProvider fileContentProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
belongsToVirtualProject()
File
getConfigFile()
static String
getConfigFileProjectExtId(File configFile)
Determines which project the given configuration file belongs to.String
getConfigId()
String
getExternalId()
String
getOwnerProjectExternalId()
String
getParentProjectExternalId()
static File
getProjectDirectory(File configFile)
org.jdom.Element
getRootElement()
boolean
isBuildTypeConfig()
boolean
isEmptyConfigId()
boolean
isProjectConfig()
boolean
isTemplateConfig()
boolean
isVcsRootConfig()
boolean
isVirtualProjectConfig()
static ParsedConfig
parseConfig(File configFile)
void
setBelongsToVirtualProject(boolean belongsToVirtualProject)
String
toString()
-
-
-
Constructor Detail
-
ParsedConfig
public ParsedConfig(@NotNull File configFile, @NotNull ProjectConfigContentProvider fileContentProvider) throws org.jdom.JDOMException, IOException
- Throws:
org.jdom.JDOMException
IOException
-
ParsedConfig
public ParsedConfig(@NotNull File configFile, boolean enableValidation, @NotNull ProjectConfigContentProvider fileContentProvider) throws org.jdom.JDOMException, IOException
- Throws:
org.jdom.JDOMException
IOException
-
-
Method Detail
-
getConfigFile
@NotNull public File getConfigFile()
-
getRootElement
@NotNull public org.jdom.Element getRootElement()
-
getConfigId
@Nullable public String getConfigId()
-
isEmptyConfigId
public boolean isEmptyConfigId()
-
getExternalId
@Nullable public String getExternalId()
-
getOwnerProjectExternalId
@NotNull public String getOwnerProjectExternalId()
-
isProjectConfig
public boolean isProjectConfig()
-
isVirtualProjectConfig
public boolean isVirtualProjectConfig()
-
belongsToVirtualProject
public boolean belongsToVirtualProject()
-
setBelongsToVirtualProject
public void setBelongsToVirtualProject(boolean belongsToVirtualProject)
-
isBuildTypeConfig
public boolean isBuildTypeConfig()
-
isVcsRootConfig
public boolean isVcsRootConfig()
-
isTemplateConfig
public boolean isTemplateConfig()
-
getParentProjectExternalId
@NotNull public String getParentProjectExternalId()
-
getConfigFileProjectExtId
public static String getConfigFileProjectExtId(@NotNull File configFile)
Determines which project the given configuration file belongs to.- Parameters:
configFile
- the configuration file to analyze.- Returns:
- external id of the project the given config belongs to.
- Since:
- 8.0
-
parseConfig
@NotNull public static ParsedConfig parseConfig(@NotNull File configFile) throws IOException, org.jdom.JDOMException
- Throws:
IOException
org.jdom.JDOMException
-
-