|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.charlesames.utility.common.Disposable
net.charlesames.music.musicxml.MusicXmlEntity
net.charlesames.music.musicxml.ScorePart
public class ScorePart
The ScorePart class implements the MusicXML <score-part> element.
| Method Summary | |
|---|---|
java.lang.String |
createInstrumentID(EnsembleInstrument ensembleInstrument)
Construct an instrument id from a specified EnsembleInstrument instance. |
MidiInstrument |
createMidiInstrument(java.lang.String id)
Create a new MidiInstrument instance and add it to this part. |
ScoreInstrument |
createScoreInstrument(java.lang.String id,
java.lang.String name)
Create a new ScoreInstrument instance and add it to this part. |
java.lang.String |
createUnpitchedSoundID(UnpitchedSound unpitchedSound)
Construct an instrument id from a specified UnpitchedSound instance. |
void |
dispose()
Release resources engaged by this object, thus rendering it amenable to garbage collection. |
boolean |
equals(MusicXmlEntity other)
Test if this MusicXML entity has the same content as another object. |
static ScorePart |
fromXmlNode(org.w3c.dom.Element element,
ScorePartwise container)
Create a new ScorePart instance and fill it with loaded data. |
java.lang.String |
getID()
Getter for the ID property |
MidiInstrument |
getMidiInstrument(java.lang.String id)
Get the MidiInstrument instance with the indicated id. |
java.lang.String |
getName()
Getter for the Name property |
ScoreInstrument |
getScoreInstrument(java.lang.String id)
Get the ScoreInstrument instance with the indicated id. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setID(java.lang.String id)
Setter for the ID property |
void |
setName(java.lang.String name)
Setter for the Name property |
org.w3c.dom.Node |
toXmlNode(org.w3c.dom.Node parent)
Serialize the content of a MusicXML entity into an XML element. |
| Methods inherited from class net.charlesames.music.musicxml.MusicXmlEntity |
|---|
getContainer, makeDirty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void dispose()
Disposable
dispose in class Disposablepublic java.lang.String getID()
public void setID(java.lang.String id)
id - The intended ID value.public java.lang.String getName()
public void setName(java.lang.String name)
name - The intended Name value.public java.lang.String createInstrumentID(EnsembleInstrument ensembleInstrument)
EnsembleInstrument instance.
ensembleInstrument - The specified EnsembleInstrument instance.
public java.lang.String createUnpitchedSoundID(UnpitchedSound unpitchedSound)
UnpitchedSound instance.
unpitchedSound - The specified UnpitchedSound instance.
public ScoreInstrument createScoreInstrument(java.lang.String id,
java.lang.String name)
ScoreInstrument instance and add it to this part.
id - The score-instrument id. If this id is already used the existing ScoreInstrument will be returned.name - The score-instrument name.
ScoreInstrument instance.public ScoreInstrument getScoreInstrument(java.lang.String id)
ScoreInstrument instance with the indicated id.
id - The indicated id.
ScoreInstrument instance with the indicated id.public MidiInstrument getMidiInstrument(java.lang.String id)
MidiInstrument instance with the indicated id.
id - The indicated id.
MidiInstrument instance with the indicated id.public MidiInstrument createMidiInstrument(java.lang.String id)
MidiInstrument instance and add it to this part.
id - The midi-instrument id. If this id is already used the existing ScoreInstrument will be returned.
MidiInstrument instance.public org.w3c.dom.Node toXmlNode(org.w3c.dom.Node parent)
MusicXmlEntity
toXmlNode in class MusicXmlEntityparent - The XML element which is to receive the data.
public void putXmlData(org.w3c.dom.Element element)
public static ScorePart fromXmlNode(org.w3c.dom.Element element,
ScorePartwise container)
element - The XML element that provides the ScorePart datacontainer - The ScorePartwise which will contain the new ScorePart instance.
public boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class MusicXmlEntityother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||