|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class tokenizes the incoming XML-based stream of generic encoding into a stream of structural tokens.
Method Summary | |
QName |
convertToQName(java.lang.String qname)
converts qname to expanded name |
int[] |
getArrayDimensions()
returns the dimensions of the array. |
int[] |
getArrayOffset()
returns the offset of the first member of the array. |
int[] |
getArrayPosition(int expectedDimensions)
returns the position of the current structural token (structure, array start, primitive, reference) in the array |
int |
getCurrentToken()
returns the current token |
org.w3c.dom.Element |
getElementTokenValue(org.w3c.dom.Document doc)
returns token as DOM element |
java.lang.String |
getID()
returns the id of the current element |
java.lang.String |
getPrimitiveTokenValue()
returns the value of the primitive token |
java.lang.String |
getReference()
returns the reference location |
java.lang.String |
getTokenName()
returns the name of the previously returned token |
java.lang.String |
getTokenNamespaceURI()
returns the namespace of the previously returned token |
java.lang.String |
getTokenTypeName()
returns the type of the previously returned token |
java.lang.String |
getTokenTypeNamespaceURI()
returns the namespace of the type of the previously returned token |
void |
init(Configurable config)
initializes the encoding tokenizer |
int |
next()
fills the internal token arguments (such as name, type, etc.) and returns the next token. |
org.w3c.dom.Element |
nextAsElement(org.w3c.dom.Document doc)
Deprecated. |
int |
nextToken()
fills the internal token arguments (such as name, type, etc.) and returns the next token. |
void |
setInput(Tokenizer parser,
java.lang.String encodingId)
sets the input as a pair of tokenizer and source URI. |
void |
setInputMessage(Message message,
java.lang.String encodingId)
sets the input message part |
Method Detail |
public void setInputMessage(Message message, java.lang.String encodingId) throws MessageProcessingException
message
- the input messageencodingId
- the id of the group of encodings which is being used
MessageProcessingException
- if the message is malformedpublic void setInput(Tokenizer parser, java.lang.String encodingId) throws MessageProcessingException
parser
- the raw xml tokenizerencodingId
- the id of the group of encodings which is being used
MessageProcessingException
- if the message is malformedpublic int nextToken() throws MessageProcessingException
MessageProcessingException
- if the message is malformedEncodingToken
public int next() throws MessageProcessingException
MessageProcessingException
- if the message is malformedEncodingToken
public org.w3c.dom.Element nextAsElement(org.w3c.dom.Document doc) throws MessageProcessingException
doc
- document in which the resulting element should be created.
MessageProcessingException
- thrown when the message is malformed.public org.w3c.dom.Element getElementTokenValue(org.w3c.dom.Document doc) throws MessageProcessingException
doc
- document in which the resulting element should be created.
MessageProcessingException
- thrown when the message is malformed.public int getCurrentToken() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic java.lang.String getTokenName() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic java.lang.String getTokenNamespaceURI() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic java.lang.String getTokenTypeName() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic java.lang.String getTokenTypeNamespaceURI() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic int[] getArrayDimensions() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic int[] getArrayOffset() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic int[] getArrayPosition(int expectedDimensions) throws MessageProcessingException
expectedDimensions
- the number of expected dimensions
MessageProcessingException
- if the message is malformedpublic java.lang.String getPrimitiveTokenValue() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic java.lang.String getID() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic java.lang.String getReference() throws MessageProcessingException
MessageProcessingException
- if the message is malformedpublic QName convertToQName(java.lang.String qname)
qname
- the name to be converted
public void init(Configurable config)
config
- the configuration of the tokenizer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |