Class MusicXmlUtil

java.lang.Object
com.musicxmltasks.musicxml.util.MusicXmlUtil

public class MusicXmlUtil
extends java.lang.Object
  • Field Details

    • SCORE_PARTWISE

      public static final java.lang.String SCORE_PARTWISE
      See Also:
      Constant Field Values
    • SCORE_TIMEWISE

      public static final java.lang.String SCORE_TIMEWISE
      See Also:
      Constant Field Values
    • VERBOSE

      public static java.lang.Boolean VERBOSE
    • INCLUDE_BREAKS

      public static java.lang.Boolean INCLUDE_BREAKS
  • Method Details

    • printToErr

      public static void printToErr​(java.lang.String message)
    • getDbTransaction

      public static DBTransaction getDbTransaction() throws DBException
      Throws:
      DBException
    • getNewDbTransaction

      public static DBTransaction getNewDbTransaction() throws DBException
      Throws:
      DBException
    • clearDb

      public static void clearDb() throws DBException
      Throws:
      DBException
    • getFormattedXml

      public static java.lang.String getFormattedXml​(org.w3c.dom.Document document, Score score) throws XmlException
      Throws:
      XmlException
    • getFormattedTransformer

      public static javax.xml.transform.Transformer getFormattedTransformer() throws XmlException
      Throws:
      XmlException
    • getMusicDataForMeasureItem

      public static MusicData getMusicDataForMeasureItem​(MeasureItem measureItem) throws MusicXmlException
      Throws:
      MusicXmlException
    • getScoreNames

      public static java.util.List<java.lang.String> getScoreNames()
    • getScoreFromMusicXmlFile

      public static Score getScoreFromMusicXmlFile​(java.lang.String xmlFilename) throws XmlException
      Throws:
      XmlException
    • getDocumentFromScore

      public static org.w3c.dom.Document getDocumentFromScore​(Score score) throws MusicXmlException
      Throws:
      MusicXmlException
    • getXmlComments

      public static java.util.List<XmlComment> getXmlComments​(org.w3c.dom.Node node)
    • setXmlCommentsByXpath

      public static void setXmlCommentsByXpath​(org.w3c.dom.Document document, java.util.List<XmlComment> xmlComments)
    • setXmlCommentsByWalk

      public static void setXmlCommentsByWalk​(org.w3c.dom.Document document, java.util.List<XmlComment> xmlComments)