Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.stomp.protocol
Enum StompFrame.Version

java.lang.Object
  extended by java.lang.Enum<StompFrame.Version>
      extended by org.projectodd.stilts.stomp.protocol.StompFrame.Version
All Implemented Interfaces:
Serializable, Comparable<StompFrame.Version>
Enclosing class:
StompFrame

public static enum StompFrame.Version
extends Enum<StompFrame.Version>


Enum Constant Summary
VERSION_1_0
           
VERSION_1_1
           
 
Method Summary
static StompFrame.Version forVersionString(String versionString)
           
 boolean isAfter(StompFrame.Version version)
           
 boolean isBefore(StompFrame.Version version)
           
static String supportedVersions()
           
static StompFrame.Version valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StompFrame.Version[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 String versionString()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VERSION_1_0

public static final StompFrame.Version VERSION_1_0

VERSION_1_1

public static final StompFrame.Version VERSION_1_1
Method Detail

values

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

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

valueOf

public static StompFrame.Version valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isAfter

public boolean isAfter(StompFrame.Version version)

isBefore

public boolean isBefore(StompFrame.Version version)

forVersionString

public static StompFrame.Version forVersionString(String versionString)

supportedVersions

public static String supportedVersions()

versionString

public String versionString()

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.