Class DependencyImpl

    • Method Detail

      • getDependOnId

        @NotNull
        public String getDependOnId()
        Specified by:
        getDependOnId in interface Dependency
        Returns:
        internal id of build configuration we depend on
      • getDependOnExternalId

        @NotNull
        public String getDependOnExternalId()
        Specified by:
        getDependOnExternalId in interface Dependency
        Returns:
        external id of build configuration we depend on
      • getDependOn

        @Nullable
        public SBuildType getDependOn()
        Description copied from interface: Dependency
        Returns the build configuration we're depend on. May return null if this dependency references non-existing configuration
        Specified by:
        getDependOn in interface Dependency
        Returns:
        see above
      • getOption

        @NotNull
        public <T> T getOption​(@NotNull
                               Option<T> option)
        Description copied from interface: OptionSupport
        Get option value
        Specified by:
        getOption in interface OptionSupport
        Parameters:
        option - option to retrieve value for
        Returns:
        value of the option. If value wasn't set, Option:getDefaultValue is returned
      • getOptionDefaultValue

        @NotNull
        public <T> T getOptionDefaultValue​(@NotNull
                                           Option<T> option)
        Specified by:
        getOptionDefaultValue in interface OptionSupport
        Parameters:
        option - option whose default value to return
        Returns:
        default value for specified option
      • setOption

        public <T> void setOption​(@NotNull
                                  Option<T> option,
                                  @NotNull
                                  T value)
        Description copied from interface: OptionSupport
        Set option value, clears value if it is the same as default
        Specified by:
        setOption in interface OptionSupport
        Parameters:
        option - option to set value for
        value - option value
      • getChangedOptions

        @NotNull
        public Option[] getChangedOptions()
        Description copied from interface: OptionSupport
        Return options with changed values, i.e. options with non-default values
        Specified by:
        getChangedOptions in interface OptionSupport
        Returns:
        see above
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • readFrom

        public void readFrom​(@NotNull
                             org.jdom.Element parentEl)
        Specified by:
        readFrom in interface OptionSupportEx
      • getDeclaredOption

        @Nullable
        public <T> T getDeclaredOption​(Option<T> option)
        Description copied from interface: OptionSupport

        Get option value declared in this BuildTypeSettings

        Specified by:
        getDeclaredOption in interface OptionSupport
        Parameters:
        option - option to retrieve value for
        Returns:
        value of the option. If value wasn't set, null is returned
      • getOwnOptionValue

        @Nullable
        public <T> OptionValue<T> getOwnOptionValue​(@NotNull
                                                    Option<T> option)
        Description copied from interface: OptionSupportEx

        Get option value-spec pair. If the option is not defined - null is returned in OptionValue.getValue()

        Specified by:
        getOwnOptionValue in interface OptionSupportEx
        Returns: