|
||||||||||
| 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.Beam
public class Beam
The Beam class implements the MusicXML <beam> 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 Beam |
fromXmlNode(org.w3c.dom.Element element,
NoteInMeasure container)
Create a new Beam instance and fill it with loaded data. |
BeamValue |
getContent()
Getter for the Content property. |
static Beam |
getInstance(NoteInMeasure container)
Create a new Beam instance. |
int |
getNumber()
Getter for the Number property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setContent(BeamValue content)
Setter for the Content property. |
void |
setNumber(int number)
Setter for the Number 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 Beam getInstance(NoteInMeasure container)
container - The NoteInMeasure which will contain the new Beam instance.
public int getNumber()
Number property.
Number value.public void setNumber(int number)
Number property.
number - The intended Number value.public BeamValue getContent()
Content property.
Content value.public void setContent(BeamValue content)
Content property.
content - The intended Content value.
public static Beam fromXmlNode(org.w3c.dom.Element element,
NoteInMeasure container)
element - The XML element that provides the Beam datacontainer - The NoteInMeasure which will contain the new Beam 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 | |||||||||