org.yawlfoundation.yawl.schema
Enum YSchemaVersion

java.lang.Object
  extended by java.lang.Enum<YSchemaVersion>
      extended by org.yawlfoundation.yawl.schema.YSchemaVersion
All Implemented Interfaces:
Serializable, Comparable<YSchemaVersion>

public enum YSchemaVersion
extends Enum<YSchemaVersion>

An enumeration of schema versions, with associated methods

Author:
Michael Adams
Created/Last Date:
11/05/2011

Enum Constant Summary
Beta2
           
Beta3
           
Beta4
           
Beta6
           
Beta7
           
TwoPointOne
           
TwoPointTwo
           
TwoPointZero
           
 
Field Summary
static YSchemaVersion DEFAULT_VERSION
           
 
Method Summary
 String betaNS()
           
 String betaSchemaLocation()
           
static YSchemaVersion defaultVersion()
           
static YSchemaVersion fromString(String s)
           
 String getHeader()
           
 String getNameSpace()
           
 String getSchemaLocation()
           
 String getSchemaLocation(String s)
           
 boolean isBeta2()
           
 boolean isBetaVersion()
           
 boolean isSchemaValidating()
           
static boolean isValidVersionString(String s)
           
 boolean isVersionAtLeast(YSchemaVersion referenceVersion)
           
 String toString()
           
 String twoNS()
           
 String twoSchemaLocation()
           
 boolean usesSimpleRootData()
           
static YSchemaVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static YSchemaVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Beta2

public static final YSchemaVersion Beta2

Beta3

public static final YSchemaVersion Beta3

Beta4

public static final YSchemaVersion Beta4

Beta6

public static final YSchemaVersion Beta6

Beta7

public static final YSchemaVersion Beta7

TwoPointZero

public static final YSchemaVersion TwoPointZero

TwoPointOne

public static final YSchemaVersion TwoPointOne

TwoPointTwo

public static final YSchemaVersion TwoPointTwo
Field Detail

DEFAULT_VERSION

public static YSchemaVersion DEFAULT_VERSION
Method Detail

values

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

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

valueOf

public static YSchemaVersion 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

toString

public String toString()
Overrides:
toString in class Enum<YSchemaVersion>

fromString

public static YSchemaVersion fromString(String s)

betaNS

public String betaNS()

betaSchemaLocation

public String betaSchemaLocation()

twoNS

public String twoNS()

twoSchemaLocation

public String twoSchemaLocation()

isVersionAtLeast

public boolean isVersionAtLeast(YSchemaVersion referenceVersion)

isValidVersionString

public static boolean isValidVersionString(String s)

defaultVersion

public static YSchemaVersion defaultVersion()

usesSimpleRootData

public boolean usesSimpleRootData()

isSchemaValidating

public boolean isSchemaValidating()

getSchemaLocation

public String getSchemaLocation(String s)

getSchemaLocation

public String getSchemaLocation()

getNameSpace

public String getNameSpace()

getHeader

public String getHeader()

isBetaVersion

public boolean isBetaVersion()

isBeta2

public boolean isBeta2()


Copyright © 2004-2012 The YAWL Foundation.