private boolean checkTagAndParam ( XDoc doc , String tagName , String paramName , String paramValue ) { if ( tagName == null ) { return true ; } if ( ! doc . hasTag ( tagName ) ) { return false ; } if ( paramName == null ) { return true ; } if ( ! doc . getTag ( tagName ) . getAttributeNames ( ) . contains ( paramName ) ) { return false ; } return ( paramValue == null ) || paramValue . equals ( doc . getTagAttributeValue ( tagName , paramName ) ) ; }
Determines whether the given documentation part contains the specified tag with the given parameter having the given value .