jd.xml.xslt.parser
Class GlobalVariableNames

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

class GlobalVariableNames
extends Object

GlobalVariableNames handles the names of all global variables.


Constructor Summary
(package private) GlobalVariableNames()
           
 
Method Summary
 VariableName addName(String name, int importPrecedence)
          Add a VariableName.
 void checkPreliminariesResolved()
          Return the first VariableName which is flagged as preliminary.
 VariableName getName(String name, XPathNode element)
          Get a existent VariableName or create a preliminary name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalVariableNames

GlobalVariableNames()
Method Detail

addName

public VariableName addName(String name,
                            int importPrecedence)
Add a VariableName.

Parameters:
importPrecedence - the import precedence.
Returns:
the VariableName or null if such a name with same import precdence is already defined

getName

public VariableName getName(String name,
                            XPathNode element)
Get a existent VariableName or create a preliminary name.

Parameters:
name - the name
element - the element containing the xpath expression
Returns:
the VariableName or null if no such name is defined

checkPreliminariesResolved

public void checkPreliminariesResolved()
                                throws XsltParseException
Return the first VariableName which is flagged as preliminary.

Throws:
XsltParseException