net.charlesames.music.musicxml
Enum Clef.ClefSign

java.lang.Object
  extended by java.lang.Enum<Clef.ClefSign>
      extended by net.charlesames.music.musicxml.Clef.ClefSign
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Clef.ClefSign>
Enclosing class:
Clef

public static enum Clef.ClefSign
extends java.lang.Enum<Clef.ClefSign>

Allowed values for the Sign property.

Author:
Charles Ames

Enum Constant Summary
C
          C (moveable) clef.
F
          F (bass) clef.
G
          G (treble) clef.
none
          No clef.
percussion
          Percussion clef.
TAB
          Tablature.
 
Method Summary
static Clef.ClefSign valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Clef.ClefSign[] 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

G

public static final Clef.ClefSign G
G (treble) clef.


F

public static final Clef.ClefSign F
F (bass) clef.


C

public static final Clef.ClefSign C
C (moveable) clef.


percussion

public static final Clef.ClefSign percussion
Percussion clef.


TAB

public static final Clef.ClefSign TAB
Tablature.


none

public static final Clef.ClefSign none
No clef.

Method Detail

values

public static Clef.ClefSign[] 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 (Clef.ClefSign c : Clef.ClefSign.values())
    System.out.println(c);

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

valueOf

public static Clef.ClefSign 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