Class TemplateTrackBinding


  • public final class TemplateTrackBinding
    extends java.lang.Object
    Code for reading and writing template tracks as XML.
    Author:
    dbutano
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TEMPLATETRACK
      label for XML
      static java.lang.String TEMPLATETRACKS
      label for XML
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void marshal​(ObjectStore uos, javax.xml.stream.XMLStreamWriter writer)
      Convert a TemplateTrack to XML and write XML to given writer.
      static void unmarshal​(java.io.Reader reader, ObjectStoreWriter uosw)
      Read the template tracks from an XML stream Reader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TEMPLATETRACKS

        public static final java.lang.String TEMPLATETRACKS
        label for XML
        See Also:
        Constant Field Values
      • TEMPLATETRACK

        public static final java.lang.String TEMPLATETRACK
        label for XML
        See Also:
        Constant Field Values
    • Method Detail

      • marshal

        public static void marshal​(ObjectStore uos,
                                   javax.xml.stream.XMLStreamWriter writer)
        Convert a TemplateTrack to XML and write XML to given writer.
        Parameters:
        uos - the UserObjectStore
        writer - the XMLStreamWriter to write to
      • unmarshal

        public static void unmarshal​(java.io.Reader reader,
                                     ObjectStoreWriter uosw)
        Read the template tracks from an XML stream Reader.
        Parameters:
        reader - contains the template tracks in XML format
        uosw - the objectstore for the userprofile database