net.charlesames.music.musicxml.attribute
Enum NoteheadShape

java.lang.Object
  extended by java.lang.Enum<NoteheadShape>
      extended by net.charlesames.music.musicxml.attribute.NoteheadShape
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NoteheadShape>

public enum NoteheadShape
extends java.lang.Enum<NoteheadShape>

Selection options for MusicXML NoteheadShape attributes.

Author:
Charles Ames

Enum Constant Summary
ARROW_DOWN
           
ARROW_UP
           
BACKSLASHED
           
CIRCLE_X
           
CLUSTER
           
CROSS
           
DIAMOND
           
DO
           
FA
           
INVERTED_TRIANGLE
           
LA
           
MI
           
NONE
           
NORMAL
           
RE
           
SLASH
           
SLASHED
           
SO
           
SQUARE
           
TI
           
TRIANGLE
           
X
           
 
Method Summary
 java.lang.String text()
          Get the text associated with this NodeheadShape instance.
static NoteheadShape valueFromText(java.lang.String text)
          Get the NodeheadShape instance associated with the specified text.
static NoteheadShape valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NoteheadShape[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SLASH

public static final NoteheadShape SLASH

TRIANGLE

public static final NoteheadShape TRIANGLE

DIAMOND

public static final NoteheadShape DIAMOND

SQUARE

public static final NoteheadShape SQUARE

CROSS

public static final NoteheadShape CROSS

X

public static final NoteheadShape X

CIRCLE_X

public static final NoteheadShape CIRCLE_X

NORMAL

public static final NoteheadShape NORMAL

CLUSTER

public static final NoteheadShape CLUSTER

INVERTED_TRIANGLE

public static final NoteheadShape INVERTED_TRIANGLE

ARROW_DOWN

public static final NoteheadShape ARROW_DOWN

ARROW_UP

public static final NoteheadShape ARROW_UP

SLASHED

public static final NoteheadShape SLASHED

BACKSLASHED

public static final NoteheadShape BACKSLASHED

DO

public static final NoteheadShape DO

RE

public static final NoteheadShape RE

MI

public static final NoteheadShape MI

FA

public static final NoteheadShape FA

SO

public static final NoteheadShape SO

LA

public static final NoteheadShape LA

TI

public static final NoteheadShape TI

NONE

public static final NoteheadShape NONE
Method Detail

values

public static NoteheadShape[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NoteheadShape c : NoteheadShape.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NoteheadShape valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

text

public java.lang.String text()
Get the text associated with this NodeheadShape instance.

Returns:
The text associated with this NodeheadShape instance.

valueFromText

public static NoteheadShape valueFromText(java.lang.String text)
Get the NodeheadShape instance associated with the specified text.

Parameters:
text - The specified text.
Returns:
The NodeheadShape instance associated with the specified text.