|
||||||||||
| 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.utility.entity.Entity
net.charlesames.utility.entity.WriteableEntity
net.charlesames.music.ensemble.EnsembleEntity
net.charlesames.music.ensemble.MusicXmlStaff
public class MusicXmlStaff
MusicXmlStaff objects together define the fine vertical structure of a MusicXML part.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
EnsembleEntity.AttributeTable |
| Method Summary | |
|---|---|
static XmlSpec |
createXmlSpec()
Create an XML specification for the MusicXmlStaff class. |
boolean |
equals(EnsembleEntity other)
Check if this entity has the same class and content as another entity. |
static MusicXmlStaff |
fromXmlNode(org.w3c.dom.Element element,
MusicXmlPart part)
Create a new MusicXmlStaff instance and fill it with loaded data. |
MusicXmlPart |
getContainer()
Getter for the Container property. |
Clef |
getDefaultClef()
Getter for the DefaultClef property. |
Dynamic |
getDynamic()
Setter for the Dynamic property. |
java.lang.String |
getPath()
Return a description of this entity and its containers. |
void |
getXmlData(org.w3c.dom.Element element)
Read data from an XML Element. |
void |
setDefaultClef(Clef clef)
Setter for the DefaultClef property. |
void |
setDynamic(Dynamic dynamic)
Getter for the Dynamic property. |
boolean |
setID(int id)
Setter for the ID property. |
boolean |
setName(java.lang.String name)
Setter for the Name property. |
java.lang.String |
toString()
|
| Methods inherited from class net.charlesames.music.ensemble.EnsembleEntity |
|---|
buildDescription, copyToClipboard, createIndentCell, createXmlSpec, describeFeature, getEnsemble, logError, predecessor |
| Methods inherited from class net.charlesames.utility.entity.WriteableEntity |
|---|
check, clearXmlSpecs, createXmlSpec, getTagName, getXmlSpec, getXmlSpec, initializeXsd, isPersistent, logError, logError, makeDirty, putXmlData, save, setPersistent, setStatus, toXmlNode |
| Methods inherited from class net.charlesames.utility.entity.Entity |
|---|
decrementReferenceCount, dereferenceHandle, dispose, equals, getHandle, getID, getName, getReferenceCount, getStatus, getText, hasContainer, incrementReferenceCount, isModifiable, methodHasOverride, predecessor, resequenceEntities, setContainer, setModifiable, shiftEntitiesDown, shiftEntityDown, shiftEntityUp, successor, wipe |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public MusicXmlPart getContainer()
EntityContainer property.
getContainer in class EnsembleEntityContainer value.public Clef getDefaultClef()
Ensemble to MusicXML, you must
therefore fill in five EnsembleVoice properties: MusicXmlPart, MusicXmlStaffID, DefaultClef,
MusicXmlVoiceID, and MusicXmlPlacement. Each voice in a MusicXML-capable Ensemble must
have a unique combination of part, staff id, and voice id.
public void setDefaultClef(Clef clef)
Ensemble to MusicXML, you must
therefore fill in five EnsembleVoice properties: MusicXmlPart, MusicXmlStaffID, DefaultClef,
MusicXmlVoiceID, and MusicXmlPlacement. Each voice in a MusicXML-capable Ensemble must
have a unique combination of part, staff id, and voice id.
Call this method after you have set the MusicXmlPart, since the range of allowable voice id's is determined by the part.
clef - The intended default clef.public Dynamic getDynamic()
Dynamic property.
The Dynamic property property non-persistent.
It is used by the MusicXML writer to track the most-recently used dynamic.
It enables the writer to suppress redundant dynamic indications.
Dynamic value.public void setDynamic(Dynamic dynamic)
Dynamic property.
The Dynamic property property non-persistent.
It is used by the MusicXML writer to track the most-recently used dynamic.
It enables the writer to suppress redundant dynamic indications.
dynamic - The intended Dynamic value.public boolean setID(int id)
EntityID property.
setID in class WriteableEntityid - The intended ID value.
ID change actually happened; false otherwise.public boolean setName(java.lang.String name)
EntityName property.
setName in class WriteableEntityname - The intended Name value.
Name change actually happened; false otherwise.public java.lang.String getPath()
Entity
getPath in interface EntityContainergetPath in class Entity
public static MusicXmlStaff fromXmlNode(org.w3c.dom.Element element,
MusicXmlPart part)
element - The XML element that provides the MusicXmlStaff datapart - The Ensemble which will contain the new MusicXmlStaff.
public void getXmlData(org.w3c.dom.Element element)
WriteableEntityElement.
getXmlData in class WriteableEntityelement - The source Element.public java.lang.String toString()
toString in class EnsembleEntitypublic static XmlSpec createXmlSpec()
MusicXmlStaff class.
XmlSpec instance.
java.lang.RuntimeException - when an XmlSpec instance already exists for the MusicXmlStaff class.public boolean equals(EnsembleEntity other)
EnsembleEntity
equals in class EnsembleEntityother - The other entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||