public List < ResourceHandle > getChildrenByType ( final String type ) { final ArrayList < ResourceHandle > children = new ArrayList <> ( ) ; if ( this . isValid ( ) ) { for ( final Resource child : this . resource . getChildren ( ) ) { ResourceHandle handle = ResourceHandle . use ( child ) ; if ( handle . isOfType ( type ) ) { children . add ( handle ) ; } } } return children ; }
retrieves all children of a type