com.tekann.webservice.client.parser
Class DTOParser
java.lang.Object
totalcross.xml.XmlTokenizer
com.tekann.webservice.client.parser.AnswerParser
com.tekann.webservice.client.parser.DTOParser
public class DTOParser
- extends AnswerParser
Used to parse a DTO
- Author:
- evandro
|
Field Summary |
protected com.tekann.codegen.pda.db.IDAO |
currentDAO
|
protected com.tekann.codegen.pda.db.DefaultDTO |
currentDTO
|
protected java.lang.String |
lastColumnName
|
protected totalcross.util.Vector |
values
|
|
Constructor Summary |
DTOParser(totalcross.io.Stream stream)
Creates a new instance of DTOParser |
|
Method Summary |
void |
foundAttributeName(byte[] buffer,
int offset,
int count)
|
void |
foundAttributeValue(byte[] buffer,
int offset,
int count,
byte dlm)
|
void |
foundCharacterData(byte[] buffer,
int offset,
int count)
|
void |
foundEndTagName(byte[] buffer,
int offset,
int count)
|
void |
foundStartTagName(byte[] buffer,
int offset,
int count)
|
protected void |
init()
Initialize the parser |
java.lang.Object |
storeAnswer()
Store the answer somehow |
| Methods inherited from class totalcross.xml.XmlTokenizer |
disableReferenceResolution, foundComment, foundDeclaration, foundEndOfInput, foundInvalidData, foundProcessingInstruction, foundReference, foundStartOfInput, getAbsoluteOffset, isDataCDATA, resolveCharacterReference, setCdataContents, setStrictlyXml, tokenize, tokenize, tokenize, tokenize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentDTO
protected com.tekann.codegen.pda.db.DefaultDTO currentDTO
lastColumnName
protected java.lang.String lastColumnName
values
protected totalcross.util.Vector values
currentDAO
protected com.tekann.codegen.pda.db.IDAO currentDAO
DTOParser
public DTOParser(totalcross.io.Stream stream)
throws totalcross.xml.SyntaxException,
totalcross.io.IOException
- Creates a new instance of DTOParser
- Parameters:
stream -
- Throws:
totalcross.xml.SyntaxException
totalcross.io.IOException
foundAttributeName
public void foundAttributeName(byte[] buffer,
int offset,
int count)
- Overrides:
foundAttributeName in class AnswerParser
foundAttributeValue
public void foundAttributeValue(byte[] buffer,
int offset,
int count,
byte dlm)
- Overrides:
foundAttributeValue in class AnswerParser
foundCharacterData
public void foundCharacterData(byte[] buffer,
int offset,
int count)
- Overrides:
foundCharacterData in class AnswerParser
foundEndTagName
public void foundEndTagName(byte[] buffer,
int offset,
int count)
- Overrides:
foundEndTagName in class AnswerParser
foundStartTagName
public void foundStartTagName(byte[] buffer,
int offset,
int count)
- Overrides:
foundStartTagName in class AnswerParser
init
protected void init()
throws totalcross.xml.SyntaxException,
totalcross.io.IOException
- Description copied from class:
AnswerParser
- Initialize the parser
- Overrides:
init in class AnswerParser
- Throws:
totalcross.xml.SyntaxException
totalcross.io.IOException
storeAnswer
public java.lang.Object storeAnswer()
- Description copied from class:
AnswerParser
- Store the answer somehow
- Specified by:
storeAnswer in class AnswerParser
- Returns: