EDU.utwente.CoCompose.xml
Class ImplementationGeneratorReader

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--EDU.utwente.CoCompose.xml.ImplementationGeneratorReader
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

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

XML reader for reading implementation generator data into an ImplementationGenerator.

Version:
0.1.02, 3 September 2002
Author:
Dennis Wagelaar

Field Summary
protected  ImplementationGenerator pattern
          The implementation generator that is being read.
protected  ImplementationRolePart rolepart
          The role part that is currently being read.
static java.lang.String XMLNAME_CONSTR
           
static java.lang.String XMLNAME_ROLEPART
           
 
Constructor Summary
ImplementationGeneratorReader(ImplementationGenerator pattern_in)
          Constructs an ImplementationGeneratorReader.
 
Method Summary
 void characters(char[] ch, int start, int length)
          Characters.
 void endElement(java.lang.String uri, java.lang.String local, java.lang.String raw)
          End element.
protected  void endRolePart()
          End RolePart element.
protected  void startConstraint(org.xml.sax.Attributes attrs)
          Start Constraint element.
 void startElement(java.lang.String uri, java.lang.String local, java.lang.String raw, org.xml.sax.Attributes attrs)
          Start element.
protected  void startRolePart(org.xml.sax.Attributes attrs)
          Start RolePart element.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, 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

XMLNAME_ROLEPART

public static final java.lang.String XMLNAME_ROLEPART

XMLNAME_CONSTR

public static final java.lang.String XMLNAME_CONSTR

pattern

protected ImplementationGenerator pattern
The implementation generator that is being read.

rolepart

protected ImplementationRolePart rolepart
The role part that is currently being read.
Constructor Detail

ImplementationGeneratorReader

public ImplementationGeneratorReader(ImplementationGenerator pattern_in)
                              throws org.xml.sax.SAXException
Constructs an ImplementationGeneratorReader.
Parameters:
pattern_in - The implementation generator object to read the data into.
Throws:
org.xml.sax.SAXException - if the implementation generator is null.
Method Detail

startRolePart

protected void startRolePart(org.xml.sax.Attributes attrs)
                      throws java.lang.Exception
Start RolePart element.
Parameters:
attrs - Element attributes.
Throws:
java.lang.Exception - if the attributes could not be read.

startConstraint

protected void startConstraint(org.xml.sax.Attributes attrs)
                        throws java.lang.Exception
Start Constraint element.
Parameters:
attrs - Element attributes.
Throws:
java.lang.Exception - if the attributes could not be read.

endRolePart

protected void endRolePart()
End RolePart element.

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
Start element.
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - Ignored.
local - Ignored.
raw - Element name.
attrs - Element attributes.
Throws:
org.xml.sax.SAXException - if the new element could not be parsed.

characters

public void characters(char[] ch,
                       int start,
                       int length)
Characters.
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Parameters:
ch[] - Character input.
start - Starting index of characters.
length - Length of characters.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String local,
                       java.lang.String raw)
                throws org.xml.sax.SAXException
End element.
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - Ignored.
local - Ignored.
raw - Element name.
Throws:
org.xml.sax.SAXException - if the new element could not be parsed.