Class ComponentMapper

java.lang.Object
  |
  +--ComponentMapper

public class ComponentMapper
extends java.lang.Object

Service Class

This class enables a mapping of hierarchical component elements and the TextualInstantiation they are declared in to the TextualInstantiation they are instantiated with.
This mapping can be retrieved lateron, which is neccessary for the translation of global joins.

Version:
Vanilla-1 Tue Apr 3 15:33:48 2001
Author:
M. Oliver Möller

Field Summary
(package private) static boolean debug
          Spam out debuggin information, if debug is true
private  java.util.Hashtable hashHierarchicalComponentsToHashtable
          Maps (basic) hierarchical components to another hashtable, that TextualInstantiation to TextualInstantiation, namely those that correspond to the instantiation of the component in this context.
 
Constructor Summary
ComponentMapper()
          Default Constructor
 
Method Summary
 void enterTextualInstantiation(org.w3c.dom.Element component, TextualInstantiation tinst, TextualInstantiation subTinst)
          Create an entry in
Component * TextualInstantiation ---> TextualInstantiation

The first TextualInstantiation is the declaringContext, the result TextualInstantiation is the (sub-)declared one.

 TextualInstantiation retrieveTextualInstantiation(org.w3c.dom.Element component, TextualInstantiation tinst)
          Get the TextualInstantiation according to the mapping

Component * TextualInstantiation ---> TextualInstantiation

The first TextualInstantiation is the declaringContext, the result TextualInstantiation is the (sub-)declared one.

If the TextualInstantiation is not entered yet, it is created with the empty constructor.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

hashHierarchicalComponentsToHashtable

private java.util.Hashtable hashHierarchicalComponentsToHashtable
Maps (basic) hierarchical components to another hashtable, that TextualInstantiation to TextualInstantiation, namely those that correspond to the instantiation of the component in this context.
See Also:
GlobalJoin

debug

static boolean debug
Spam out debuggin information, if debug is true
Constructor Detail

ComponentMapper

public ComponentMapper()
Default Constructor
Method Detail

retrieveTextualInstantiation

public TextualInstantiation retrieveTextualInstantiation(org.w3c.dom.Element component,
                                                         TextualInstantiation tinst)
                                                  throws java.lang.Exception
Get the TextualInstantiation according to the mapping

Component * TextualInstantiation ---> TextualInstantiation

The first TextualInstantiation is the declaringContext, the result TextualInstantiation is the (sub-)declared one.

If the TextualInstantiation is not entered yet, it is created with the empty constructor.

enterTextualInstantiation

public void enterTextualInstantiation(org.w3c.dom.Element component,
                                      TextualInstantiation tinst,
                                      TextualInstantiation subTinst)
                               throws java.lang.Exception
Create an entry in
Component * TextualInstantiation ---> TextualInstantiation

The first TextualInstantiation is the declaringContext, the result TextualInstantiation is the (sub-)declared one.