|
||||||||||
| 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.TimeSignature
public class TimeSignature
The TimeSignature class implements the MusicXML <time> element.
| Method Summary | |
|---|---|
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 TimeSignature |
fromXmlNode(org.w3c.dom.Element element,
Attributes container)
Create a new TimeSignature instance and fill it with loaded data. |
int |
getBeats()
Getter for the Beats property |
int |
getBeatType()
Getter for the BeatType property |
static TimeSignature |
getInstance(Attributes container)
Create a new TimeSignature instance. |
java.lang.String |
getSymbol()
Getter for the Symbol property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setBeats(int beats)
Setter for the Beats property |
void |
setBeatType(int beatType)
Setter for the BeatType property |
void |
setSymbol(java.lang.String symbol)
Setter for the Symbol 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 static TimeSignature getInstance(Attributes container)
container - The Attributes which will contain the new TimeSignature instance.
public int getBeats()
public void setBeats(int beats)
beats - The intended Beats value.public int getBeatType()
public void setBeatType(int beatType)
beatType - The intended BeatType value.public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
symbol - The intended Symbol value.
public static TimeSignature fromXmlNode(org.w3c.dom.Element element,
Attributes container)
element - The XML element that provides the TimeSignature datacontainer - The Attributes which will contain the new TimeSignature 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 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 | |||||||||