public List < String > getSourceUrls ( boolean useInherited ) { List < String > temp = new ArrayList < String > ( ) ; // Get the parent source urls if requested if ( useInherited && parent != null ) { if ( parent instanceof ContentSpec ) { temp = ( ( ContentSpec ) parent ) . getBaseLevel ( ) . getSourceUrls ( true ) ; } else if ( parent instanceof KeyValueNode ) { temp = ( ( KeyValueNode ) parent ) . getParent ( ) . getBaseLevel ( ) . getSourceUrls ( true ) ; } else { temp = ( ( SpecNode ) parent ) . getSourceUrls ( true ) ; } } // Add any local source urls if ( sourceUrls != null ) { temp . addAll ( sourceUrls ) ; } return temp ; }
Get the Source Urls for a node and also checks to make sure the url hasn t already been inherited