Search in sources :

Example 1 with MxlIdentification

use of com.xenoage.zong.musicxml.types.MxlIdentification in project Zong by Xenoage.

the class ScoreInfoReader method readRights.

private void readRights() {
    MxlIdentification mxlIdentification = mxlHeader.getIdentification();
    if (mxlIdentification != null) {
        for (MxlTypedText mxlRights : it(mxlIdentification.getRights())) {
            Rights rights = new Rights(mxlRights.getValue(), mxlRights.getType());
            scoreInfo.getRights().add(rights);
        }
    }
}
Also used : Rights(com.xenoage.zong.core.info.Rights) MxlIdentification(com.xenoage.zong.musicxml.types.MxlIdentification) MxlTypedText(com.xenoage.zong.musicxml.types.MxlTypedText)

Example 2 with MxlIdentification

use of com.xenoage.zong.musicxml.types.MxlIdentification in project Zong by Xenoage.

the class ScoreInfoReader method readCreators.

private void readCreators() {
    MxlIdentification mxlIdentification = mxlHeader.getIdentification();
    if (mxlIdentification != null) {
        for (MxlTypedText mxlCreator : it(mxlIdentification.getCreators())) {
            Creator creator = new Creator(mxlCreator.getValue(), mxlCreator.getType());
            scoreInfo.getCreators().add(creator);
        }
    }
}
Also used : MxlIdentification(com.xenoage.zong.musicxml.types.MxlIdentification) MxlTypedText(com.xenoage.zong.musicxml.types.MxlTypedText) Creator(com.xenoage.zong.core.info.Creator)

Aggregations

MxlIdentification (com.xenoage.zong.musicxml.types.MxlIdentification)2 MxlTypedText (com.xenoage.zong.musicxml.types.MxlTypedText)2 Creator (com.xenoage.zong.core.info.Creator)1 Rights (com.xenoage.zong.core.info.Rights)1