Element.java: made isMatched method public to allow calling from a patte...

...rn rule class.