01: package uk.org.ponder.saxalizer;
02:
03: /** An interface used to supply a callback to the DeSAXalizer. The DeSAXalizer makes
04: * a call to the method of this interface before serializing every object in the subtree. If the
05: * method returns <code>false</code>, serialization of the object and its entire subtree will
06: * be skipped.
07: */
08:
09: public interface DeSAXalizerForbidder {
10: /** @param tag The XML tag name that will be supplied for the target object.
11: * @param o The target object itself.
12: * @return <code>true</code> if serialization of the target object is to be permitted.
13: */
14: boolean permitSerialization(String tag, Object o);
15: }
|