|
||||||||||
| 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.Clef
public class Clef
The Clef class implements the MusicXML <clef> element.
| Nested Class Summary | |
|---|---|
static class |
Clef.ClefSign
Allowed values for the Sign property. |
| 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 Clef |
fromXmlNode(org.w3c.dom.Element element,
MusicXmlEntity container)
Create a new Clef instance and fill it with loaded data. |
static Clef |
getInstance(MusicXmlEntity container)
Create a new Clef instance. |
int |
getLine()
Getter for the Line property. |
int |
getNumber()
Getter for the Number property |
int |
getOctave()
Getter for the Octave property. |
Clef.ClefSign |
getSign()
Getter for the Sign property. |
void |
putXmlData(org.w3c.dom.Element element)
|
void |
setLine(int line)
Setter for the Line property. |
void |
setNumber(int number)
Setter for the Number property. |
void |
setOctave(int octave)
Setter for the Octave property. |
void |
setSign(Clef.ClefSign sign)
Setter for the Sign 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 Clef getInstance(MusicXmlEntity container)
container - The MusicXmlEntity which will contain the new Clef instance.
public int getNumber()
public void setNumber(int number)
number - The intended Number value.public int getLine()
public void setLine(int line)
line - The intended Line value.public int getOctave()
public void setOctave(int octave)
octave - The intended Octave value.public Clef.ClefSign getSign()
public void setSign(Clef.ClefSign sign)
sign - The intended Sign value.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 Clef fromXmlNode(org.w3c.dom.Element element,
MusicXmlEntity container)
element - The XML element that provides the Clef datacontainer - The MusicXmlEntity which will contain the new Clef 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 | |||||||||