cs.arizona.tau.xml
Class DoSquashing

java.lang.Object
  extended by cs.arizona.tau.xml.DoSquashing
All Implemented Interfaces:
IDoSquashing

public class DoSquashing
extends java.lang.Object
implements IDoSquashing

Author:
shailesh, sthomas The class is used for generating a (squashed) Temporal Document from a set of snapshot documents.

Constructor Summary
DoSquashing()
          Called from TemporalValidator
DoSquashing(java.lang.String temporalSchema, int schemaVersion)
          Called from DecomposedRepresentationFactory.createSquashingObj()
DoSquashing(java.lang.String snapshotSchema, java.lang.String annotation, int schemaVersion)
           
 
Method Summary
 void setOutputFileName(java.lang.String tempDataDir, java.lang.String name)
           
 org.w3c.dom.Document squash(java.lang.String tempDataDir, java.lang.String tempDataFile)
          Interface for main squash function.
 org.w3c.dom.Document squash(java.lang.String tempDataDir, java.lang.String temporalDir, org.w3c.dom.Element temporalRootElement)
           
 org.w3c.dom.Document squashDefault(java.util.ArrayList docs)
           
 org.w3c.dom.Document squashEdit(java.lang.String temporalDir, org.w3c.dom.Element temporalRootElement)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoSquashing

public DoSquashing(java.lang.String temporalSchema,
                   int schemaVersion)
Called from DecomposedRepresentationFactory.createSquashingObj()


DoSquashing

public DoSquashing()
Called from TemporalValidator


DoSquashing

public DoSquashing(java.lang.String snapshotSchema,
                   java.lang.String annotation,
                   int schemaVersion)
Parameters:
snapshotSchema -
temporalAnnotation -
physicalAnnotation -
schemaVersion -
Method Detail

setOutputFileName

public void setOutputFileName(java.lang.String tempDataDir,
                              java.lang.String name)
Specified by:
setOutputFileName in interface IDoSquashing

squash

public org.w3c.dom.Document squash(java.lang.String tempDataDir,
                                   java.lang.String tempDataFile)
Interface for main squash function.

Specified by:
squash in interface IDoSquashing

squashEdit

public org.w3c.dom.Document squashEdit(java.lang.String temporalDir,
                                       org.w3c.dom.Element temporalRootElement)
Parameters:
temporalDir -
temporalRootElement - Given a set of Snapshot Documents, creates edit-based temporal document.

squash

public org.w3c.dom.Document squash(java.lang.String tempDataDir,
                                   java.lang.String temporalDir,
                                   org.w3c.dom.Element temporalRootElement)
Parameters:
temporalDir -
temporalRootElement - Given a set of Snapshot Documents, Temporal and Physical Annotations the function generates Temporal Document. All the document paths are specified inside configFile.

squashDefault

public org.w3c.dom.Document squashDefault(java.util.ArrayList docs)
Parameters:
docs - Given a hashtable of the form (TimePeriod, Document), squash the documents with the default physical and temporal annotations. Used by TemporalValidator for edit-based reps.