Package org.w3c.tidy
Class Report
- java.lang.Object
-
- org.w3c.tidy.Report
-
public final class Report extends java.lang.ObjectError/informational message reporter. You should only need to edit the file TidyMessages.properties to localize HTML tidy.- Version:
- $Revision$ ($Author$)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACCESS_URLused to point to Web Accessibility Guidelines.static shortANCHOR_NOT_UNIQUEattribute: anchor not unique.static shortAPOS_UNDEFINEDinvalid entity: apos undefined in current definition.static shortATTR_VALUE_NOT_LCASEattribute: attribute value not lower case.static shortBACKSLASH_IN_URIattribute: backslash in URI.static shortBAD_ATTRIBUTE_VALUEattribute: bad attribute value.static shortBAD_ATTRIBUTE_VALUE_REPLACEDattribute: bad attribute value replaced.static shortBAD_CDATA_CONTENTbad cdata comment.static shortBAD_COMMENT_CHARSbad coment chars.static shortBAD_XML_COMMENTbad xml comment.static shortBADACCESS_SUMMARYConstant used for reporting of bad access summary.static shortBADFORM_SUMMARYConstant used for reporting of bad form summary.static shortCANT_BE_NESTEDelments can be nested.static shortCOERCE_TO_ENDTAGcoerce to end tag.static shortCOERCE_TO_ENDTAG_WARNcoerce to endtag.static shortCONTENT_AFTER_BODYcontent after body.static shortDISCARDED_CHARchar has been discarder.static shortDISCARDING_UNEXPECTEDdiscarding unexpected element.static shortDOCTYPE_AFTER_TAGSdoctype after tags.static shortDOCTYPE_GIVEN_SUMMARYConstant used for reporting of given doctype.static shortDOCUMENT_WITH_EXCESSIVE_NESTINGexcessive nesting that is considered a denial-of-service attack.static shortDTYPE_NOT_UPPER_CASEdoctype not upper case.static shortDUPLICATE_FRAMESETduplicate frameset.static shortELEMENT_NOT_EMPTYelement not empty.static shortENCODING_IO_CONFLICTencoding IO conflict.static shortENCODING_MISMATCHcharacter encoding: encoding mismatch.static shortENTITY_IN_IDattribute: entity in id.static shortESCAPED_ILLEGAL_URIattribute: escaped illegal URI.static shortFIXED_BACKSLASHattribute: fixed backslash.static shortFOUND_UTF16character encoding error: found utf16.static shortID_NAME_MISMATCHattribute: id and name mismatch.static shortILLEGAL_NESTINGillegal nesting.static shortILLEGAL_URI_REFERENCEattribute: illegal URI reference.static shortINCONSISTENT_NAMESPACEinconsistent namespace.static shortINCONSISTENT_VERSIONinconsistent version.static shortINSERTING_TAGinserting tag.static shortINVALID_ATTRIBUTEattribute: invalid attribute.static shortINVALID_NCRcharacter encoding: invalid NCR.static shortINVALID_SGML_CHARScharacter encoding: invalid sgml chars.static shortINVALID_URIcharacter encoding: nvalid URI.static shortINVALID_UTF16character encoding: invalid utf16.static shortINVALID_UTF8character encoding: invalid utf8.static shortINVALID_XML_IDattribute: invalid xml id.static shortJOINING_ATTRIBUTEattribute: joining attribute.static shortMALFORMED_COMMENTmalformed comment.static shortMALFORMED_DOCTYPEmalformed doctype.static shortMISSING_ATTR_VALUEattribute: missing attribute value.static shortMISSING_ATTRIBUTEattribute: missing attribute.static shortMISSING_DOCTYPEmissing doctype.static shortMISSING_ENDTAG_BEFOREmissing end tag before.static shortMISSING_ENDTAG_FORmissing an end tag.static shortMISSING_IMAGE_ALTaccessibility flaw: missing image map.static shortMISSING_IMAGE_MAPaccessibility flaw: missing image map.static shortMISSING_IMAGEMAPattribute: missing image map.static shortMISSING_LINK_ALTaccessibility flaw: missing link alt.static shortMISSING_QUOTEMARKattribute: missing quotemark.static shortMISSING_SEMICOLONinvalid entity: missing semicolon.static shortMISSING_SEMICOLON_NCRinvalid entity: missing semicolon.static shortMISSING_STARTTAGmissing start tag.static shortMISSING_SUMMARYaccessibility flaw: missing summary.static shortMISSING_TITLE_ELEMENTmissing title element.static shortMIXED_CONTENT_IN_BLOCKmixed content in block.static shortNESTED_EMPHASISnested emphasis.static shortNESTED_QUOTATIONnested quotation.static shortNEWLINE_IN_URIattribute: newline in URI.static shortNOFRAMES_CONTENTnoframes content.static shortNON_ASCIIcharacter encoding error: non ascii.static shortNON_MATCHING_ENDTAGnon matching end tag.static shortOBSOLETE_ELEMENTobsolete element.static shortPROPRIETARY_ATTR_VALUEattribute: proprietary attribute value.static shortPROPRIETARY_ATTRIBUTEattribute: proprietary attribute.static shortPROPRIETARY_ELEMENTproprietary element.static java.lang.StringRELEASE_DATE_STRINGRelease date String.static java.lang.StringRELEASE_VERSIONRelease version.static shortREPEATED_ATTRIBUTEattribute: repeated attribute.static shortREPLACED_CHARchar has been replaced.static shortREPLACING_ELEMENTreplacing element.static shortREPLACING_UNEX_ELEMENTreplacing unexcaped element.static shortREPORT_VERSION_SUMMARYConstant used for reporting of version summary.static shortSPACE_PRECEDING_XMLDECLspace preceding xml declaration.static shortSUSPECTED_MISSING_QUOTEsuspected missing quote.static shortTAG_NOT_ALLOWED_INtag not allowed in.static shortTOO_MANY_ELEMENTStoo many element.static shortTOO_MANY_ELEMENTS_INtoo many elements in.static shortTRIM_EMPTY_ELEMENTtrim empty element.static shortUNESCAPED_AMPERSANDinvalid entity: unescaped ampersand.static shortUNESCAPED_ELEMENTunescaped element.static shortUNEXPECTED_END_OF_FILEunexpected end of file.static shortUNEXPECTED_END_OF_FILE_ATTRattribute: unexpected end of file.static shortUNEXPECTED_ENDTAGunexpected end tag.static shortUNEXPECTED_ENDTAG_INunexpected endag in.static shortUNEXPECTED_EQUALSIGNattribute: expected equalsign.static shortUNEXPECTED_GTattribute: unexpected gt.static shortUNEXPECTED_QUOTEMARKattribute: unexpected quotemark.static shortUNKNOWN_ATTRIBUTEattribute: unknown attribute.static shortUNKNOWN_ELEMENTunknown element.static shortUNKNOWN_ENTITYinvalid entity: unknown entity.static shortUSING_BODYpresentation flaw: using body.static shortUSING_BR_INPLACE_OFunsing br in place of.static shortUSING_FONTpresentation flaw: using font.static shortUSING_FRAMESaccessibility flaw: using frames.static shortUSING_LAYERpresentation flaw: using layer.static shortUSING_NOBRpresentation flaw: using nobr.static shortUSING_NOFRAMESaccessibility flaw: using noframes.static shortUSING_SPACERpresentation flaw: using spacer.static shortVENDOR_SPECIFIC_CHARScharacter encoding: vendor specific chars.static shortWINDOWS_CHARScharacter encoding error: windows chars.static shortXML_ATTRIBUTE_VALUEattribute: xml attribute value.static shortXML_ID_SYNTAXattribute: id sintax.
-
Constructor Summary
Constructors Modifier Constructor Description protectedReport()Instantiated only in Tidy() constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessageListener(TidyMessageListener listener)Adds a message listener.voidattrError(Lexer lexer, Node node, AttVal attribute, short code)Prints error messages for attributes.voidbadArgument(java.lang.String key, java.lang.String value)Prints a "bad argument" error message.voidbadTree(java.io.PrintWriter errout)Prints the "bad tree" message.voidencodingError(Lexer lexer, int code, int c)Prints encoding error messages.voidentityError(Lexer lexer, short code, java.lang.String entity, int c)Prints entity error messages.voiderror(Lexer lexer, Node element, Node node, short code)Prints errors.voiderrorSummary(Lexer lexer)Prints error summary.voidgeneralInfo(java.io.PrintWriter errout)Prints tidy general info.protected java.lang.StringgetMessage(int errorCode, Lexer lexer, java.lang.String message, java.lang.Object[] params, TidyMessage.Level level)Generates a complete message for the warning/error.voidhelpText(java.io.PrintWriter out)Prints tidy help.voidmissingBody(java.io.PrintWriter errout)Prints the "missing body" message.voidneedsAuthorIntervention(java.io.PrintWriter errout)Prints the "needs author intervention" message.voidreportNumberOfSlides(java.io.PrintWriter errout, int count)Prints the number of generated slides.voidreportNumWarnings(java.io.PrintWriter errout, Lexer lexer)Prints the number of error/warnings found.voidreportVersion(java.io.PrintWriter errout, Lexer lexer, java.lang.String filename, Node doctype)Prints information for html version in input file.voidsetFilename(java.lang.String filename)Sets the current file name.voidshowVersion(java.io.PrintWriter p)print version information.voidunknownFile(java.io.PrintWriter errout, java.lang.String file)Prints the "unknown file" message.voidunknownOption(java.io.PrintWriter errout, char c)Prints the "unknown option" message.voidunknownOption(java.lang.String option)Prints an "unknown option" error message.voidwarning(Lexer lexer, Node element, Node node, short code)Prints warnings.
-
-
-
Field Detail
-
ACCESS_URL
public static final java.lang.String ACCESS_URL
used to point to Web Accessibility Guidelines.- See Also:
- Constant Field Values
-
RELEASE_VERSION
public static final java.lang.String RELEASE_VERSION
Release version.
-
RELEASE_DATE_STRING
public static final java.lang.String RELEASE_DATE_STRING
Release date String.
-
MISSING_SEMICOLON
public static final short MISSING_SEMICOLON
invalid entity: missing semicolon.- See Also:
- Constant Field Values
-
MISSING_SEMICOLON_NCR
public static final short MISSING_SEMICOLON_NCR
invalid entity: missing semicolon.- See Also:
- Constant Field Values
-
UNKNOWN_ENTITY
public static final short UNKNOWN_ENTITY
invalid entity: unknown entity.- See Also:
- Constant Field Values
-
UNESCAPED_AMPERSAND
public static final short UNESCAPED_AMPERSAND
invalid entity: unescaped ampersand.- See Also:
- Constant Field Values
-
APOS_UNDEFINED
public static final short APOS_UNDEFINED
invalid entity: apos undefined in current definition.- See Also:
- Constant Field Values
-
MISSING_ENDTAG_FOR
public static final short MISSING_ENDTAG_FOR
missing an end tag.- See Also:
- Constant Field Values
-
MISSING_ENDTAG_BEFORE
public static final short MISSING_ENDTAG_BEFORE
missing end tag before.- See Also:
- Constant Field Values
-
DISCARDING_UNEXPECTED
public static final short DISCARDING_UNEXPECTED
discarding unexpected element.- See Also:
- Constant Field Values
-
NESTED_EMPHASIS
public static final short NESTED_EMPHASIS
nested emphasis.- See Also:
- Constant Field Values
-
NON_MATCHING_ENDTAG
public static final short NON_MATCHING_ENDTAG
non matching end tag.- See Also:
- Constant Field Values
-
TAG_NOT_ALLOWED_IN
public static final short TAG_NOT_ALLOWED_IN
tag not allowed in.- See Also:
- Constant Field Values
-
MISSING_STARTTAG
public static final short MISSING_STARTTAG
missing start tag.- See Also:
- Constant Field Values
-
UNEXPECTED_ENDTAG
public static final short UNEXPECTED_ENDTAG
unexpected end tag.- See Also:
- Constant Field Values
-
USING_BR_INPLACE_OF
public static final short USING_BR_INPLACE_OF
unsing br in place of.- See Also:
- Constant Field Values
-
INSERTING_TAG
public static final short INSERTING_TAG
inserting tag.- See Also:
- Constant Field Values
-
SUSPECTED_MISSING_QUOTE
public static final short SUSPECTED_MISSING_QUOTE
suspected missing quote.- See Also:
- Constant Field Values
-
MISSING_TITLE_ELEMENT
public static final short MISSING_TITLE_ELEMENT
missing title element.- See Also:
- Constant Field Values
-
DUPLICATE_FRAMESET
public static final short DUPLICATE_FRAMESET
duplicate frameset.- See Also:
- Constant Field Values
-
CANT_BE_NESTED
public static final short CANT_BE_NESTED
elments can be nested.- See Also:
- Constant Field Values
-
OBSOLETE_ELEMENT
public static final short OBSOLETE_ELEMENT
obsolete element.- See Also:
- Constant Field Values
-
PROPRIETARY_ELEMENT
public static final short PROPRIETARY_ELEMENT
proprietary element.- See Also:
- Constant Field Values
-
UNKNOWN_ELEMENT
public static final short UNKNOWN_ELEMENT
unknown element.- See Also:
- Constant Field Values
-
TRIM_EMPTY_ELEMENT
public static final short TRIM_EMPTY_ELEMENT
trim empty element.- See Also:
- Constant Field Values
-
COERCE_TO_ENDTAG
public static final short COERCE_TO_ENDTAG
coerce to end tag.- See Also:
- Constant Field Values
-
ILLEGAL_NESTING
public static final short ILLEGAL_NESTING
illegal nesting.- See Also:
- Constant Field Values
-
NOFRAMES_CONTENT
public static final short NOFRAMES_CONTENT
noframes content.- See Also:
- Constant Field Values
-
CONTENT_AFTER_BODY
public static final short CONTENT_AFTER_BODY
content after body.- See Also:
- Constant Field Values
-
INCONSISTENT_VERSION
public static final short INCONSISTENT_VERSION
inconsistent version.- See Also:
- Constant Field Values
-
MALFORMED_COMMENT
public static final short MALFORMED_COMMENT
malformed comment.- See Also:
- Constant Field Values
-
BAD_COMMENT_CHARS
public static final short BAD_COMMENT_CHARS
bad coment chars.- See Also:
- Constant Field Values
-
BAD_XML_COMMENT
public static final short BAD_XML_COMMENT
bad xml comment.- See Also:
- Constant Field Values
-
BAD_CDATA_CONTENT
public static final short BAD_CDATA_CONTENT
bad cdata comment.- See Also:
- Constant Field Values
-
INCONSISTENT_NAMESPACE
public static final short INCONSISTENT_NAMESPACE
inconsistent namespace.- See Also:
- Constant Field Values
-
DOCTYPE_AFTER_TAGS
public static final short DOCTYPE_AFTER_TAGS
doctype after tags.- See Also:
- Constant Field Values
-
MALFORMED_DOCTYPE
public static final short MALFORMED_DOCTYPE
malformed doctype.- See Also:
- Constant Field Values
-
UNEXPECTED_END_OF_FILE
public static final short UNEXPECTED_END_OF_FILE
unexpected end of file.- See Also:
- Constant Field Values
-
DTYPE_NOT_UPPER_CASE
public static final short DTYPE_NOT_UPPER_CASE
doctype not upper case.- See Also:
- Constant Field Values
-
TOO_MANY_ELEMENTS
public static final short TOO_MANY_ELEMENTS
too many element.- See Also:
- Constant Field Values
-
UNESCAPED_ELEMENT
public static final short UNESCAPED_ELEMENT
unescaped element.- See Also:
- Constant Field Values
-
NESTED_QUOTATION
public static final short NESTED_QUOTATION
nested quotation.- See Also:
- Constant Field Values
-
ELEMENT_NOT_EMPTY
public static final short ELEMENT_NOT_EMPTY
element not empty.- See Also:
- Constant Field Values
-
ENCODING_IO_CONFLICT
public static final short ENCODING_IO_CONFLICT
encoding IO conflict.- See Also:
- Constant Field Values
-
MIXED_CONTENT_IN_BLOCK
public static final short MIXED_CONTENT_IN_BLOCK
mixed content in block.- See Also:
- Constant Field Values
-
MISSING_DOCTYPE
public static final short MISSING_DOCTYPE
missing doctype.- See Also:
- Constant Field Values
-
SPACE_PRECEDING_XMLDECL
public static final short SPACE_PRECEDING_XMLDECL
space preceding xml declaration.- See Also:
- Constant Field Values
-
TOO_MANY_ELEMENTS_IN
public static final short TOO_MANY_ELEMENTS_IN
too many elements in.- See Also:
- Constant Field Values
-
UNEXPECTED_ENDTAG_IN
public static final short UNEXPECTED_ENDTAG_IN
unexpected endag in.- See Also:
- Constant Field Values
-
DOCUMENT_WITH_EXCESSIVE_NESTING
public static final short DOCUMENT_WITH_EXCESSIVE_NESTING
excessive nesting that is considered a denial-of-service attack.- See Also:
- Constant Field Values
-
REPLACING_ELEMENT
public static final short REPLACING_ELEMENT
replacing element.- See Also:
- Constant Field Values
-
REPLACING_UNEX_ELEMENT
public static final short REPLACING_UNEX_ELEMENT
replacing unexcaped element.- See Also:
- Constant Field Values
-
COERCE_TO_ENDTAG_WARN
public static final short COERCE_TO_ENDTAG_WARN
coerce to endtag.- See Also:
- Constant Field Values
-
UNKNOWN_ATTRIBUTE
public static final short UNKNOWN_ATTRIBUTE
attribute: unknown attribute.- See Also:
- Constant Field Values
-
MISSING_ATTRIBUTE
public static final short MISSING_ATTRIBUTE
attribute: missing attribute.- See Also:
- Constant Field Values
-
MISSING_ATTR_VALUE
public static final short MISSING_ATTR_VALUE
attribute: missing attribute value.- See Also:
- Constant Field Values
-
BAD_ATTRIBUTE_VALUE
public static final short BAD_ATTRIBUTE_VALUE
attribute: bad attribute value.- See Also:
- Constant Field Values
-
UNEXPECTED_GT
public static final short UNEXPECTED_GT
attribute: unexpected gt.- See Also:
- Constant Field Values
-
PROPRIETARY_ATTRIBUTE
public static final short PROPRIETARY_ATTRIBUTE
attribute: proprietary attribute.- See Also:
- Constant Field Values
-
PROPRIETARY_ATTR_VALUE
public static final short PROPRIETARY_ATTR_VALUE
attribute: proprietary attribute value.- See Also:
- Constant Field Values
-
REPEATED_ATTRIBUTE
public static final short REPEATED_ATTRIBUTE
attribute: repeated attribute.- See Also:
- Constant Field Values
-
MISSING_IMAGEMAP
public static final short MISSING_IMAGEMAP
attribute: missing image map.- See Also:
- Constant Field Values
-
XML_ATTRIBUTE_VALUE
public static final short XML_ATTRIBUTE_VALUE
attribute: xml attribute value.- See Also:
- Constant Field Values
-
MISSING_QUOTEMARK
public static final short MISSING_QUOTEMARK
attribute: missing quotemark.- See Also:
- Constant Field Values
-
UNEXPECTED_QUOTEMARK
public static final short UNEXPECTED_QUOTEMARK
attribute: unexpected quotemark.- See Also:
- Constant Field Values
-
ID_NAME_MISMATCH
public static final short ID_NAME_MISMATCH
attribute: id and name mismatch.- See Also:
- Constant Field Values
-
BACKSLASH_IN_URI
public static final short BACKSLASH_IN_URI
attribute: backslash in URI.- See Also:
- Constant Field Values
-
FIXED_BACKSLASH
public static final short FIXED_BACKSLASH
attribute: fixed backslash.- See Also:
- Constant Field Values
-
ILLEGAL_URI_REFERENCE
public static final short ILLEGAL_URI_REFERENCE
attribute: illegal URI reference.- See Also:
- Constant Field Values
-
ESCAPED_ILLEGAL_URI
public static final short ESCAPED_ILLEGAL_URI
attribute: escaped illegal URI.- See Also:
- Constant Field Values
-
NEWLINE_IN_URI
public static final short NEWLINE_IN_URI
attribute: newline in URI.- See Also:
- Constant Field Values
-
ANCHOR_NOT_UNIQUE
public static final short ANCHOR_NOT_UNIQUE
attribute: anchor not unique.- See Also:
- Constant Field Values
-
ENTITY_IN_ID
public static final short ENTITY_IN_ID
attribute: entity in id.- See Also:
- Constant Field Values
-
JOINING_ATTRIBUTE
public static final short JOINING_ATTRIBUTE
attribute: joining attribute.- See Also:
- Constant Field Values
-
UNEXPECTED_EQUALSIGN
public static final short UNEXPECTED_EQUALSIGN
attribute: expected equalsign.- See Also:
- Constant Field Values
-
ATTR_VALUE_NOT_LCASE
public static final short ATTR_VALUE_NOT_LCASE
attribute: attribute value not lower case.- See Also:
- Constant Field Values
-
XML_ID_SYNTAX
public static final short XML_ID_SYNTAX
attribute: id sintax.- See Also:
- Constant Field Values
-
INVALID_ATTRIBUTE
public static final short INVALID_ATTRIBUTE
attribute: invalid attribute.- See Also:
- Constant Field Values
-
BAD_ATTRIBUTE_VALUE_REPLACED
public static final short BAD_ATTRIBUTE_VALUE_REPLACED
attribute: bad attribute value replaced.- See Also:
- Constant Field Values
-
INVALID_XML_ID
public static final short INVALID_XML_ID
attribute: invalid xml id.- See Also:
- Constant Field Values
-
UNEXPECTED_END_OF_FILE_ATTR
public static final short UNEXPECTED_END_OF_FILE_ATTR
attribute: unexpected end of file.- See Also:
- Constant Field Values
-
VENDOR_SPECIFIC_CHARS
public static final short VENDOR_SPECIFIC_CHARS
character encoding: vendor specific chars.- See Also:
- Constant Field Values
-
INVALID_SGML_CHARS
public static final short INVALID_SGML_CHARS
character encoding: invalid sgml chars.- See Also:
- Constant Field Values
-
INVALID_UTF8
public static final short INVALID_UTF8
character encoding: invalid utf8.- See Also:
- Constant Field Values
-
INVALID_UTF16
public static final short INVALID_UTF16
character encoding: invalid utf16.- See Also:
- Constant Field Values
-
ENCODING_MISMATCH
public static final short ENCODING_MISMATCH
character encoding: encoding mismatch.- See Also:
- Constant Field Values
-
INVALID_URI
public static final short INVALID_URI
character encoding: nvalid URI.- See Also:
- Constant Field Values
-
INVALID_NCR
public static final short INVALID_NCR
character encoding: invalid NCR.- See Also:
- Constant Field Values
-
DOCTYPE_GIVEN_SUMMARY
public static final short DOCTYPE_GIVEN_SUMMARY
Constant used for reporting of given doctype.- See Also:
- Constant Field Values
-
REPORT_VERSION_SUMMARY
public static final short REPORT_VERSION_SUMMARY
Constant used for reporting of version summary.- See Also:
- Constant Field Values
-
BADACCESS_SUMMARY
public static final short BADACCESS_SUMMARY
Constant used for reporting of bad access summary.- See Also:
- Constant Field Values
-
BADFORM_SUMMARY
public static final short BADFORM_SUMMARY
Constant used for reporting of bad form summary.- See Also:
- Constant Field Values
-
MISSING_IMAGE_ALT
public static final short MISSING_IMAGE_ALT
accessibility flaw: missing image map.- See Also:
- Constant Field Values
-
MISSING_LINK_ALT
public static final short MISSING_LINK_ALT
accessibility flaw: missing link alt.- See Also:
- Constant Field Values
-
MISSING_SUMMARY
public static final short MISSING_SUMMARY
accessibility flaw: missing summary.- See Also:
- Constant Field Values
-
MISSING_IMAGE_MAP
public static final short MISSING_IMAGE_MAP
accessibility flaw: missing image map.- See Also:
- Constant Field Values
-
USING_FRAMES
public static final short USING_FRAMES
accessibility flaw: using frames.- See Also:
- Constant Field Values
-
USING_NOFRAMES
public static final short USING_NOFRAMES
accessibility flaw: using noframes.- See Also:
- Constant Field Values
-
USING_SPACER
public static final short USING_SPACER
presentation flaw: using spacer.- See Also:
- Constant Field Values
-
USING_LAYER
public static final short USING_LAYER
presentation flaw: using layer.- See Also:
- Constant Field Values
-
USING_NOBR
public static final short USING_NOBR
presentation flaw: using nobr.- See Also:
- Constant Field Values
-
USING_FONT
public static final short USING_FONT
presentation flaw: using font.- See Also:
- Constant Field Values
-
USING_BODY
public static final short USING_BODY
presentation flaw: using body.- See Also:
- Constant Field Values
-
WINDOWS_CHARS
public static final short WINDOWS_CHARS
character encoding error: windows chars.- See Also:
- Constant Field Values
-
NON_ASCII
public static final short NON_ASCII
character encoding error: non ascii.- See Also:
- Constant Field Values
-
FOUND_UTF16
public static final short FOUND_UTF16
character encoding error: found utf16.- See Also:
- Constant Field Values
-
REPLACED_CHAR
public static final short REPLACED_CHAR
char has been replaced.- See Also:
- Constant Field Values
-
DISCARDED_CHAR
public static final short DISCARDED_CHAR
char has been discarder.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMessage
protected java.lang.String getMessage(int errorCode, Lexer lexer, java.lang.String message, java.lang.Object[] params, TidyMessage.Level level) throws java.util.MissingResourceExceptionGenerates a complete message for the warning/error. The message is composed by:- position in file
- prefix for the error level (warning: | error:)
- message read from ResourceBundle
- optional parameters added to message using MessageFormat
- Parameters:
errorCode- tidy error codelexer- Lexermessage- key for the ResourceBundleparams- optional parameters added with MessageFormatlevel- message level. One ofTidyMessage.LEVEL_ERROR,TidyMessage.LEVEL_WARNING,TidyMessage.LEVEL_INFO- Returns:
- formatted message
- Throws:
java.util.MissingResourceException- ifmessagekey is not available in jtidy resource bundle.- See Also:
TidyMessage
-
showVersion
public void showVersion(java.io.PrintWriter p)
print version information.- Parameters:
p- printWriter
-
unknownOption
public void unknownOption(java.lang.String option)
Prints an "unknown option" error message. Lexer is not defined when this is called.- Parameters:
option- unknown option name
-
badArgument
public void badArgument(java.lang.String key, java.lang.String value)Prints a "bad argument" error message. Lexer is not defined when this is called.- Parameters:
key- argument namevalue- bad argument value
-
encodingError
public void encodingError(Lexer lexer, int code, int c)
Prints encoding error messages.- Parameters:
lexer- Lexercode- error codec- invalid char
-
entityError
public void entityError(Lexer lexer, short code, java.lang.String entity, int c)
Prints entity error messages.- Parameters:
lexer- Lexercode- error codeentity- invalid entity Stringc- invalid char
-
attrError
public void attrError(Lexer lexer, Node node, AttVal attribute, short code)
Prints error messages for attributes.- Parameters:
lexer- Lexernode- current tagattribute- attributecode- error code
-
warning
public void warning(Lexer lexer, Node element, Node node, short code)
Prints warnings.- Parameters:
lexer- Lexerelement- parent/missing tagnode- current tagcode- error code
-
error
public void error(Lexer lexer, Node element, Node node, short code)
Prints errors.- Parameters:
lexer- Lexerelement- parent/missing tagnode- current tagcode- error code
-
errorSummary
public void errorSummary(Lexer lexer)
Prints error summary.- Parameters:
lexer- Lexer
-
unknownOption
public void unknownOption(java.io.PrintWriter errout, char c)Prints the "unknown option" message.- Parameters:
errout- PrintWriterc- invalid option char
-
unknownFile
public void unknownFile(java.io.PrintWriter errout, java.lang.String file)Prints the "unknown file" message.- Parameters:
errout- PrintWriterfile- invalid file name
-
needsAuthorIntervention
public void needsAuthorIntervention(java.io.PrintWriter errout)
Prints the "needs author intervention" message.- Parameters:
errout- PrintWriter
-
missingBody
public void missingBody(java.io.PrintWriter errout)
Prints the "missing body" message.- Parameters:
errout- PrintWriter
-
reportNumberOfSlides
public void reportNumberOfSlides(java.io.PrintWriter errout, int count)Prints the number of generated slides.- Parameters:
errout- PrintWritercount- slides count
-
generalInfo
public void generalInfo(java.io.PrintWriter errout)
Prints tidy general info.- Parameters:
errout- PrintWriter
-
setFilename
public void setFilename(java.lang.String filename)
Sets the current file name.- Parameters:
filename- current file.
-
reportVersion
public void reportVersion(java.io.PrintWriter errout, Lexer lexer, java.lang.String filename, Node doctype)Prints information for html version in input file.- Parameters:
errout- PrintWriterlexer- Lexerfilename- file namedoctype- doctype Node
-
reportNumWarnings
public void reportNumWarnings(java.io.PrintWriter errout, Lexer lexer)Prints the number of error/warnings found.- Parameters:
errout- PrintWriterlexer- Lexer
-
helpText
public void helpText(java.io.PrintWriter out)
Prints tidy help.- Parameters:
out- PrintWriter
-
badTree
public void badTree(java.io.PrintWriter errout)
Prints the "bad tree" message.- Parameters:
errout- PrintWriter
-
addMessageListener
public void addMessageListener(TidyMessageListener listener)
Adds a message listener.- Parameters:
listener- TidyMessageListener
-
-