@SuppressWarnings("restriction")
    private static boolean isDirectChild(String parentId, String childId) {
        return childId.startsWith(parentId) && (childId.length() > (parentId.length() + 1))
                // if there is NOT a class file separator, then it's not a direct child
                && childId.charAt(parentId.length()) == JavaElement.JEM_CLASSFILE;
    }
@ SuppressWarnings ( "restriction" ) private static boolean isDirectChild ( String parentId , String childId ) { return childId . startsWith ( parentId ) && ( childId . length ( ) > ( parentId . length ( ) + 1 ) ) && childId . charAt ( parentId . length ( ) ) == JavaElement . JEM_CLASSFILE ; }
@param parentId
java element id of a parent element
@param childId
java element id of possible child
@return true if the second string represents a java element which is a
direct child of the parent element.