Package org.smooks.api.delivery.ordering
Interface Consumer
-
- All Superinterfaces:
ContentHandler,Visitor
public interface Consumer extends Visitor
Object Consumer interface. A consumer is aVisitorthat "consumes" a named object that has been added to theExecutionContextby aProducerof some sort.- Since:
- 1.2
- Author:
- tom.fennelly@jboss.com
- See Also:
Producer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanconsumes(Object object)Does this consumer consume the specified named object.
-
-
-
Method Detail
-
consumes
boolean consumes(Object object)
Does this consumer consume the specified named object. The named object would be a product of aProducerthat is executing on the same element. The consumer should only returnfalseif it knows for certain that it doesn't consumer the specified named object. If uncertain, it should error on the side of saying that it does consume the object.- Parameters:
object- The product representation- Returns:
- True if the consumer consumes the specified product, otherwise false.
-
-