com.softsynth.jmsl.util
Interface HandleSpecialXMLTag

All Known Implementing Classes:
CelloSampleIns, CelloSampleSustainingIns, FunkyBean, MaxInstrument, SimpleSamplePlayingInstrument, SimpleSamplePlayingInstrumentWithAmplitudeMap, SimpleSamplePlayingInstrumentWithLoops, SupoveVox, TransposingSamplePlayingInstrument, TransposingSamplePlayingInstrumentWithAmplitudeMap, TransposingSampleSustainingInstrument, TransposingSampleSustainingInstrumentWithAmplitudeMap

public interface HandleSpecialXMLTag

An Object that implements this interface can define a method to handle XML tags that fall outside of the simple bean model of attribute/value pair. For example, multiple pitch soundfilename pairs. When SimpleXMLLoader executes beginElement(), it first checks to see if the object it is currently populating implements this interface. If it does, it offers the tag to the method which returns tru eif it handles it If the object does not implement this interface or if the handleSpecialTag() returns false, SimpleXMLLoader handles the tag as a bean attribute/value pair

Author:
Nick Didkovsky, email: didkovn@mail.rockefeller.edu, (c) 2003 Nick Didkovsky, all rights reserved.

Method Summary
 boolean handleSpecialTag(java.lang.String tag, java.util.Hashtable attributes)
           
 void writeSpecialXMLTags(java.io.PrintWriter out)
          Write special tags out that do not conform to get/set bean model.
 

Method Detail

handleSpecialTag

boolean handleSpecialTag(java.lang.String tag,
                         java.util.Hashtable attributes)
Returns:
true if this tag is recognized as special, false if the object permits normal bean model to handle attribute/value pairs

writeSpecialXMLTags

void writeSpecialXMLTags(java.io.PrintWriter out)
                         throws java.io.IOException
Write special tags out that do not conform to get/set bean model. Called by SimpleXMLSaver.writeXML() for objects that implement this interface

Throws:
java.io.IOException