Package com.zerog.ia.auto.project
Class ComponentDependency
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.ComponentDependency
-
- All Implemented Interfaces:
Referenceable
public final class ComponentDependency extends InstallableObject
Defines the component dependency settings, which is used by aComponentto determine whether a dependency component is installed on the target system or not.ComponentDependencyalso defines the dependency check result variables.- See Also:
Component
-
-
Constructor Summary
Constructors Constructor Description ComponentDependency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetCheckVersionAtLeast()Whether or not the dependency check should consider a minimum component version.booleangetCheckVersionAtMost()Whether or not the dependency check should consider a maximum component version.java.lang.StringgetDependencyFailedMessage()The message to display when the component dependency check fails.java.lang.StringgetDependencyFailedResultVariable()The variable where to store the component dependency check result.java.lang.StringgetKeyFile()The key file location to match.booleangetMatchesKeyFile()Whether or not the dependency check should match the key file location.java.lang.StringgetMatchingKeyFileResultVariable()The variable where to store the key file location check result.ComponentgetParentComponent()The parent component which this component dependency is belongs to.ComponentVersiongetVersionAtLeast()The minimum component version to consider.ComponentVersiongetVersionAtMost()The maximum component version to consider.voidsetCheckVersionAtLeast(boolean checksLowerBound)Whether or not the dependency check should consider a minimum component version.voidsetCheckVersionAtMost(boolean checksUpperBound)Whether or not the dependency check should consider a maximum component version.voidsetDependencyFailedMessage(java.lang.String dependencyFailedMessage)The message to display when the component dependency check fails.voidsetDependencyFailedResultVariable(java.lang.String dependencyFailedResultVariable)The variable where to store the component dependency check result.voidsetKeyFile(java.lang.String keyFile)The key file location to match.voidsetMatchesKeyFile(boolean matchesKeyFile)Whether or not the dependency check should match the key file location.voidsetMatchingKeyFileResultVariable(java.lang.String matchingKeyFileReturnVariable)The variable where to store the key file location check result.voidsetParentComponent(Component component)The parent component which this component dependency is belongs to.voidsetVersionAtLeast(ComponentVersion lowerBoundComponentVersion)The minimum component version to consider.voidsetVersionAtMost(ComponentVersion upperBoundComponentVersion)The maximum component version to consider.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setMatchesKeyFile
public void setMatchesKeyFile(boolean matchesKeyFile)
Whether or not the dependency check should match the key file location.- See Also:
setKeyFile(String)
-
getMatchesKeyFile
public boolean getMatchesKeyFile()
Whether or not the dependency check should match the key file location.- See Also:
getKeyFile()
-
setKeyFile
public void setKeyFile(java.lang.String keyFile)
The key file location to match. This is only used if thematchesKeyFileproperty is set to true.
-
getKeyFile
public java.lang.String getKeyFile()
The key file location to match. This is only used if thematchesKeyFileproperty is set to true.
-
setMatchingKeyFileResultVariable
public void setMatchingKeyFileResultVariable(java.lang.String matchingKeyFileReturnVariable)
The variable where to store the key file location check result. This variable will contain where the dependency is installed.
-
getMatchingKeyFileResultVariable
public java.lang.String getMatchingKeyFileResultVariable()
The variable where to store the key file location check result. This variable will contain where the dependency is installed.
-
setCheckVersionAtLeast
public void setCheckVersionAtLeast(boolean checksLowerBound)
Whether or not the dependency check should consider a minimum component version.
-
getCheckVersionAtLeast
public boolean getCheckVersionAtLeast()
Whether or not the dependency check should consider a minimum component version.
-
setCheckVersionAtMost
public void setCheckVersionAtMost(boolean checksUpperBound)
Whether or not the dependency check should consider a maximum component version.
-
getCheckVersionAtMost
public boolean getCheckVersionAtMost()
Whether or not the dependency check should consider a maximum component version.
-
setVersionAtMost
public void setVersionAtMost(ComponentVersion upperBoundComponentVersion)
The maximum component version to consider.- See Also:
setCheckVersionAtMost(boolean)
-
getVersionAtMost
public ComponentVersion getVersionAtMost()
The maximum component version to consider.- See Also:
getCheckVersionAtMost()
-
setVersionAtLeast
public void setVersionAtLeast(ComponentVersion lowerBoundComponentVersion)
The minimum component version to consider.- See Also:
setCheckVersionAtLeast(boolean)
-
getVersionAtLeast
public ComponentVersion getVersionAtLeast()
The minimum component version to consider.- See Also:
getCheckVersionAtLeast()
-
setParentComponent
public void setParentComponent(Component component)
The parent component which this component dependency is belongs to.
-
getParentComponent
public Component getParentComponent()
The parent component which this component dependency is belongs to.
-
setDependencyFailedMessage
public void setDependencyFailedMessage(java.lang.String dependencyFailedMessage)
The message to display when the component dependency check fails.
-
getDependencyFailedMessage
public java.lang.String getDependencyFailedMessage()
The message to display when the component dependency check fails.
-
setDependencyFailedResultVariable
public void setDependencyFailedResultVariable(java.lang.String dependencyFailedResultVariable)
The variable where to store the component dependency check result.You can use the variable to see if the search was successful. If the dependency check passes, the value will be an empty string. If the dependency check fails, the value will be the value defined in the
dependencyFailedMessageproperty.- See Also:
setDependencyFailedMessage(String)
-
getDependencyFailedResultVariable
public java.lang.String getDependencyFailedResultVariable()
The variable where to store the component dependency check result.You can use the variable to see if the search was successful. If the dependency check passes, the value will be an empty string. If the dependency check fails, the value will be the value defined in the
dependencyFailedMessageproperty.- See Also:
getDependencyFailedMessage()
-
-