net.sf.mmm.util.xml.api
Class ParserState

java.lang.Object
  extended by net.sf.mmm.util.xml.api.ParserState

public class ParserState
extends Object

This Class contains the state of an HTML parsing process.

Since:
1.0.2
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
private  int cdataCloseCount
           
private  char inAttribute
           
private  int tagStartIndex
           
 
Constructor Summary
ParserState()
          The constructor.
ParserState(ParserState other)
          The constructor.
 
Method Summary
 int getCdataCloseCount()
           
 char getInAttribute()
           
 int getTagStartIndex()
           
 void setCdataCloseCount(int cdataCloseCount)
           
 void setInAttribute(char inAttribute)
           
 void setTagStartIndex(int tagStartIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tagStartIndex

private int tagStartIndex
See Also:
getTagStartIndex()

inAttribute

private char inAttribute
See Also:
getInAttribute()

cdataCloseCount

private int cdataCloseCount
See Also:
getCdataCloseCount()
Constructor Detail

ParserState

public ParserState()
The constructor.


ParserState

public ParserState(ParserState other)
The constructor.

Parameters:
other - is the state to continue with.
Method Detail

getTagStartIndex

public int getTagStartIndex()
Returns:
index of first char after '<' in string or 0 if not in tag.

setTagStartIndex

public void setTagStartIndex(int tagStartIndex)
Parameters:
tagStartIndex - is the tagStartIndex to set

getInAttribute

public char getInAttribute()
Returns:
the opening quotation char if inside attribute, else 0.

setInAttribute

public void setInAttribute(char inAttribute)
Parameters:
inAttribute - is the inAttribute to set

getCdataCloseCount

public int getCdataCloseCount()
Returns:
the CDATA close character count. This value is set to 3 at start of CDATA section, count down for closing "]]>" but reset to 3 on mismatch.

setCdataCloseCount

public void setCdataCloseCount(int cdataCloseCount)
Parameters:
cdataCloseCount - is the cdataCloseCount to set


Copyright © 2001-2010 mmm-Team. All Rights Reserved.