Class AllElementsSpaceStrippingRule

  • All Implemented Interfaces:

    public class AllElementsSpaceStrippingRule
    extends java.lang.Object
    implements SpaceStrippingRule
    A whitespace stripping rule that strips all elements unless xml:space indicates that whitespace should be preserved.
    • Constructor Detail

      • AllElementsSpaceStrippingRule

        public AllElementsSpaceStrippingRule()
    • Method Detail

      • isSpacePreserving

        public int isSpacePreserving​(NodeName fingerprint,
                                     SchemaType schemaType)
        Decide whether an element is in the set of white-space preserving element types
        Specified by:
        isSpacePreserving in interface SpaceStrippingRule
        fingerprint - identifies the element being tested
        schemaType - the type annotation of the element
        STRIP_DEFAULT: strip spaces unless xml:space tells you not to.
      • makeStripper

        public ProxyReceiver makeStripper​(Receiver next)
        Make a filter to implement these space-stripping rules, or null if no filtering is necessary
        Specified by:
        makeStripper in interface SpaceStrippingRule
        next - the Receiver that is to receive the filtered event stream
        a filter in the form of a ProxyReceiver, or null