protected boolean matchElement(Node node){
  if (node.getNodeType() != Node.NodeType.ELEMENT) {
    return false;
  }
  String element=getElement();
  String nodeName=node.getNodeName();
  return element.equals(StringPool.STAR) || element.equals(nodeName);
}

protected boolean matchElement ( Node node ) { if ( node . getNodeType ( ) != Node . NodeType . ELEMENT ) { return false ; } String element = getElement ( ) ; String nodeName = node . getNodeName ( ) ; return element . equals ( StringPool . STAR ) || element . equals ( nodeName ) ; }
matches element to css selector . all non - element types are ignored .
