question: protected boolean isAllTestComponentsInTarget ( Geometry testGeom ) { List coords = ComponentCoordinateExtracter . getCoordinates ( testGeom ) ; for ( Iterator i = coords . iterator ( ) ; i . hasNext ( ) ; ) { Coordinate p = ( Coordinate ) i . next ( ) ; int loc = targetPointLocator . locate ( p ) ; if ( loc == Location . EXTERIOR ) return false ; } return true ; }
target:  Tests whether all components of the test Geometry  are contained in the target geometry. Handles both linear and point components.