jp.crestmuse.cmx.filewrappers
クラス MusicXMLWrapper.MusicData
java.lang.Object
jp.crestmuse.cmx.filewrappers.NodeInterface
jp.crestmuse.cmx.filewrappers.MusicXMLWrapper.MusicData
- すべての実装されたインタフェース:
- Ordered
- 直系の既知のサブクラス:
- MusicXMLWrapper.Attributes, MusicXMLWrapper.Backup, MusicXMLWrapper.BarLine, MusicXMLWrapper.Direction, MusicXMLWrapper.Forward, MusicXMLWrapper.Note
- 含まれているクラス:
- MusicXMLWrapper
public class MusicXMLWrapper.MusicData
- extends NodeInterface
- implements Ordered
MusicXMLドキュメントの要素のうち, score.dtdでmusic-dataエンティティに
指定されているもの, 具体的には note, backup, forward, direction, attributes,
harmony, figured-bass, print, sound, barline, grouping, link, bookmark
をラップするクラスです.
ただし, これらの要素で記述されるすべての情報を取り出す手段が提供されている
わけではありません.
noteなどの主要な要素は専用のクラスがこのクラスを継承して設計されており,
通常はこういったサブクラスにダウンキャストして情報を取り出します.
クラス jp.crestmuse.cmx.filewrappers.NodeInterface から継承されたメソッド |
getAttribute, getAttribute, getAttributeDouble, getAttributeDouble, getAttributeInt, getAttributeInt, getAttributeNS, getChildByTagName, getChildByTagNameNS, getChildNodes, getChildText, getChildTextDouble, getChildTextInt, getFirstChild, getLastChild, getNodeName, getText, getText, getTextDouble, getTextInt, hasAttribute, hasAttribute, hasChild, node |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSupportedNodeName
protected java.lang.String getSupportedNodeName()
Returns "note|backup|forward|direction|attributes|harmony|figured-bass|print|sound|barline|grouping|link|bookmark".
- 定義:
- クラス
NodeInterface
内の getSupportedNodeName
measure
public final MusicXMLWrapper.Measure measure()
duration
public int duration()
duration
public int duration(int ticksPerBeat)
actualDuration
public double actualDuration()
actualDuration
public int actualDuration(int ticksPerBeat)
onsetWithinMeasure
public double onsetWithinMeasure()
onset
public int onset(int ticksPerBeat)
offset
public int offset(int ticksPerBeat)
ordinal
public int ordinal()
- 定義:
- インタフェース
Ordered
内の ordinal
subordinal
public int subordinal()
- 定義:
- インタフェース
Ordered
内の subordinal