- Timestamp:
- 07/16/13 23:31:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/params/ListAccess.java
r101 r102 3 3 4 4 5 import static com.framsticks.util.lang.Containers.filterInstanceof;6 5 7 6 import com.framsticks.params.types.EventParam; … … 30 29 31 30 32 @Override33 public void save(SinkInterface sink) {34 for (CompositeParam p : filterInstanceof(getParams(), CompositeParam.class)) {35 Object child = get(p, Object.class);36 //this is probably an assertion37 assert child != null;38 elementAccess.select(child);39 elementAccess.save(sink);40 }41 }42 43 31 public Access getElementAccess() { 44 32 return elementAccess; … … 57 45 } 58 46 59 //TODO it could actually be used also60 47 @Override 61 48 public void tryAutoAppend(Object object) { 62 throw new InvalidOperationException() ;49 throw new InvalidOperationException().msg("It could actually be used also, the Access.select could be used to check whether type is correct"); 63 50 } 64 51
Note: See TracChangeset
for help on using the changeset viewer.