com.unitesk.atp.tree.generation
Class TokenStyleManager

java.lang.Object
  extended by com.unitesk.atp.tree.generation.TokenStyleManager

public class TokenStyleManager
extends Object

Token Style Manager provides token styles for html generation. It reads token styles from file (in property format).

Version:
$Id: TokenStyleManager.java,v 1.3 2004/10/11 15:00:45 all-x Exp $
Author:
Alexey Demakov

Field Summary
protected  String[] styles
           
 
Constructor Summary
TokenStyleManager(Class token_types_interface, String tokenstyle_file, MessageBox mbox)
          Constructs Token Style manager.
 
Method Summary
 String getStyle(int type)
          Returns token style for given token type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

styles

protected String[] styles
Constructor Detail

TokenStyleManager

public TokenStyleManager(Class token_types_interface,
                         String tokenstyle_file,
                         MessageBox mbox)
Constructs Token Style manager.

Parameters:
token_types_interface - Interface that defines tokens types as constants.
tokenstyle_file - File name with map from token type name to token style name.
Method Detail

getStyle

public String getStyle(int type)
Returns token style for given token type.

Parameters:
type - the token type.
Returns:
token style for this token type or null if style is not defined.


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.