cs.arizona.tau.xml
Class DoSchemaMapping
java.lang.Object
cs.arizona.tau.xml.DoSchemaMapping
- All Implemented Interfaces:
- IDoSchemaMapping
public class DoSchemaMapping
- extends java.lang.Object
- implements IDoSchemaMapping
- Author:
- shailesh, sthomas
TODO :
1) In function performValidations, some more validations are needed as per mentioned in the comments.
3) Remove hard-coding from function modifySchemaElement for variable schemaElement.
4) In function modifyReferences, hard-coding in statement - (XPathResult)evaluator.evaluate("//xs:element
5) Exception handling
SchemaMapper class creates Representational Schema Document using given Snapshot document,Temporal and Physical Annotations and Temporal Bundle.
Method Summary |
org.w3c.dom.Document |
createRepresentationalSchema(java.lang.String temporalSchema,
int schemaVersion)
Creates a Representational schema document from given set of Snapshot document,Temporal and Physical Annotations and Temporal Bundle. |
org.w3c.dom.Document |
createRepresentationalSchema(java.lang.String snapshotSchema,
java.lang.String temporalAnnotation,
java.lang.String physicalAnnotation,
int schemaVersion)
|
boolean |
validatePhysicalAnnotation(java.lang.String temporalBundle)
Validates given Physical Annotation using Snapshot Schema and PXSchemas standard. |
boolean |
validateTemporalAnnotation(java.lang.String temporalBundle)
Validates given Temporal Annotation using Snapshot Schema and TXSchemas standard. |
void |
writeDocument(org.w3c.dom.Document doc,
java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoSchemaMapping
public DoSchemaMapping()
validateTemporalAnnotation
public boolean validateTemporalAnnotation(java.lang.String temporalBundle)
- Validates given Temporal Annotation using Snapshot Schema and TXSchemas standard.
- Parameters:
temporalBundle
-
- Returns:
validatePhysicalAnnotation
public boolean validatePhysicalAnnotation(java.lang.String temporalBundle)
- Validates given Physical Annotation using Snapshot Schema and PXSchemas standard.
- Parameters:
temporalBundle
-
- Returns:
createRepresentationalSchema
public org.w3c.dom.Document createRepresentationalSchema(java.lang.String temporalSchema,
int schemaVersion)
- Creates a Representational schema document from given set of Snapshot document,Temporal and Physical Annotations and Temporal Bundle.
The Representational Schema Document will be written at location specified by representationalSchema.
- Parameters:
temporalSchema
- - Path of temporal bundle documentrepresentationalSchema
- - Path of representational schema
writeDocument
public void writeDocument(org.w3c.dom.Document doc,
java.lang.String fileName)
createRepresentationalSchema
public org.w3c.dom.Document createRepresentationalSchema(java.lang.String snapshotSchema,
java.lang.String temporalAnnotation,
java.lang.String physicalAnnotation,
int schemaVersion)