Class DocBookFilter

  • All Implemented Interfaces:
    IFilter

    public class DocBookFilter
    extends XMLFilter
    Filter for DocBook files.
    • Constructor Detail

      • DocBookFilter

        public DocBookFilter()
        Creates a new instance of DocBookFilter
    • Method Detail

      • getHint

        public java.lang.String getHint()
        Returns the hint displayed while the user edits the filter, and when she adds/edits the instance of this filter. The hint may be any string, preferably in a non-geek language.
        Specified by:
        getHint in interface IFilter
        Overrides:
        getHint in class AbstractFilter
        Returns:
        The hint for editing the filter in a non-geek language.
      • getDefaultInstances

        public Instance[] getDefaultInstances()
        The default list of filter instances that this filter class has. One filter class may have different filter instances, different by source file mask, encoding of the source file etc.

        Note that the user may change the instances freely.

        Specified by:
        getDefaultInstances in interface IFilter
        Specified by:
        getDefaultInstances in class AbstractFilter
        Returns:
        Default filter instances
      • isFileSupported

        public boolean isFileSupported​(java.io.BufferedReader reader)
        Returns whether the file is supported by the filter, by checking DB4 (DTD) or DB5 (Namespace) constraints.
        Overrides:
        isFileSupported in class XMLFilter
        Returns:
        true or false