marg.model.plugin
Interface XMLParsePlugin

All Known Implementing Classes:
RawDataPlugin, VarDataPlugin, XMLParsePluginTemplate

public interface XMLParsePlugin


Method Summary
 void endElement(java.lang.String tagName)
          Called when the endtag of an element is received
 void setPropertyChangeSupport(java.beans.PropertyChangeSupport prop)
          Sets the PropertyChangeSupport object of the parent XMLParser.
 void startElement(java.lang.String tagName, org.xml.sax.Attributes atts)
          Called when the starttag of an element is received
 void tagContents(java.lang.String parentTag, char[] ch, int start, int length)
          Called when contents of an element is received.
 

Method Detail

startElement

void startElement(java.lang.String tagName,
                  org.xml.sax.Attributes atts)
Called when the starttag of an element is received

Parameters:
tagName - name of the element/tag
atts - attributes of the element

endElement

void endElement(java.lang.String tagName)
Called when the endtag of an element is received

Parameters:
tagName - name of the element/tag

tagContents

void tagContents(java.lang.String parentTag,
                 char[] ch,
                 int start,
                 int length)
Called when contents of an element is received. Data can be of any kind

Parameters:
parentTag - name of the first parent tag this content was wrapped in
ch - character buffer
start - start offset for the content in character buffer
length - length of content

setPropertyChangeSupport

void setPropertyChangeSupport(java.beans.PropertyChangeSupport prop)
Sets the PropertyChangeSupport object of the parent XMLParser. By contract this method will be called as the first thing when an XMLParsePlugin is added. This is a central callback hub that should be used to fire PropertyChangeEvents. This is the standard way to make callbacks when new data is received. Data can be sent as the new value when you fire a callback, but feel free to make your own data access methods as well

Parameters:
prop - the PropertyChangeSupport object sent from parent XMLParser