|
||||||||||
| 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.MusicXmlScore
net.charlesames.music.musicxml.ScorePartwise
public class ScorePartwise
The ScorePartwise, implements the MusicXML <score-partwise> element.
| Method Summary | |
|---|---|
org.w3c.dom.DocumentType |
createDocumentType()
Create an XML DocumentType. |
PartInScore |
createPart(ScorePart scorePart)
Create a new PartInScore instance corresponding to the specified PartInScore instance. |
PartGroup |
createPartGroup(int number,
StartStop type,
java.lang.String name,
GroupSymbol symbol)
Create a new <@link PartGroup> instance with the indicated parameters. |
ScorePart |
createScorePart(java.lang.String id,
java.lang.String name)
Create a new <@link ScorePart> instance with the indicated parameters. |
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 ScorePartwise |
fromXmlNode(org.w3c.dom.Element element)
Create a new ScorePartwise instance and fill it with loaded data. |
Identification |
getIdentification()
Getter for the Identification property. |
static ScorePartwise |
getInstance()
Create a new ScorePartwise instance. |
java.lang.String |
getMovementTitle()
Getter for the MovementTitle property. |
PartInScore |
getPart(ScorePart scorePart)
Get the PartInScore instance corresponding to the specified ScorePart instance. |
java.util.List<MusicXmlEntity> |
getPartEntities()
Get all ScorePart and PartGroup members. |
java.util.SortedMap<java.lang.String,PartInScore> |
getParts()
Get all PartInScore members. |
ScorePart |
getScorePart(java.lang.String id)
Get the ScorePart instance with the specified id. |
StaffLayout |
getStaffLayout()
Getter for the StaffLayout property. |
SystemLayout |
getSystemLayout()
Getter for the SystemLayout property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setIdentification(Identification identification)
Setter for the Identification property |
void |
setMovementTitle(java.lang.String movementTitle)
Setter for the MovementTitle property |
void |
setPageLayout(PageLayout pageLayout)
Setter for the PageLayout property |
void |
setStaffLayout(StaffLayout staffLayout)
Setter for the StaffLayout property |
void |
setSystemLayout(SystemLayout systemLayout)
Setter for the SystemLayout 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.MusicXmlScore |
|---|
addCredit, getCredits, getVersion, isDirty, load, makeDirty, save |
| Methods inherited from class net.charlesames.music.musicxml.MusicXmlEntity |
|---|
getContainer |
| 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 static ScorePartwise getInstance()
public java.lang.String getMovementTitle()
public void setMovementTitle(java.lang.String movementTitle)
movementTitle - The intended MovementTitle value.public Identification getIdentification()
public void setIdentification(Identification identification)
identification - The intended Identification value.public SystemLayout getSystemLayout()
public void setSystemLayout(SystemLayout systemLayout)
systemLayout - The intended SystemLayout value.public StaffLayout getStaffLayout()
public void setPageLayout(PageLayout pageLayout)
pageLayout - The intended PageLayout value.public void setStaffLayout(StaffLayout staffLayout)
staffLayout - The intended StaffLayout value.public java.util.List<MusicXmlEntity> getPartEntities()
ScorePart and PartGroup members.
ScorePart and PartGroup instances, indexed by id.public ScorePart getScorePart(java.lang.String id)
ScorePart instance with the specified id.
id - The specified id.
ScorePart instance with the specified id.
public ScorePart createScorePart(java.lang.String id,
java.lang.String name)
id - The score part identifier.name - The score part name.
java.lang.IllegalArgumentException - when the id is already used.
public PartGroup createPartGroup(int number,
StartStop type,
java.lang.String name,
GroupSymbol symbol)
number - The part-group id.type - The part-group type.name - The part-group name.symbol - The part-group display type
public java.util.SortedMap<java.lang.String,PartInScore> getParts()
PartInScore members.
PartInScore instances, indexed by ScorePart id.public PartInScore getPart(ScorePart scorePart)
PartInScore instance corresponding to the specified ScorePart instance.
scorePart - The specified ScorePart instance.
PartInScore instance corresponding to the specified ScorePart instance.
java.lang.IllegalArgumentException - when no corresponding PartInScore instance is found.public PartInScore createPart(ScorePart scorePart)
PartInScore instance corresponding to the specified PartInScore instance.
scorePart - The specified PartInScore instance.
PartInScore instance corresponding to the specified PartInScore instance.
java.lang.IllegalArgumentException - when a corresponding PartInScore already exists.public org.w3c.dom.DocumentType createDocumentType()
MusicXmlScore
createDocumentType in class MusicXmlScorepublic org.w3c.dom.Node toXmlNode(org.w3c.dom.Node parent)
MusicXmlEntity
toXmlNode in class MusicXmlScoreparent - The XML element which is to receive the data.
public void putXmlData(org.w3c.dom.Element element)
putXmlData in class MusicXmlScorepublic static ScorePartwise fromXmlNode(org.w3c.dom.Element element)
element - The XML element that provides the ScorePartwise data
public boolean equals(MusicXmlEntity other)
MusicXmlEntity
equals in class MusicXmlScoreother - The other object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||