Package com.highmobility.autoapi
Class CommandResolver.SetterIterator
java.lang.Object
com.highmobility.autoapi.CommandResolver.SetterIterator
- Enclosing class:
- CommandResolver
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
theParsedCommand
-
-
Method Details
-
hasNext
public boolean hasNext() -
parseNext
public Command parseNext(CommandResolver.SetterIterator.SetterIteration next) throws CommandParseException - Throws:
CommandParseException
-