Class CommandResolver.SetterIterator

java.lang.Object
com.highmobility.autoapi.CommandResolver.SetterIterator
Enclosing class:
CommandResolver

protected static class CommandResolver.SetterIterator extends Object
The purpose of this iterator is to loop the possible setters.

PropertyParseException is ok here, because we are in the process of trying to find correct setter.

The need to find the correct setter arises because some setters have overlapping property id-s, like Start/End parking. Property id is the same, but constant value is different. This looper then tries to construct each of them until one doesn't fail with PropertyParseException.

If all of the setters parsing failed, it is impossible to understand what setter was sent.