(InstanceScope scope, List<Object> list, Object o)
| 920 | } |
| 921 | |
| 922 | protected void addToList(InstanceScope scope, List<Object> list, Object o) { |
| 923 | o = convertAnythingIteratableToIterator(scope, o); |
| 924 | if ( o instanceof Iterator ) { |
| 925 | // copy of elements into our temp list |
| 926 | Iterator<?> it = (Iterator<?>)o; |
| 927 | while ( it.hasNext() ) list.add(it.next()); |
| 928 | } |
| 929 | else { |
| 930 | list.add(o); |
| 931 | } |
| 932 | } |
| 933 | |
| 934 | /** |
| 935 | * Return the first attribute if multi-valued, or the attribute itself if |
no test coverage detected