|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs.arizona.tau.xml.temporalconstraint.TemporalConstraintValidator
public class TemporalConstraintValidator
Validating the temporal constraints of a temporal document
Field Summary | |
---|---|
static java.lang.String |
NONSEQCARDINALITY
|
static java.lang.String |
NONSEQKEY
|
static java.lang.String |
NONSEQKEYREF
|
static java.lang.String |
NONSEQUNIQUE
|
static java.lang.String |
SEQCARDINALITY
|
static java.lang.String |
TRANSITION
|
static java.lang.String |
UNIQUENULLRESTRICTED
|
Constructor Summary | |
---|---|
TemporalConstraintValidator(org.w3c.dom.Document temporal_doc,
java.lang.String temporal_schema_name)
Constructing the validator instance. |
Method Summary | |
---|---|
static java.util.Vector<java.lang.String> |
ConvertConventionalIdentifier(java.lang.String conv_id_name,
org.w3c.dom.Document schema_doc)
Use the conventional indetifier/constraint to look for the defined identifer/constraint in the snapshot schema |
void |
ExtractConstraint(org.w3c.dom.Document annotation_doc)
Parsing the annotation document and extracting the defined constraints for validation. |
void |
ExtractConstraints(org.w3c.dom.Element root,
java.lang.String target,
java.util.Vector<Constraint> results)
Parsing annotation document and extracting the defined constraints. |
org.w3c.dom.Document |
GetAnnotationDocument()
|
static java.util.Vector<org.w3c.dom.Node> |
GetCandidateNodes(org.w3c.dom.Document temporal_doc,
java.lang.String xpath_query,
Applicability applicability)
Using XPath query to retrieve the candidate nodes to be examined for the temporal constraints from the temporal document. |
org.w3c.dom.Document |
GetSchemaDocument()
|
org.w3c.dom.Document |
GetTemporalDocument()
|
boolean |
PerformValidation()
Perform the validation |
static java.lang.String |
PrepareXPathString(java.lang.String selector,
java.lang.String field)
Converting the orignal selector and field into an internally used format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String NONSEQKEY
public static java.lang.String NONSEQUNIQUE
public static java.lang.String UNIQUENULLRESTRICTED
public static java.lang.String SEQCARDINALITY
public static java.lang.String NONSEQCARDINALITY
public static java.lang.String TRANSITION
public static java.lang.String NONSEQKEYREF
Constructor Detail |
---|
public TemporalConstraintValidator(org.w3c.dom.Document temporal_doc, java.lang.String temporal_schema_name)
temporal_doc
- the temporal document to be validatedtemporal_schema_name
- the name of the temporal schemaMethod Detail |
---|
public org.w3c.dom.Document GetTemporalDocument()
public org.w3c.dom.Document GetAnnotationDocument()
public org.w3c.dom.Document GetSchemaDocument()
public void ExtractConstraint(org.w3c.dom.Document annotation_doc)
annotation_doc
- the annotation document where the constraints are
definedpublic static java.util.Vector<java.lang.String> ConvertConventionalIdentifier(java.lang.String conv_id_name, org.w3c.dom.Document schema_doc)
conv_id_name
- the conventional identifierschema_doc
- the snapshot schema
public void ExtractConstraints(org.w3c.dom.Element root, java.lang.String target, java.util.Vector<Constraint> results)
root
- the root element of the annotation documenttarget
- the type name of the constraintresults
- the result vector holding all the found constraintpublic static java.lang.String PrepareXPathString(java.lang.String selector, java.lang.String field)
public static java.util.Vector<org.w3c.dom.Node> GetCandidateNodes(org.w3c.dom.Document temporal_doc, java.lang.String xpath_query, Applicability applicability)
temporal_doc
- the temporal document where the candidate nodes are
requested fromxpath_query
- the XPath query used to identify the candidate nodesapplicability
- the time period where the candidate nodes should be
retrieved from
public boolean PerformValidation()
TRUE
if validated; FALSE
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |