www.sdmetrics.com

sdmetrics.model
Class XMITransformations

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--sdmetrics.model.XMITransformations
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class XMITransformations
extends org.xml.sax.helpers.DefaultHandler

Reads the XMI transformation file and stores its contents, and provide access to the XMI transformations defined in the file.


Field Summary
static java.lang.String TL_ELEMENT
          The name of the top level XML element in the XMI transformation file.
 
Constructor Summary
XMITransformations(MetaModel mm)
           
 
Method Summary
 void endDocument()
          SAX parser handler: At the end of the document, calculate inherited triggers for inherited metamodel element attributes.
 void endElement(java.lang.String uri, java.lang.String local, java.lang.String raw)
          SAX parser handler: end of a xmitransformation element, store the completed XMI transformation.
 void startElement(java.lang.String uri, java.lang.String local, java.lang.String raw, org.xml.sax.Attributes attrs)
          SAX parser handler: Read the XML element in an XMI transformation file and build up the internal data structure to store XMI transformation information.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TL_ELEMENT

public static final java.lang.String TL_ELEMENT
The name of the top level XML element in the XMI transformation file.

See Also:
Constant Field Values
Constructor Detail

XMITransformations

public XMITransformations(MetaModel mm)
Parameters:
mm - Metamodel on which the XMI transformations are based.
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String local,
                         java.lang.String raw,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
SAX parser handler: Read the XML element in an XMI transformation file and build up the internal data structure to store XMI transformation information.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException - Illegal XML elements or attributes were specified.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String local,
                       java.lang.String raw)
SAX parser handler: end of a xmitransformation element, store the completed XMI transformation.

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
SAX parser handler: At the end of the document, calculate inherited triggers for inherited metamodel element attributes.

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler

www.sdmetrics.com