jd.xml.xslt.parser
Class StylesheetData

java.lang.Object
  extended byjd.xml.xslt.parser.StylesheetData

public class StylesheetData
extends Object

A class to store the parse results of a stylesheet.


Constructor Summary
StylesheetData()
           
 
Method Summary
 boolean addDecimalFormatSymbols(String name, DecimalFormatSymbols symbols)
           
 void addExtensionHandler(ExtensionHandler handler)
           
 int firstUnClassifiedGlobalVar()
           
 Hashtable getDecimalFormatSymbols()
           
 TemplateRuleList getDefaultTemplateRuleList()
          Return the default template rule list (mode = null).
 ExtensionHandler getExtensionHandler(String namespaceUri)
           
 ExtensionHandler[] getExtensionHandlers()
           
 Variable[] getGlobalVariables()
          Return the global variables.
 Hashtable getKeys()
           
 int getMaxLocalParameterCount()
          Return the maximum number of parameters among all templates.
 int getMaxLocalVariableCount()
          Return the maximum number of local variables and parameters among all templates.
 Hashtable getNamedTemplateRules()
           
 NodeNamePool getNodeNamePool()
           
 OutputFormatTemplate getOutputFormatTemplate()
           
 Enumeration getTemplateRulesLists()
          Return an enumeration of all template rule lists, the first is the default template rule list (mode = null) and the following are the mode template rule list.
 WhitespaceTest[] getWhitespaceTests()
          Return the whitespace tests.
 void setGlobalVariables(Variable[] globalVariables, int firstUnClassifiedGlobalVar)
          Set the global variables, i.e.
 void setKeys(Hashtable keys)
           
 void setMaxLocalParameterCount(int count)
          Set the maximum number of parameters among all templates.
 void setMaxLocalVariableCount(int count)
          Set the maximum number of local variables and parameters among all templates.
(package private)  void setNodeNamePool(NodeNamePool nodeNamePool)
           
 void setTemplateRules(Vector templateRuleLists, Hashtable namedTemplateRules)
          Set the list of the default (=modeless) template rules.
 void setWhitespaceTests(WhitespaceTest[] tests)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StylesheetData

public StylesheetData()
Method Detail

setTemplateRules

public void setTemplateRules(Vector templateRuleLists,
                             Hashtable namedTemplateRules)
Set the list of the default (=modeless) template rules.


getDefaultTemplateRuleList

public TemplateRuleList getDefaultTemplateRuleList()
Return the default template rule list (mode = null).


getTemplateRulesLists

public Enumeration getTemplateRulesLists()
Return an enumeration of all template rule lists, the first is the default template rule list (mode = null) and the following are the mode template rule list.


getNamedTemplateRules

public Hashtable getNamedTemplateRules()

setWhitespaceTests

public void setWhitespaceTests(WhitespaceTest[] tests)

getWhitespaceTests

public WhitespaceTest[] getWhitespaceTests()
Return the whitespace tests. They test with highest priority is the first entry of the array

Returns:
the tests or null if there are no tests

setMaxLocalVariableCount

public void setMaxLocalVariableCount(int count)
Set the maximum number of local variables and parameters among all templates.


getMaxLocalVariableCount

public int getMaxLocalVariableCount()
Return the maximum number of local variables and parameters among all templates.


setMaxLocalParameterCount

public void setMaxLocalParameterCount(int count)
Set the maximum number of parameters among all templates.


getMaxLocalParameterCount

public int getMaxLocalParameterCount()
Return the maximum number of parameters among all templates.


setGlobalVariables

public void setGlobalVariables(Variable[] globalVariables,
                               int firstUnClassifiedGlobalVar)
Set the global variables, i.e. all the variable objects defined by toplevel xsl:variable and xsl:param instructions. The variables are sorted according their dependency, i.e if ii

Parameters:
globalVariables - the variables
firstUnClassifiedGlobalVar - the index of the first variable for which the dependencies on other global variables could not be detected at compile time.

getGlobalVariables

public Variable[] getGlobalVariables()
Return the global variables. The variables are sorted according their dependency.

Returns:
the variable or an array with length 0 if there are no global variables defined.

firstUnClassifiedGlobalVar

public int firstUnClassifiedGlobalVar()

setKeys

public void setKeys(Hashtable keys)

getKeys

public Hashtable getKeys()

getOutputFormatTemplate

public OutputFormatTemplate getOutputFormatTemplate()

addDecimalFormatSymbols

public boolean addDecimalFormatSymbols(String name,
                                       DecimalFormatSymbols symbols)

getDecimalFormatSymbols

public Hashtable getDecimalFormatSymbols()

getNodeNamePool

public NodeNamePool getNodeNamePool()

setNodeNamePool

void setNodeNamePool(NodeNamePool nodeNamePool)

addExtensionHandler

public void addExtensionHandler(ExtensionHandler handler)

getExtensionHandler

public ExtensionHandler getExtensionHandler(String namespaceUri)

getExtensionHandlers

public ExtensionHandler[] getExtensionHandlers()