Class OAIMetadataSaxRule

  • public final class OAIMetadataSaxRule
    extends SaxRule
    This class is used as a rule for the "metadata" element of the OAI response. Whenever this element occurs in Digester, it feeds the SAX events to a content handler and stores the DOM result in the OAIMetadataDocument on the Digester stack, if rule is not enabled, metadata is fed to nowhere.
    Uwe Schindler
    • Constructor Detail

      • OAIMetadataSaxRule

        public OAIMetadataSaxRule()
        Creates a new rule which is enabled by default.
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean enabled)
        If enabled, a DOM tree is build from metadata. If not enabled, metadata is fed to nowhere (for static OAI repositories to filter wrong metadataPrefix).
      • isEnabled

        public boolean isEnabled()
        true if storing in DOM tree is enabled