(InstanceScope scope, List<Object> list, Object o)
| 901 | } |
| 902 | |
| 903 | protected void addToList(InstanceScope scope, List<Object> list, Object o) { |
| 904 | o = convertAnythingIteratableToIterator(scope, o); |
| 905 | if ( o instanceof Iterator ) { |
| 906 | // copy of elements into our temp list |
| 907 | Iterator<?> it = (Iterator<?>)o; |
| 908 | while ( it.hasNext() ) list.add(it.next()); |
| 909 | } |
| 910 | else { |
| 911 | list.add(o); |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | /** |
| 916 | * Return the first attribute if multi-valued, or the attribute itself if |
no test coverage detected