|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--LocationMapper
GlobalJoin| Field Summary | |
(package private) static boolean |
allEntriesAreCreated
|
(package private) static boolean |
debug
Spam out debuggin information, if debug is true |
private FlatDocumentWriter |
fdw
Relevant writer (necessary to create object) |
private java.util.Hashtable |
hashHierarchicalLocationsToHashtable
Maps (basic) hierarchical locations to another hashtable, that maps textual instantiations to Elements, namely the Element this particular instantion of a location was translated to. |
private java.util.Hashtable |
hashIDConcatenationsToFlatLocations
Maps concatentations of separators to another hashtable, that maps TextualInstantiations to (flat) locations. Used to map entries of hierarchical components. |
private java.util.Hashtable |
hashTextualInstantitionsToActiveLocation
Maps textual instantions to their active locations. In Vanilla-1, there is only one unique active location per AND Component. |
private java.util.Hashtable |
hashTextualInstantitionsToIdleLocation
Maps textual instantions to their idle locations. In Vanilla-1, there is only one unique active location per Component. |
private HierarchicalDocumentReader |
hdr
Relevant reader (necessary to follow ID references) |
(package private) static boolean |
sanityChecks
Do (possibly time-consuming) sanity checks, if true |
private static java.lang.String |
unambigousIDSeparator
Separates IDs of element and contiains characters that are disallowed for XML IDs, thus no concatations of different IDs with this separator can give a clash |
| Constructor Summary | |
LocationMapper(HierarchicalDocumentReader theHdr,
FlatDocumentWriter theFdw)
Default Constructor |
|
| Method Summary | |
org.w3c.dom.Element |
mapHierachicalLocationToFlatOne(org.w3c.dom.Element loc,
TextualInstantiation tinst)
Computes the mapping {Locations, Components} * TextualInstantiation -> Location Throws an exception, if there is no entry. |
org.w3c.dom.Element |
mapTargetIDEntryrefToFlatLocation(java.lang.String elementID,
java.lang.String entryID,
TextualInstantiation tinst)
Map ID of Element a connection points to and (possibly) the ID of the entry to a coresponding flat location. (If it does not exist yet, invent a new (flat) location for it). If the target point to a basic location, it behaves like |
org.w3c.dom.Element |
mapTargetToFlatLocation(org.w3c.dom.Element target,
TextualInstantiation tinst)
Map a (hierarchical) target to the flat location it points to. (If it does not exist yet, invent a new (flat) location for it). If the target point to a basic location, it behaves like |
org.w3c.dom.Element |
mapTextualInstantiationToActiveLocation(TextualInstantiation tinst)
for instantiations of AND templates |
org.w3c.dom.Element |
mapTextualInstantiationToIdleLocation(TextualInstantiation tinst)
for instantiations of XOR/AND templates |
org.w3c.dom.Element |
migrateOrdinaryLocation(org.w3c.dom.Element loc,
TextualInstantiation tinst)
Take an ordinary location and return a flattened one. Does NOT migrate all the children (this is job of Flatten, in particular of the methos transformLocationToFlat) and the ID is up to a change later. However, it records a mapping {Location, Component} * TextualInstantiation -> Location that is needed in the translations of global joins. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private HierarchicalDocumentReader hdr
private FlatDocumentWriter fdw
private java.util.Hashtable hashHierarchicalLocationsToHashtable
GlobalJoinprivate java.util.Hashtable hashTextualInstantitionsToActiveLocation
GlobalJoinprivate java.util.Hashtable hashTextualInstantitionsToIdleLocation
GlobalJoinprivate static final java.lang.String unambigousIDSeparator
private java.util.Hashtable hashIDConcatenationsToFlatLocations
static boolean debug
static boolean sanityChecks
static boolean allEntriesAreCreated
| Constructor Detail |
public LocationMapper(HierarchicalDocumentReader theHdr,
FlatDocumentWriter theFdw)
| Method Detail |
public org.w3c.dom.Element migrateOrdinaryLocation(org.w3c.dom.Element loc,
TextualInstantiation tinst)
throws java.lang.Exception
GlobalJoin,
Flatten
public org.w3c.dom.Element mapTextualInstantiationToActiveLocation(TextualInstantiation tinst)
throws java.lang.Exception
public org.w3c.dom.Element mapTextualInstantiationToIdleLocation(TextualInstantiation tinst)
throws java.lang.Exception
public org.w3c.dom.Element mapHierachicalLocationToFlatOne(org.w3c.dom.Element loc,
TextualInstantiation tinst)
throws java.lang.Exception
public org.w3c.dom.Element mapTargetToFlatLocation(org.w3c.dom.Element target,
TextualInstantiation tinst)
throws java.lang.Exception
public org.w3c.dom.Element mapTargetIDEntryrefToFlatLocation(java.lang.String elementID,
java.lang.String entryID,
TextualInstantiation tinst)
throws java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||