1 5 6 package org.w3c.tidy; 7 8 33 34 public class Dict { 35 36 37 38 public static final int CM_UNKNOWN = 0; 39 public static final int CM_EMPTY = (1 << 0); 40 public static final int CM_HTML = (1 << 1); 41 public static final int CM_HEAD = (1 << 2); 42 public static final int CM_BLOCK = (1 << 3); 43 public static final int CM_INLINE = (1 << 4); 44 public static final int CM_LIST = (1 << 5); 45 public static final int CM_DEFLIST = (1 << 6); 46 public static final int CM_TABLE = (1 << 7); 47 public static final int CM_ROWGRP = (1 << 8); 48 public static final int CM_ROW = (1 << 9); 49 public static final int CM_FIELD = (1 << 10); 50 public static final int CM_OBJECT = (1 << 11); 51 public static final int CM_PARAM = (1 << 12); 52 public static final int CM_FRAMES = (1 << 13); 53 public static final int CM_HEADING = (1 << 14); 54 public static final int CM_OPT = (1 << 15); 55 public static final int CM_IMG = (1 << 16); 56 public static final int CM_MIXED = (1 << 17); 57 public static final int CM_NO_INDENT = (1 << 18); 58 public static final int CM_OBSOLETE = (1 << 19); 59 public static final int CM_NEW = (1 << 20); 60 public static final int CM_OMITST = (1 << 21); 61 62 70 71 public static final short VERS_UNKNOWN = 0; 72 73 public static final short VERS_HTML20 = 1; 74 public static final short VERS_HTML32 = 2; 75 public static final short VERS_HTML40_STRICT = 4; 76 public static final short VERS_HTML40_LOOSE = 8; 77 public static final short VERS_FRAMES = 16; 78 public static final short VERS_XML = 32; 79 80 public static final short VERS_NETSCAPE = 64; 81 public static final short VERS_MICROSOFT = 128; 82 public static final short VERS_SUN = 256; 83 84 public static final short VERS_MALFORMED = 512; 85 86 public static final short VERS_ALL = (VERS_HTML20|VERS_HTML32|VERS_HTML40_STRICT|VERS_HTML40_LOOSE|VERS_FRAMES); 87 public static final short VERS_HTML40 = (VERS_HTML40_STRICT|VERS_HTML40_LOOSE|VERS_FRAMES); 88 public static final short VERS_LOOSE = (VERS_HTML32|VERS_HTML40_LOOSE|VERS_FRAMES); 89 public static final short VERS_IFRAMES = (VERS_HTML40_LOOSE|VERS_FRAMES); 90 public static final short VERS_FROM32 = (VERS_HTML40_STRICT|VERS_LOOSE); 91 public static final short VERS_PROPRIETARY = (VERS_NETSCAPE|VERS_MICROSOFT|VERS_SUN); 92 93 public static final short VERS_EVERYTHING = (VERS_ALL|VERS_PROPRIETARY); 94 95 public Dict( String name, short versions, int model, 96 Parser parser, CheckAttribs chkattrs ) 97 { 98 this.name = name; 99 this.versions = versions; 100 this.model = model; 101 this.parser = parser; 102 this.chkattrs = chkattrs; 103 } 104 105 public String name; 106 public short versions; 107 public int model; 108 public Parser parser; 109 public CheckAttribs chkattrs; 110 } 111 | Popular Tags |