Class XMLParseState
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.CharacterReceiver
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.SingleCharacterReceiver
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.TagParseState
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParseState
-
- Direct Known Subclasses:
XMLEncodingDetector
public class XMLParseState extends TagParseState
This class takes the output of the basic tag parser and converts it for typical XML usage. It takes the attribute lists, for instance, and converts them to case-sensitive maps.
-
-
Field Summary
-
Fields inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.TagParseState
accumBuffer, ampBuffer, bTagDepth, currentAttrList, currentAttrName, currentAttrNameBuffer, currentState, currentTagName, currentTagNameBuffer, currentValueBuffer, inAmpersand, mapLookup, TAGPARSESTATE_IN_ATTR_LOOKING_FOR_VALUE, TAGPARSESTATE_IN_ATTR_NAME, TAGPARSESTATE_IN_ATTR_VALUE, TAGPARSESTATE_IN_BANG_TOKEN, TAGPARSESTATE_IN_BRACKET_TOKEN, TAGPARSESTATE_IN_CDATA_BODY, TAGPARSESTATE_IN_COMMENT, TAGPARSESTATE_IN_DOUBLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_END_TAG_NAME, TAGPARSESTATE_IN_QTAG_ATTR_LOOKING_FOR_VALUE, TAGPARSESTATE_IN_QTAG_ATTR_NAME, TAGPARSESTATE_IN_QTAG_ATTR_VALUE, TAGPARSESTATE_IN_QTAG_DOUBLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_QTAG_NAME, TAGPARSESTATE_IN_QTAG_SAW_QUESTION, TAGPARSESTATE_IN_QTAG_SINGLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_QTAG_UNQUOTED_ATTR_VALUE, TAGPARSESTATE_IN_SINGLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_TAG_NAME, TAGPARSESTATE_IN_TAG_SAW_SLASH, TAGPARSESTATE_IN_UNQUOTED_ATTR_VALUE, TAGPARSESTATE_IN_UNQUOTED_ATTR_VALUE_SAW_SLASH, TAGPARSESTATE_NEED_FINAL_BRACKET, TAGPARSESTATE_NORMAL, TAGPARSESTATE_SAWCOMMENTDASH, TAGPARSESTATE_SAWDASH, TAGPARSESTATE_SAWEXCLAMATION, TAGPARSESTATE_SAWLEFTANGLE, TAGPARSESTATE_SAWRIGHTBRACKET, TAGPARSESTATE_SAWSECONDCOMMENTDASH, TAGPARSESTATE_SAWSECONDRIGHTBRACKET
-
Fields inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.SingleCharacterReceiver
charBuffer
-
-
Constructor Summary
Constructors Constructor Description XMLParseState()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
noteQTag(java.lang.String tagName, java.util.List<AttrNameValue> attributes)
This method is called for every <? ...protected boolean
noteQTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> attributes)
Map version of noteQTag method.protected boolean
noteTag(java.lang.String tagName, java.util.List<AttrNameValue> attributes)
This method gets called for every tag.protected boolean
noteTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> attributes)
Map version of the noteTag method.-
Methods inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.TagParseState
acceptNewTag, attributeDecode, dealWithCharacter, dumpValues, isPunctuation, isWhitespace, mapChunk, newBuffer, noteBTag, noteBTagToken, noteEndBTag, noteEndEscaped, noteEndTag, noteEscaped, noteEscapedCharacter, noteNormalCharacter, outputAmpBuffer
-
Methods inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.SingleCharacterReceiver
dealWithCharacters, dealWithRemainder
-
Methods inherited from class org.apache.manifoldcf.connectorcommon.fuzzyml.CharacterReceiver
finishUp
-
-
-
-
Method Detail
-
noteTag
protected final boolean noteTag(java.lang.String tagName, java.util.List<AttrNameValue> attributes) throws ManifoldCFException
This method gets called for every tag. Override this method to intercept tag begins.- Overrides:
noteTag
in classTagParseState
- Returns:
- true to halt further processing.
- Throws:
ManifoldCFException
-
noteTag
protected boolean noteTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> attributes) throws ManifoldCFException
Map version of the noteTag method.- Returns:
- true to halt further processing.
- Throws:
ManifoldCFException
-
noteQTag
protected final boolean noteQTag(java.lang.String tagName, java.util.List<AttrNameValue> attributes) throws ManifoldCFException
This method is called for every <? ... ?> construct, or 'qtag'. Override it to intercept such constructs.- Overrides:
noteQTag
in classTagParseState
- Returns:
- true to halt further processing.
- Throws:
ManifoldCFException
-
noteQTag
protected boolean noteQTag(java.lang.String tagName, java.util.Map<java.lang.String,java.lang.String> attributes) throws ManifoldCFException
Map version of noteQTag method.- Returns:
- true to halt further processing.
- Throws:
ManifoldCFException
-
-