|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
EDU.utwente.CoCompose.xml.ModelReader
EDU.utwente.CoCompose.xml.CompositeTypeReader
XML reader for reading a CoCompose CompositeType XML document and create the corresponding objects. Based on the SAX2 DefaultHandler class.
Field Summary | |
protected CompositeType |
compositeType
CompositeType to read into. |
static int |
CREATING_TYPE
|
static java.lang.String |
XMLNAME_TYPE
|
Constructor Summary | |
CompositeTypeReader(CompositeType compositeType_in)
Constructs a CompositeTypeReader. |
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 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 |
public static final java.lang.String XMLNAME_TYPE
public static final int CREATING_TYPE
protected CompositeType compositeType
Constructor Detail |
public CompositeTypeReader(CompositeType compositeType_in) throws org.xml.sax.SAXException
compositeType_in
- The CompositeType object to build from the XML file.
org.xml.sax.SAXException
- if the given CompositeType is null.Method Detail |
protected void startCompositeType(org.xml.sax.Attributes attrs) throws java.lang.Exception
attrs
- Element attributes.
java.lang.Exception
- if the attributes could not be read.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
startElement
in interface org.xml.sax.ContentHandler
startElement
in class ModelReader
uri
- Ignored.local
- Ignored.raw
- Element name.attrs
- Element attributes.
org.xml.sax.SAXException
- if the new element could not be parsed.public void endElement(java.lang.String uri, java.lang.String local, java.lang.String raw) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class ModelReader
uri
- Ignored.local
- Ignored.raw
- Element name.
org.xml.sax.SAXException
- if the new element could not be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |