net.charlesames.music.musicxml.attribute
Enum BarStyle

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

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

Selection options for MusicXML BarStyle attributes.

Author:
Charles Ames

Enum Constant Summary
DASHED
          Single dashed
DOTTED
          Single dotted
HEAVY
          Single heavy
HEAVY_HEAVY
          Double heavy + heavy
HEAVY_LIGHT
          Double heavy + light
LIGHT_HEAVY
          Double light + heavy
LIGHT_LIGHT
          Double light + light
NONE
          No barline
REGULAR
          Single regular
SHORT
          Short - a partial barline between the 2nd and 4th lines
TICK
          Tick - a short stroke through the top line
 
Method Summary
static BarStyle fromText(java.lang.String text)
          Look up the BarStyle instance corresponding to the indicated text.
 java.lang.String text()
          The text value associated with this enumeration element.
static BarStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BarStyle[] 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

REGULAR

public static final BarStyle REGULAR
Single regular


DOTTED

public static final BarStyle DOTTED
Single dotted


DASHED

public static final BarStyle DASHED
Single dashed


HEAVY

public static final BarStyle HEAVY
Single heavy


LIGHT_LIGHT

public static final BarStyle LIGHT_LIGHT
Double light + light


LIGHT_HEAVY

public static final BarStyle LIGHT_HEAVY
Double light + heavy


HEAVY_LIGHT

public static final BarStyle HEAVY_LIGHT
Double heavy + light


HEAVY_HEAVY

public static final BarStyle HEAVY_HEAVY
Double heavy + heavy


TICK

public static final BarStyle TICK
Tick - a short stroke through the top line


SHORT

public static final BarStyle SHORT
Short - a partial barline between the 2nd and 4th lines


NONE

public static final BarStyle NONE
No barline

Method Detail

values

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

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

valueOf

public static BarStyle 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()
The text value associated with this enumeration element.

Returns:
The text value associated with this enumeration element.

fromText

public static BarStyle fromText(java.lang.String text)
Look up the BarStyle instance corresponding to the indicated text.

Parameters:
text - The indicated text.
Returns:
The BarStyle instance corresponding to the indicated text.