public T getDynamic ( String id ) { // by ID for ( T t : data ) if ( t . getDescriptor ( ) . getId ( ) . equals ( id ) ) return t ; // by position try { return data . get ( Integer . parseInt ( id ) ) ; } catch ( NumberFormatException e ) { // fall through } return null ; }
Binds items in the collection to URL .