public UberNode getFirstByRel ( String rel ) { // TODO consider less naive impl for ( UberNode node : data ) { List < String > myRels = node . getRel ( ) ; if ( myRels != null ) { for ( String myRel : myRels ) { if ( rel . equals ( myRel ) ) { return node ; } } } } return null ; }
Gets first child of this uber node having the given rel attribute .