Class Discarder


  • public final class Discarder
    extends Loader
    Loader implementation that discards the whole sub-tree. Mostly used for recovering fom errors.
    Author:
    Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
    • Field Detail

      • INSTANCE

        public static final Loader INSTANCE
    • Method Detail

      • childElement

        public void childElement​(UnmarshallingContext.State state,
                                 TagName ea)
        Description copied from class: Loader
        Called when this loaderis an active loaderand we see a new child start tag.

        The callee is expected to designate another loaderas a loaderthat processes this element, then it should also register a Receiver. The designated loaderwill become an active loader.

        The default implementation reports an error saying an element is unexpected.

        Overrides:
        childElement in class Loader