|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
be.ac.vub.cocompose.io.xmi.XMIModelLinkReader
Reads the links in a CoCompose model from an XMI file (requires first pass by XMIModelReader).
Constructor Summary | |
XMIModelLinkReader(Model model,
Hashtable elementMap)
Creates an XMIModelLinkReader |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Characters. |
void |
endCoComposeElement(String local)
Start CoCompose element. |
void |
endElement(String uri,
String local,
String raw)
End element. |
void |
endOwnedElement()
Parses an ownedElement tag |
void |
endXMIElement(String local)
End XMI element. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Ignorable whitespace. |
void |
notationDecl(String name,
String publicId,
String systemId)
DTD declaration. |
void |
processingInstruction(String target,
String data)
Processing instruction. |
void |
startCoComposeElement(String local,
Attributes attrs)
Start CoCompose element. |
void |
startDocument()
Start document. |
void |
startElement(String uri,
String local,
String raw,
Attributes attrs)
Start element. |
void |
startOwnedElement(Attributes attrs)
Parses an ownedElement tag |
void |
startPart(Attributes attrs)
Parses a part tag |
void |
startParticipant(Attributes attrs)
Parses a participant tag |
void |
startPartOf(Attributes attrs)
Parses a partOf tag |
void |
startXMIElement(String local,
Attributes attrs)
Start XMI element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMIModelLinkReader(Model model, Hashtable elementMap) throws ModelElementException
model
- the model after one pass by XMIModelReaderelementMap
- the map of id -> elementMethod Detail |
public void processingInstruction(String target, String data) throws SAXException
target
- Processing instruction element name.data
- Processing instruction element data.
SAXException
public void startDocument() throws SAXException
SAXException
public void startElement(String uri, String local, String raw, Attributes attrs) throws SAXException
uri
- XML namespace URI.local
- local element name.raw
- raw (qualified) element name.attrs
- element attributes.
SAXException
public void startXMIElement(String local, Attributes attrs) throws SAXException
local
- local element name.attrs
- element attributes.
SAXException
public void startCoComposeElement(String local, Attributes attrs) throws SAXException
local
- local element name.attrs
- element attributes.
SAXException
public void startOwnedElement(Attributes attrs) throws ModelElementException
attrs
- element attributes
ModelElementException
public void startParticipant(Attributes attrs) throws ModelElementException
attrs
- element attributes
ModelElementException
public void startPartOf(Attributes attrs) throws ModelElementException
attrs
- element attributes
ModelElementException
public void startPart(Attributes attrs) throws ModelElementException
attrs
- element attributes
ModelElementException
public void characters(char[] ch, int start, int length) throws SAXException
ch
- Characters to print.start
- Starting index of characters.length
- Length of characters.
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ch
- Characters to print.start
- Starting index of characters.length
- Length of characters.
SAXException
public void endElement(String uri, String local, String raw) throws SAXException
uri
- Ignored.local
- Ignored.raw
- Element name.
SAXException
public void endXMIElement(String local) throws SAXException
local
- local element name.
SAXException
public void endCoComposeElement(String local) throws SAXException
local
- local element name.
SAXException
public void endOwnedElement() throws ModelElementException
ModelElementException
public void notationDecl(String name, String publicId, String systemId) throws SAXException
name
- DTD name.publicId
- DTD public ID.systemId
- DTD system ID.
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |