|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnu.validator.htmlparser.impl.Tokenizer
nu.validator.htmlparser.impl.ErrorReportingTokenizer
public class ErrorReportingTokenizer
Field Summary |
---|
Constructor Summary | |
---|---|
ErrorReportingTokenizer(TokenHandler tokenHandler)
|
|
ErrorReportingTokenizer(TokenHandler tokenHandler,
boolean newAttributesEachTime)
|
Method Summary | |
---|---|
protected char |
checkChar(char[] buf,
int pos)
|
protected void |
errAstralNonCharacter(int ch)
|
protected void |
errAttributeValueMissing()
|
protected void |
errBadCharAfterLt(char c)
|
protected void |
errBadCharBeforeAttributeNameOrNull(char c)
|
protected void |
errBogusComment()
|
protected void |
errBogusDoctype()
|
protected void |
errCharRefLacksSemicolon()
|
protected void |
errConsecutiveHyphens()
|
protected void |
errDuplicateAttribute()
|
protected void |
errEofAfterLt()
|
protected void |
errEofInAttributeName()
|
protected void |
errEofInAttributeValue()
|
protected void |
errEofInComment()
|
protected void |
errEofInDoctype()
|
protected void |
errEofInEndTag()
|
protected void |
errEofInPublicId()
|
protected void |
errEofInSystemId()
|
protected void |
errEofInTagName()
|
protected void |
errEofWithoutGt()
|
protected void |
errEqualsSignBeforeAttributeName()
|
protected void |
errExpectedPublicId()
|
protected void |
errExpectedSystemId()
|
protected void |
errGarbageAfterLtSlash()
|
protected void |
errGtInPublicId()
|
protected void |
errGtInSystemId()
|
protected void |
errHtml4LtSlashInRcdata(char folded)
|
protected void |
errHtml4NonNameInUnquotedAttribute(char c)
|
protected void |
errHtml4XmlVoidSyntax()
|
protected void |
errHyphenHyphenBang()
|
protected void |
errLtGt()
|
protected void |
errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char c)
|
protected void |
errLtSlashGt()
|
protected void |
errMissingSpaceBeforeDoctypeName()
|
protected void |
errNamelessDoctype()
|
protected void |
errNcrControlChar()
|
protected char |
errNcrControlChar(char ch)
|
protected void |
errNcrCr()
|
protected void |
errNcrInC1Range()
|
protected char |
errNcrNonCharacter(char ch)
|
protected void |
errNcrOutOfRange()
|
protected void |
errNcrSurrogate()
|
protected void |
errNcrUnassigned()
|
protected void |
errNcrZero()
|
protected void |
errNoDigitsInNCR()
|
protected void |
errNoNamedCharacterMatch()
|
protected void |
errNoSpaceBetweenAttributes()
|
protected void |
errNoSpaceBetweenDoctypePublicKeywordAndQuote()
|
protected void |
errNoSpaceBetweenDoctypeSystemKeywordAndQuote()
|
protected void |
errNoSpaceBetweenPublicAndSystemIds()
|
protected void |
errNotSemicolonTerminated()
|
protected void |
errPrematureEndOfComment()
|
protected void |
errProcessingInstruction()
|
protected void |
errQuoteBeforeAttributeName(char c)
|
protected void |
errQuoteOrLtInAttributeNameOrNull(char c)
|
protected void |
errSlashNotFollowedByGt()
|
protected void |
errUnescapedAmpersandInterpretedAsCharacterReference()
|
protected void |
errUnquotedAttributeValOrNull(char c)
|
protected void |
errWarnLtSlashInRcdata()
|
protected void |
flushChars(char[] buf,
int pos)
Flushes coalesced character tokens. |
int |
getCol()
Returns the col. |
int |
getColumnNumber()
|
int |
getLine()
Returns the line. |
int |
getLineNumber()
|
boolean |
isAlreadyComplainedAboutNonAscii()
Returns the alreadyComplainedAboutNonAscii. |
boolean |
isNextCharOnNewLine()
Returns the nextCharOnNewLine. |
protected void |
maybeErrAttributesOnEndTag(HtmlAttributes attrs)
|
protected void |
maybeErrSlashInEndTag(boolean selfClosing)
|
protected void |
maybeWarnPrivateUse(char ch)
|
protected void |
maybeWarnPrivateUseAstral()
|
void |
note(java.lang.String profile,
java.lang.String message)
Reports on an event based on profile selected. |
protected void |
noteAttributeWithoutValue()
|
protected void |
noteUnquotedAttributeValue()
|
void |
setContentNonXmlCharPolicy(XmlViolationPolicy contentNonXmlCharPolicy)
Sets the contentNonXmlCharPolicy. |
void |
setErrorProfile(java.util.HashMap<java.lang.String,java.lang.String> errorProfileMap)
Sets the errorProfile. |
void |
setTransitionBaseOffset(int offset)
Sets an offset to be added to the position reported to TransitionHandler . |
void |
setTransitionHandler(TransitionHandler transitionHandler)
Sets the transitionHandler. |
protected void |
silentCarriageReturn()
|
protected void |
silentLineFeed()
|
protected void |
startErrorReporting()
|
protected int |
transition(int from,
int to,
boolean reconsume,
int pos)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorReportingTokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime)
tokenHandler
- newAttributesEachTime
- public ErrorReportingTokenizer(TokenHandler tokenHandler)
tokenHandler
- Method Detail |
---|
public int getLineNumber()
getLineNumber
in interface org.xml.sax.Locator
getLineNumber
in class Tokenizer
Locator.getLineNumber()
public int getColumnNumber()
getColumnNumber
in interface org.xml.sax.Locator
getColumnNumber
in class Tokenizer
Locator.getColumnNumber()
public void setContentNonXmlCharPolicy(XmlViolationPolicy contentNonXmlCharPolicy)
setContentNonXmlCharPolicy
in class Tokenizer
contentNonXmlCharPolicy
- the contentNonXmlCharPolicy to setpublic void setErrorProfile(java.util.HashMap<java.lang.String,java.lang.String> errorProfileMap)
errorProfile
- public void note(java.lang.String profile, java.lang.String message) throws org.xml.sax.SAXException
profile
- the profile this message belongs tomessage
- the message itself
org.xml.sax.SAXException
protected void startErrorReporting() throws org.xml.sax.SAXException
startErrorReporting
in class Tokenizer
org.xml.sax.SAXException
protected void silentCarriageReturn()
silentCarriageReturn
in class Tokenizer
protected void silentLineFeed()
silentLineFeed
in class Tokenizer
public int getLine()
getLine
in class Tokenizer
public int getCol()
getCol
in class Tokenizer
public boolean isNextCharOnNewLine()
isNextCharOnNewLine
in class Tokenizer
public boolean isAlreadyComplainedAboutNonAscii()
isAlreadyComplainedAboutNonAscii
in class Tokenizer
protected void flushChars(char[] buf, int pos) throws org.xml.sax.SAXException
flushChars
in class Tokenizer
buf
- TODOpos
- TODO
org.xml.sax.SAXException
protected char checkChar(char[] buf, int pos) throws org.xml.sax.SAXException
checkChar
in class Tokenizer
org.xml.sax.SAXException
protected int transition(int from, int to, boolean reconsume, int pos) throws org.xml.sax.SAXException
transition
in class Tokenizer
org.xml.sax.SAXException
Tokenizer.transition(int, int, boolean,
int)
protected void errGarbageAfterLtSlash() throws org.xml.sax.SAXException
errGarbageAfterLtSlash
in class Tokenizer
org.xml.sax.SAXException
protected void errLtSlashGt() throws org.xml.sax.SAXException
errLtSlashGt
in class Tokenizer
org.xml.sax.SAXException
protected void errWarnLtSlashInRcdata() throws org.xml.sax.SAXException
errWarnLtSlashInRcdata
in class Tokenizer
org.xml.sax.SAXException
protected void errHtml4LtSlashInRcdata(char folded) throws org.xml.sax.SAXException
errHtml4LtSlashInRcdata
in class Tokenizer
org.xml.sax.SAXException
protected void errCharRefLacksSemicolon() throws org.xml.sax.SAXException
errCharRefLacksSemicolon
in class Tokenizer
org.xml.sax.SAXException
protected void errNoDigitsInNCR() throws org.xml.sax.SAXException
errNoDigitsInNCR
in class Tokenizer
org.xml.sax.SAXException
protected void errGtInSystemId() throws org.xml.sax.SAXException
errGtInSystemId
in class Tokenizer
org.xml.sax.SAXException
protected void errGtInPublicId() throws org.xml.sax.SAXException
errGtInPublicId
in class Tokenizer
org.xml.sax.SAXException
protected void errNamelessDoctype() throws org.xml.sax.SAXException
errNamelessDoctype
in class Tokenizer
org.xml.sax.SAXException
protected void errConsecutiveHyphens() throws org.xml.sax.SAXException
errConsecutiveHyphens
in class Tokenizer
org.xml.sax.SAXException
protected void errPrematureEndOfComment() throws org.xml.sax.SAXException
errPrematureEndOfComment
in class Tokenizer
org.xml.sax.SAXException
protected void errBogusComment() throws org.xml.sax.SAXException
errBogusComment
in class Tokenizer
org.xml.sax.SAXException
protected void errUnquotedAttributeValOrNull(char c) throws org.xml.sax.SAXException
errUnquotedAttributeValOrNull
in class Tokenizer
org.xml.sax.SAXException
protected void errSlashNotFollowedByGt() throws org.xml.sax.SAXException
errSlashNotFollowedByGt
in class Tokenizer
org.xml.sax.SAXException
protected void errHtml4XmlVoidSyntax() throws org.xml.sax.SAXException
errHtml4XmlVoidSyntax
in class Tokenizer
org.xml.sax.SAXException
protected void errNoSpaceBetweenAttributes() throws org.xml.sax.SAXException
errNoSpaceBetweenAttributes
in class Tokenizer
org.xml.sax.SAXException
protected void errHtml4NonNameInUnquotedAttribute(char c) throws org.xml.sax.SAXException
errHtml4NonNameInUnquotedAttribute
in class Tokenizer
org.xml.sax.SAXException
protected void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char c) throws org.xml.sax.SAXException
errLtOrEqualsOrGraveInUnquotedAttributeOrNull
in class Tokenizer
org.xml.sax.SAXException
protected void errAttributeValueMissing() throws org.xml.sax.SAXException
errAttributeValueMissing
in class Tokenizer
org.xml.sax.SAXException
protected void errBadCharBeforeAttributeNameOrNull(char c) throws org.xml.sax.SAXException
errBadCharBeforeAttributeNameOrNull
in class Tokenizer
org.xml.sax.SAXException
protected void errEqualsSignBeforeAttributeName() throws org.xml.sax.SAXException
errEqualsSignBeforeAttributeName
in class Tokenizer
org.xml.sax.SAXException
protected void errBadCharAfterLt(char c) throws org.xml.sax.SAXException
errBadCharAfterLt
in class Tokenizer
org.xml.sax.SAXException
protected void errLtGt() throws org.xml.sax.SAXException
errLtGt
in class Tokenizer
org.xml.sax.SAXException
protected void errProcessingInstruction() throws org.xml.sax.SAXException
errProcessingInstruction
in class Tokenizer
org.xml.sax.SAXException
protected void errUnescapedAmpersandInterpretedAsCharacterReference() throws org.xml.sax.SAXException
errUnescapedAmpersandInterpretedAsCharacterReference
in class Tokenizer
org.xml.sax.SAXException
protected void errNotSemicolonTerminated() throws org.xml.sax.SAXException
errNotSemicolonTerminated
in class Tokenizer
org.xml.sax.SAXException
protected void errNoNamedCharacterMatch() throws org.xml.sax.SAXException
errNoNamedCharacterMatch
in class Tokenizer
org.xml.sax.SAXException
protected void errQuoteBeforeAttributeName(char c) throws org.xml.sax.SAXException
errQuoteBeforeAttributeName
in class Tokenizer
org.xml.sax.SAXException
protected void errQuoteOrLtInAttributeNameOrNull(char c) throws org.xml.sax.SAXException
errQuoteOrLtInAttributeNameOrNull
in class Tokenizer
org.xml.sax.SAXException
protected void errExpectedPublicId() throws org.xml.sax.SAXException
errExpectedPublicId
in class Tokenizer
org.xml.sax.SAXException
protected void errBogusDoctype() throws org.xml.sax.SAXException
errBogusDoctype
in class Tokenizer
org.xml.sax.SAXException
protected void maybeWarnPrivateUseAstral() throws org.xml.sax.SAXException
maybeWarnPrivateUseAstral
in class Tokenizer
org.xml.sax.SAXException
protected void maybeWarnPrivateUse(char ch) throws org.xml.sax.SAXException
maybeWarnPrivateUse
in class Tokenizer
org.xml.sax.SAXException
protected void maybeErrAttributesOnEndTag(HtmlAttributes attrs) throws org.xml.sax.SAXException
maybeErrAttributesOnEndTag
in class Tokenizer
org.xml.sax.SAXException
protected void maybeErrSlashInEndTag(boolean selfClosing) throws org.xml.sax.SAXException
maybeErrSlashInEndTag
in class Tokenizer
org.xml.sax.SAXException
protected char errNcrNonCharacter(char ch) throws org.xml.sax.SAXException
errNcrNonCharacter
in class Tokenizer
org.xml.sax.SAXException
protected void errAstralNonCharacter(int ch) throws org.xml.sax.SAXException
errAstralNonCharacter
in class Tokenizer
org.xml.sax.SAXException
Tokenizer.errAstralNonCharacter(int)
protected void errNcrSurrogate() throws org.xml.sax.SAXException
errNcrSurrogate
in class Tokenizer
org.xml.sax.SAXException
protected char errNcrControlChar(char ch) throws org.xml.sax.SAXException
errNcrControlChar
in class Tokenizer
org.xml.sax.SAXException
protected void errNcrCr() throws org.xml.sax.SAXException
errNcrCr
in class Tokenizer
org.xml.sax.SAXException
protected void errNcrInC1Range() throws org.xml.sax.SAXException
errNcrInC1Range
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInPublicId() throws org.xml.sax.SAXException
errEofInPublicId
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInComment() throws org.xml.sax.SAXException
errEofInComment
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInDoctype() throws org.xml.sax.SAXException
errEofInDoctype
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInAttributeValue() throws org.xml.sax.SAXException
errEofInAttributeValue
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInAttributeName() throws org.xml.sax.SAXException
errEofInAttributeName
in class Tokenizer
org.xml.sax.SAXException
protected void errEofWithoutGt() throws org.xml.sax.SAXException
errEofWithoutGt
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInTagName() throws org.xml.sax.SAXException
errEofInTagName
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInEndTag() throws org.xml.sax.SAXException
errEofInEndTag
in class Tokenizer
org.xml.sax.SAXException
protected void errEofAfterLt() throws org.xml.sax.SAXException
errEofAfterLt
in class Tokenizer
org.xml.sax.SAXException
protected void errNcrOutOfRange() throws org.xml.sax.SAXException
errNcrOutOfRange
in class Tokenizer
org.xml.sax.SAXException
protected void errNcrUnassigned() throws org.xml.sax.SAXException
errNcrUnassigned
in class Tokenizer
org.xml.sax.SAXException
protected void errDuplicateAttribute() throws org.xml.sax.SAXException
errDuplicateAttribute
in class Tokenizer
org.xml.sax.SAXException
protected void errEofInSystemId() throws org.xml.sax.SAXException
errEofInSystemId
in class Tokenizer
org.xml.sax.SAXException
protected void errExpectedSystemId() throws org.xml.sax.SAXException
errExpectedSystemId
in class Tokenizer
org.xml.sax.SAXException
protected void errMissingSpaceBeforeDoctypeName() throws org.xml.sax.SAXException
errMissingSpaceBeforeDoctypeName
in class Tokenizer
org.xml.sax.SAXException
protected void errHyphenHyphenBang() throws org.xml.sax.SAXException
errHyphenHyphenBang
in class Tokenizer
org.xml.sax.SAXException
protected void errNcrControlChar() throws org.xml.sax.SAXException
errNcrControlChar
in class Tokenizer
org.xml.sax.SAXException
protected void errNcrZero() throws org.xml.sax.SAXException
errNcrZero
in class Tokenizer
org.xml.sax.SAXException
protected void errNoSpaceBetweenDoctypeSystemKeywordAndQuote() throws org.xml.sax.SAXException
errNoSpaceBetweenDoctypeSystemKeywordAndQuote
in class Tokenizer
org.xml.sax.SAXException
protected void errNoSpaceBetweenPublicAndSystemIds() throws org.xml.sax.SAXException
errNoSpaceBetweenPublicAndSystemIds
in class Tokenizer
org.xml.sax.SAXException
protected void errNoSpaceBetweenDoctypePublicKeywordAndQuote() throws org.xml.sax.SAXException
errNoSpaceBetweenDoctypePublicKeywordAndQuote
in class Tokenizer
org.xml.sax.SAXException
protected void noteAttributeWithoutValue() throws org.xml.sax.SAXException
noteAttributeWithoutValue
in class Tokenizer
org.xml.sax.SAXException
protected void noteUnquotedAttributeValue() throws org.xml.sax.SAXException
noteUnquotedAttributeValue
in class Tokenizer
org.xml.sax.SAXException
public void setTransitionHandler(TransitionHandler transitionHandler)
transitionHandler
- the transitionHandler to setpublic void setTransitionBaseOffset(int offset)
TransitionHandler
.
setTransitionBaseOffset
in class Tokenizer
offset
- the offset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |