com.palserv.XMidi
Class TagFORMAT

java.lang.Object
  extended by com.palserv.XMidi.Tag
      extended by com.palserv.XMidi.TagFORMAT
All Implemented Interfaces:
iTag
Direct Known Subclasses:
TagHEXDATA, TagPPNQ, TagTRACKS

public class TagFORMAT
extends Tag

Implement the FORMAT tag. This class must be public in order for the Tag.getTag method to work. This is one of many Tag subclasses which are all similar. Please see the Tag document and the iTag document for more details.


Constructor Summary
TagFORMAT()
           
 
Method Summary
 java.lang.String createStartXML(State state)
          Create the XML start tag.
 java.lang.String getName()
          Get the tag name.
 void startElement(org.xml.sax.Attributes attr, State state)
          Handle the beginning of each element.
 
Methods inherited from class com.palserv.XMidi.Tag
createEndXML, endElement, getTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagFORMAT

public TagFORMAT()
Method Detail

startElement

public void startElement(org.xml.sax.Attributes attr,
                         State state)
Description copied from class: Tag
Handle the beginning of each element. Invoked by the XM.startElement method of XM, which implements the SAX interface.

Specified by:
startElement in interface iTag
Overrides:
startElement in class Tag
Parameters:
attr - - a list of attributes (org.xml.sax.Attributes)
state - - the State object.

createStartXML

public java.lang.String createStartXML(State state)
Description copied from class: Tag
Create the XML start tag. This is invoked from various places during MX processing.

Specified by:
createStartXML in interface iTag
Overrides:
createStartXML in class Tag
Parameters:
state - - the State object.
Returns:
the start tag.

getName

public java.lang.String getName()
Description copied from class: Tag
Get the tag name.

Overrides:
getName in class Tag
Returns:
the tag name.