Pattern implements the IPattern interface.