Class ComponentDependency

  • All Implemented Interfaces:
    Referenceable

    public final class ComponentDependency
    extends InstallableObject
    Defines the component dependency settings, which is used by a Component to determine whether a dependency component is installed on the target system or not.

    ComponentDependency also defines the dependency check result variables.

    See Also:
    Component
    • Constructor Detail

      • ComponentDependency

        public ComponentDependency()
    • 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 the matchesKeyFile property is set to true.
      • getKeyFile

        public java.lang.String getKeyFile()
        The key file location to match. This is only used if the matchesKeyFile property 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.
      • 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 dependencyFailedMessage property.

        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 dependencyFailedMessage property.

        See Also:
        getDependencyFailedMessage()