common-util

local.tomas.common.xml
Interface XMLTokenGenerator

All Known Implementing Classes:
TokenGeneratorImpl

public interface XMLTokenGenerator

This interface is used to create XML tokens.

Author:
tomas

Method Summary
 void charToken(String str)
          Create character token.
 boolean createRefToken(String name, int index, Class type, Object src)
          Try to create reference to another token.
 void endToken(String name)
          Create end token.
 void startToken(String name, int index, String className, int size, Object obj)
          Create start token.
 void startToken(String name, int index, String className, Object obj)
          Create start token.
 

Method Detail

startToken

void startToken(String name,
                int index,
                String className,
                Object obj)
                throws XMLException
Create start token.

Parameters:
name - - token name
index - - index attribute value, negative values are omitted
className - - class name of object
obj - - object described by this token
Throws:
XMLException

startToken

void startToken(String name,
                int index,
                String className,
                int size,
                Object obj)
                throws XMLException
Create start token.

Parameters:
name - - token name
index - - index attribute value, negative values are omitted
className - - class name of object
size - - object size
obj - - object described by this token
Throws:
XMLException

endToken

void endToken(String name)
              throws XMLException
Create end token.

Parameters:
name - - token name
Throws:
XMLException

charToken

void charToken(String str)
               throws XMLException
Create character token.

Parameters:
str - - characters
Throws:
XMLException

createRefToken

boolean createRefToken(String name,
                       int index,
                       Class type,
                       Object src)
                       throws XMLException
Try to create reference to another token.

Parameters:
name - - token name
index - - index attribute value, negative values are omitted
type - - type of object described
src - - the object described by this token
Returns:
true if a reference could be created
Throws:
XMLException

common-util

Copyright © 2007 null. All Rights Reserved.