Class MultiValueResolutionDecision

    • Method Detail

      • autoDecide

        protected final void autoDecide()
        Tries to find the best decision based on the current values.
      • keepNone

        public void keepNone()
        Apply the decision to keep no value
      • keepAll

        public void keepAll()
        Apply the decision to keep all values
      • sumAllNumeric

        public void sumAllNumeric()
        Apply the decision to sum all numeric values
        Since:
        7743
      • setNew

        public void setNew​(String value)
        sets a new value for this
        Parameters:
        value - the new value
      • undecide

        public void undecide()
        marks this as undecided
      • getValues

        public List<StringgetValues()
        Replies the list of possible, non empty values
        Returns:
        the list of possible, non empty values
      • getKey

        public String getKey()
        Replies the key of the tag to be resolved by this resolution
        Returns:
        the key of the tag to be resolved by this resolution
      • canKeepNone

        public boolean canKeepNone()
        Replies true if the empty value is a possible value in this resolution
        Returns:
        true if the empty value is a possible value in this resolution
      • canKeepAll

        public boolean canKeepAll()
        Replies true, if this resolution has more than 1 possible non-empty values
        Returns:
        true, if this resolution has more than 1 possible non-empty values
      • canSumAllNumeric

        public boolean canSumAllNumeric()
        Replies true, if summing all numeric values is a possible value in this resolution
        Returns:
        true, if summing all numeric values is a possible value in this resolution
        Since:
        7743
      • isDecided

        public boolean isDecided()
        Replies true if this resolution is decided
        Returns:
        true if this resolution is decided
      • applyTo

        public void applyTo​(Collection<? extends OsmPrimitive> primitives)
        Applies this resolution to a collection of primitives
        Parameters:
        primitives - the collection of primitives
        Throws:
        IllegalStateException - if this resolution is not resolved yet
      • getResolution

        public Tag getResolution()
        Replies a tag representing the current resolution. Null, if this resolution is not resolved yet.
        Returns:
        a tag representing the current resolution. Null, if this resolution is not resolved yet