|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.modelmanagement.modelgen.HDMToHighLevel
uk.ac.ic.doc.automed.modelmanagement.modelgen.HDMToXMLSchema
public class HDMToXMLSchema
A class to do HDM to XML Schema translation
Field Summary | |
---|---|
private java.util.HashMap |
amMatchObjects
|
private Construct |
attribute
|
private Construct |
choice
|
private Construct |
complexElement
|
private java.util.Iterator |
it
|
private Construct |
key
|
private Construct |
keyref
|
private int |
OID
|
private Construct |
parentElement
|
(package private) static java.lang.String |
prefix
|
private Construct |
rootElement
|
private Construct |
simpleElement
|
private Model |
xmlschema
|
Fields inherited from class uk.ac.ic.doc.automed.modelmanagement.modelgen.HDMToHighLevel |
---|
allConstraintObjects, allEdgeObjects, allNodeObjects, cons, edge, extents, features, hdm, hlth, node, sourceSchema |
Constructor Summary | |
---|---|
HDMToXMLSchema(Schema s1,
int features)
Creates a new instance of XMLSchemaTransform |
Method Summary | |
---|---|
private Schema |
addComplexElement(Schema transformedSchema,
SchemaObject parent,
SchemaObject hdmEdge)
Recursive method to add all the complex elements to the XML Schema |
private Schema |
addKeyAttribute(Schema transformedSchema,
SchemaObject parentComplexElement,
SchemaObject hdmNode,
SchemaObject hdmEdge)
Add a key attribute |
private Schema |
addSimpleElement(Schema transformedSchema,
SchemaObject parentComplexElement,
SchemaObject hdmNode,
SchemaObject hdmEdge)
Add a child element and a link to it's parent complex type |
private Schema |
createRootNode(Schema transformedSchema)
Create a root node for this XML Schema |
Schema |
execute(TransformModel am)
Transform the HDM elements in this schema into XMLSchema elements |
private void |
setupXMLModel()
Set up the XML Schema model |
Methods inherited from class uk.ac.ic.doc.automed.modelmanagement.modelgen.HDMToHighLevel |
---|
addHDMObjectsToHashTables, removeHDMConstructs, setSchema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String prefix
private Model xmlschema
private Construct rootElement
private Construct choice
private Construct parentElement
private Construct complexElement
private Construct simpleElement
private Construct attribute
private Construct keyref
private Construct key
private int OID
private java.util.HashMap amMatchObjects
private java.util.Iterator it
Constructor Detail |
---|
public HDMToXMLSchema(Schema s1, int features) throws NotFoundException
s1
- The schema to transform
NotFoundException
- Throws an exception if constrcuts are not foundMethod Detail |
---|
private Schema addComplexElement(Schema transformedSchema, SchemaObject parent, SchemaObject hdmEdge) throws AutoMedException
AutoMedException
private Schema addSimpleElement(Schema transformedSchema, SchemaObject parentComplexElement, SchemaObject hdmNode, SchemaObject hdmEdge) throws TypeMismatchException, NotFoundException, IntegrityException
TypeMismatchException
NotFoundException
IntegrityException
private Schema addKeyAttribute(Schema transformedSchema, SchemaObject parentComplexElement, SchemaObject hdmNode, SchemaObject hdmEdge) throws TypeMismatchException, NotFoundException, IntegrityException
TypeMismatchException
NotFoundException
IntegrityException
private Schema createRootNode(Schema transformedSchema) throws AutoMedException
AutoMedException
private void setupXMLModel() throws AutoMedException
AutoMedException
public Schema execute(TransformModel am) throws AutoMedException
execute
in class HDMToHighLevel
am
- - The result of transforming the HDM schema into an XML Schema-like HDM schema
AutoMedException
- General AutoMed exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |