Package org.w3c.tidy

Class Dict


  • public class Dict
    extends Object
    Tag dictionary node. If the document uses just HTML 2.0 tags and attributes described it as HTML 2.0 Similarly for HTML 3.2 and the 3 flavors of HTML 4.0. If there are proprietary tags and attributes then describe it as HTML Proprietary. If it includes the xml-lang or xmlns attributes but is otherwise HTML 2.0, 3.2 or 4.0 then describe it as one of the flavors of Voyager (strict, loose or frameset).
    Version:
    $Revision$ ($Author$)
    Author:
    Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
    • Constructor Detail

      • Dict

        public Dict​(String name,
                    EnumSet<HtmlVersion> versions,
                    int model,
                    Parser parser,
                    TagCheck chkattrs)
        Instantiates a new Tag definition.
        Parameters:
        name - tag name
        versions - version in which this tag is defined
        model - model (CM_* constants)
        parser - parser for this tag
        chkattrs - validator for this tag (can be null)
    • Method Detail

      • combine

        public static <T extends Enum<T>> EnumSet<T> combine​(EnumSet<T> set1,
                                                             EnumSet<T> set2)
        The combined set of literals.
      • getChkattrs

        public TagCheck getChkattrs()
        Getter for chkattrs.
        Returns:
        Returns the chkattrs.
      • getModel

        public int getModel()
        Getter for model.
        Returns:
        Returns the model.
      • getName

        public String getName()
        Getter for name.
        Returns:
        Returns the name.
      • getParser

        public Parser getParser()
        Getter for parser.
        Returns:
        Returns the parser.
      • setChkattrs

        public void setChkattrs​(TagCheck chkattrs)
        Setter for chkattrs.
        Parameters:
        chkattrs - The chkattrs to set.
      • getVersions

        public EnumSet<HtmlVersion> getVersions()
        Getter for versions.
        Returns:
        Returns the versions.
      • setParser

        public void setParser​(Parser parser)
        Setter for parser.
        Parameters:
        parser - The parser to set.