EDU.utwente.CoCompose.xml
Class CompositeTypeReader
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--EDU.utwente.CoCompose.xml.ModelReader
|
+--EDU.utwente.CoCompose.xml.CompositeTypeReader
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class CompositeTypeReader
- extends ModelReader
XML reader for reading a CoCompose CompositeType XML document and create the
corresponding objects. Based on the SAX2 DefaultHandler class.
- Version:
- 0.0.10, 14 March 2002
- Author:
- Dennis Wagelaar
Fields inherited from class EDU.utwente.CoCompose.xml.ModelReader |
CREATING_COMPOSITE, CREATING_CONCEPT, CREATING_LINK, CREATING_NONE, CREATING_PUBLISHED, CREATING_ROLE, CREATING_SOLROLE, implConstrConceptID_, implConstrForms_, mode_, model, newComposite_, newConcept_, newImpl_, newLink_, newPublished_, newRole_, newSolutionRole_, PCDATA_COMMENTS, PCDATA_GML, PCDATA_NONE, PCDATA_SPEC, pcdataMode_, transPrior_, XMLNAME_COMMENTS, XMLNAME_COMPOSITE, XMLNAME_CONCEPT, XMLNAME_FORM, XMLNAME_GML, XMLNAME_ICONSTR, XMLNAME_ICONT, XMLNAME_IMPL, XMLNAME_IMPLGEN, XMLNAME_LINK, XMLNAME_MODEL, XMLNAME_MULT, XMLNAME_PRI_ITEM, XMLNAME_PRIORITY, XMLNAME_PUBLISHED, XMLNAME_ROLE, XMLNAME_SOLPATT, XMLNAME_SOLROLE, XMLNAME_SPEC |
Method Summary |
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw)
End element. |
protected void |
startCompositeType(org.xml.sax.Attributes attrs)
Start CompositeType element. |
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw,
org.xml.sax.Attributes attrs)
Start element. |
Methods inherited from class EDU.utwente.CoCompose.xml.ModelReader |
characters, conceptChar, edgeChar, endImplementation, endImplementationConstraint, endImplementationContent, endModel, parseGML, parseGML, startAbstractConcept, startComments, startComposite, startCompositePartConcept, startConcept, startConceptForm, startConstrainedConcept, startGML, startImplementation, startImplementationConstraint, startImplementationContent, startImplementationGenerator, startLink, startModel, startMult, startPriority, startPriorityItem, startPublished, startRole, startSolutionPattern, startSolutionRole, startSpec |
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 |
XMLNAME_TYPE
public static final java.lang.String XMLNAME_TYPE
CREATING_TYPE
public static final int CREATING_TYPE
compositeType
protected CompositeType compositeType
- CompositeType to read into.
CompositeTypeReader
public CompositeTypeReader(CompositeType compositeType_in)
throws org.xml.sax.SAXException
- Constructs a CompositeTypeReader.
- Parameters:
compositeType_in
- The CompositeType object to build from the XML file.- Throws:
org.xml.sax.SAXException
- if the given CompositeType is null.
startCompositeType
protected void startCompositeType(org.xml.sax.Attributes attrs)
throws java.lang.Exception
- Start CompositeType element.
- Parameters:
attrs
- Element attributes.- Throws:
java.lang.Exception
- if the attributes could not be read.
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 ModelReader
- Parameters:
uri
- Ignored.local
- Ignored.raw
- Element name.attrs
- Element attributes.- Throws:
org.xml.sax.SAXException
- if the new element could not be parsed.
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 ModelReader
- Parameters:
uri
- Ignored.local
- Ignored.raw
- Element name.- Throws:
org.xml.sax.SAXException
- if the new element could not be parsed.