Package org.w3c.tidy
Class Dict
- java.lang.Object
-
- org.w3c.tidy.Dict
-
public class Dict extends java.lang.ObjectTag 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: 502 $ ($Author: fgiust $)
-
-
Field Summary
Fields Modifier and Type Field Description private TagCheckchkattrsValidator for this tag.static intCM_BLOCKContent model: block.static intCM_DEFLISTContent model: definition list.static intCM_EMPTYContent model: empty.static intCM_FIELDContent model: field.static intCM_FRAMESContent model: frames.static intCM_HEADContent model: head.static intCM_HEADINGContent model: heading.static intCM_HTMLContent model: html.static intCM_IMGContent model: img.static intCM_INLINEContent model: inline.static intCM_LISTContent model: list.static intCM_MIXEDContent model: mixed.static intCM_NEWContent model: new.static intCM_NO_INDENTContent model: no indent.static intCM_OBJECTContent model: object.static intCM_OBSOLETEContent model: obsolete.static intCM_OMITSTContent model: omitst.static intCM_OPTContent model: opt.static intCM_PARAMContent model: param.static intCM_ROWContent model: row.static intCM_ROWGRPContent model: rowgroup.static intCM_TABLEContent model: table.static intCM_UNKNOWNContent model: unknown.protected intmodelmodel (CM_* constants).protected java.lang.StringnameTag name.private ParserparserParser for this tag.static shortTAGTYPE_BLOCKtypes of tags that the user can define: block tag.static shortTAGTYPE_EMPTYtypes of tags that the user can define: empty tag.static shortTAGTYPE_INLINEtypes of tags that the user can define: inline tag.static shortTAGTYPE_PREtypes of tags that the user can define: pre tag.static shortVERS_ALLtags/attrs in any version.static shortVERS_BASICVersion: xhtml basic.static shortVERS_EVENTSversions with on...static shortVERS_FRAMESETVersion: html 4.0 frameset.static shortVERS_FROM32tags/attrs in all versions from HTML 3.2 onwards.static shortVERS_HTML20Version: html 2.0.static shortVERS_HTML32Version: html 3.2.static shortVERS_HTML40tags/attrs in HTML4 but not in earlier version.static shortVERS_HTML40_LOOSEVersion: html 4.0 transitional.static shortVERS_HTML40_STRICTVersion: html 4.0 strict.static shortVERS_IFRAMEtags/attrs in HTML 4 loose and frameset.static shortVERS_LOOSEtags/attrs which are in all versions of HTML except strict.static shortVERS_MALFORMEDVersion: malformed.static shortVERS_MICROSOFTVersion: microsoft.static shortVERS_NETSCAPEVersion: netscape.static shortVERS_PROPRIETARYall tags and attributes are ok in proprietary version of HTML.static shortVERS_SUNVersion: sun.static shortVERS_UNKNOWNVersion: unknown.static shortVERS_XHTML11Version: xhtml 1.1.static shortVERS_XMLVersion: xml.protected shortversionsVersion in which this tag is defined.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagCheckgetChkattrs()Getter forchkattrs.intgetModel()Getter formodel.java.lang.StringgetName()Getter forname.ParsergetParser()Getter forparser.shortgetVersions()Getter forversions.voidsetChkattrs(TagCheck chkattrs)Setter forchkattrs.voidsetParser(Parser parser)Setter forparser.
-
-
-
Field Detail
-
CM_UNKNOWN
public static final int CM_UNKNOWN
Content model: unknown.- See Also:
- Constant Field Values
-
CM_EMPTY
public static final int CM_EMPTY
Content model: empty.- See Also:
- Constant Field Values
-
CM_HTML
public static final int CM_HTML
Content model: html.- See Also:
- Constant Field Values
-
CM_HEAD
public static final int CM_HEAD
Content model: head.- See Also:
- Constant Field Values
-
CM_BLOCK
public static final int CM_BLOCK
Content model: block.- See Also:
- Constant Field Values
-
CM_INLINE
public static final int CM_INLINE
Content model: inline.- See Also:
- Constant Field Values
-
CM_LIST
public static final int CM_LIST
Content model: list.- See Also:
- Constant Field Values
-
CM_DEFLIST
public static final int CM_DEFLIST
Content model: definition list.- See Also:
- Constant Field Values
-
CM_TABLE
public static final int CM_TABLE
Content model: table.- See Also:
- Constant Field Values
-
CM_ROWGRP
public static final int CM_ROWGRP
Content model: rowgroup.- See Also:
- Constant Field Values
-
CM_ROW
public static final int CM_ROW
Content model: row.- See Also:
- Constant Field Values
-
CM_FIELD
public static final int CM_FIELD
Content model: field.- See Also:
- Constant Field Values
-
CM_OBJECT
public static final int CM_OBJECT
Content model: object.- See Also:
- Constant Field Values
-
CM_PARAM
public static final int CM_PARAM
Content model: param.- See Also:
- Constant Field Values
-
CM_FRAMES
public static final int CM_FRAMES
Content model: frames.- See Also:
- Constant Field Values
-
CM_HEADING
public static final int CM_HEADING
Content model: heading.- See Also:
- Constant Field Values
-
CM_OPT
public static final int CM_OPT
Content model: opt.- See Also:
- Constant Field Values
-
CM_IMG
public static final int CM_IMG
Content model: img.- See Also:
- Constant Field Values
-
CM_MIXED
public static final int CM_MIXED
Content model: mixed.- See Also:
- Constant Field Values
-
CM_NO_INDENT
public static final int CM_NO_INDENT
Content model: no indent.- See Also:
- Constant Field Values
-
CM_OBSOLETE
public static final int CM_OBSOLETE
Content model: obsolete.- See Also:
- Constant Field Values
-
CM_NEW
public static final int CM_NEW
Content model: new.- See Also:
- Constant Field Values
-
CM_OMITST
public static final int CM_OMITST
Content model: omitst.- See Also:
- Constant Field Values
-
VERS_UNKNOWN
public static final short VERS_UNKNOWN
Version: unknown.- See Also:
- Constant Field Values
-
VERS_HTML20
public static final short VERS_HTML20
Version: html 2.0.- See Also:
- Constant Field Values
-
VERS_HTML32
public static final short VERS_HTML32
Version: html 3.2.- See Also:
- Constant Field Values
-
VERS_HTML40_STRICT
public static final short VERS_HTML40_STRICT
Version: html 4.0 strict.- See Also:
- Constant Field Values
-
VERS_HTML40_LOOSE
public static final short VERS_HTML40_LOOSE
Version: html 4.0 transitional.- See Also:
- Constant Field Values
-
VERS_FRAMESET
public static final short VERS_FRAMESET
Version: html 4.0 frameset.- See Also:
- Constant Field Values
-
VERS_XML
public static final short VERS_XML
Version: xml.- See Also:
- Constant Field Values
-
VERS_NETSCAPE
public static final short VERS_NETSCAPE
Version: netscape.- See Also:
- Constant Field Values
-
VERS_MICROSOFT
public static final short VERS_MICROSOFT
Version: microsoft.- See Also:
- Constant Field Values
-
VERS_SUN
public static final short VERS_SUN
Version: sun.- See Also:
- Constant Field Values
-
VERS_MALFORMED
public static final short VERS_MALFORMED
Version: malformed.- See Also:
- Constant Field Values
-
VERS_XHTML11
public static final short VERS_XHTML11
Version: xhtml 1.1.- See Also:
- Constant Field Values
-
VERS_BASIC
public static final short VERS_BASIC
Version: xhtml basic.- See Also:
- Constant Field Values
-
VERS_PROPRIETARY
public static final short VERS_PROPRIETARY
all tags and attributes are ok in proprietary version of HTML.- See Also:
- Constant Field Values
-
VERS_HTML40
public static final short VERS_HTML40
tags/attrs in HTML4 but not in earlier version.- See Also:
- Constant Field Values
-
VERS_LOOSE
public static final short VERS_LOOSE
tags/attrs which are in all versions of HTML except strict.- See Also:
- Constant Field Values
-
VERS_IFRAME
public static final short VERS_IFRAME
tags/attrs in HTML 4 loose and frameset.- See Also:
- Constant Field Values
-
VERS_FROM32
public static final short VERS_FROM32
tags/attrs in all versions from HTML 3.2 onwards.- See Also:
- Constant Field Values
-
VERS_EVENTS
public static final short VERS_EVENTS
versions with on... attributes.- See Also:
- Constant Field Values
-
VERS_ALL
public static final short VERS_ALL
tags/attrs in any version.- See Also:
- Constant Field Values
-
TAGTYPE_EMPTY
public static final short TAGTYPE_EMPTY
types of tags that the user can define: empty tag.- See Also:
- Constant Field Values
-
TAGTYPE_INLINE
public static final short TAGTYPE_INLINE
types of tags that the user can define: inline tag.- See Also:
- Constant Field Values
-
TAGTYPE_BLOCK
public static final short TAGTYPE_BLOCK
types of tags that the user can define: block tag.- See Also:
- Constant Field Values
-
TAGTYPE_PRE
public static final short TAGTYPE_PRE
types of tags that the user can define: pre tag.- See Also:
- Constant Field Values
-
name
protected java.lang.String name
Tag name.
-
versions
protected short versions
Version in which this tag is defined.
-
model
protected int model
model (CM_* constants).
-
parser
private Parser parser
Parser for this tag.
-
chkattrs
private TagCheck chkattrs
Validator for this tag.
-
-
Constructor Detail
-
Dict
public Dict(java.lang.String name, short versions, int model, Parser parser, TagCheck chkattrs)Instantiates a new Tag definition.- Parameters:
name- tag nameversions- version in which this tag is definedmodel- model (CM_* constants)parser- parser for this tagchkattrs- validator for this tag (can be null)
-
-
Method Detail
-
getChkattrs
public TagCheck getChkattrs()
Getter forchkattrs.- Returns:
- Returns the chkattrs.
-
getModel
public int getModel()
Getter formodel.- Returns:
- Returns the model.
-
getName
public java.lang.String getName()
Getter forname.- Returns:
- Returns the name.
-
getParser
public Parser getParser()
Getter forparser.- Returns:
- Returns the parser.
-
setChkattrs
public void setChkattrs(TagCheck chkattrs)
Setter forchkattrs.- Parameters:
chkattrs- The chkattrs to set.
-
getVersions
public short getVersions()
Getter forversions.- Returns:
- Returns the versions.
-
setParser
public void setParser(Parser parser)
Setter forparser.- Parameters:
parser- The parser to set.
-
-