cs.arizona.tau.xml.temporalconstraint
Class ReferentialIntegrityConstraint

java.lang.Object
  extended by cs.arizona.tau.xml.temporalconstraint.Constraint
      extended by cs.arizona.tau.xml.temporalconstraint.ReferentialIntegrityConstraint

public class ReferentialIntegrityConstraint
extends Constraint

The ReferentialIntegrityConstraint sub-class extending Constraint

Author:
ruizhang

Constructor Summary
ReferentialIntegrityConstraint(java.lang.String name, java.lang.String dimension, java.lang.String selector, java.lang.String field, int evaluation_window, int slide_size, Applicability applicability, java.lang.String conventional_constraint, java.lang.String refer, java.lang.String ref_selector, java.lang.String ref_field)
          Constructing the IndentyConstraint instance with its specific attributes, which are conventional_constraint, refer, ref_selector and ref_field.
 
Method Summary
static boolean CheckNonSeqKeyRef(org.w3c.dom.Document temporal_doc, org.w3c.dom.Document schema_doc, java.util.Vector<Constraint> constraints)
          Checking constraint 6.2 the NonSeqKeyRef constraint
 java.lang.String getConventionalConstraint()
           
 java.lang.String getRefer()
           
 java.lang.String getRefField()
           
 java.lang.String getRefSelector()
           
 
Methods inherited from class cs.arizona.tau.xml.temporalconstraint.Constraint
getApplicability, getDimension, getEvaluationWindow, getField, getName, getSelector, getSlideSize, LoadEvaluationWindow, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferentialIntegrityConstraint

public ReferentialIntegrityConstraint(java.lang.String name,
                                      java.lang.String dimension,
                                      java.lang.String selector,
                                      java.lang.String field,
                                      int evaluation_window,
                                      int slide_size,
                                      Applicability applicability,
                                      java.lang.String conventional_constraint,
                                      java.lang.String refer,
                                      java.lang.String ref_selector,
                                      java.lang.String ref_field)
Constructing the IndentyConstraint instance with its specific attributes, which are conventional_constraint, refer, ref_selector and ref_field. Note that ref_selector and ref_field are not specified directly in the annotation but retrieved from the snapshot schema by evaluating the refer/conventional_constraint field

Parameters:
name -
dimension -
selector -
field -
evaluation_window -
slide_size -
applicability -
conventional_constraint -
refer -
ref_selector -
ref_field -
Method Detail

getConventionalConstraint

public java.lang.String getConventionalConstraint()

getRefer

public java.lang.String getRefer()

getRefSelector

public java.lang.String getRefSelector()

getRefField

public java.lang.String getRefField()

CheckNonSeqKeyRef

public static boolean CheckNonSeqKeyRef(org.w3c.dom.Document temporal_doc,
                                        org.w3c.dom.Document schema_doc,
                                        java.util.Vector<Constraint> constraints)
Checking constraint 6.2 the NonSeqKeyRef constraint

Parameters:
temporal_doc - the temporal document
constraints - the list of defined NonSeqKeyRef constraints