com.atlassian.confluence.it.rpc
Enum ConfluenceRpc.Version

java.lang.Object
  extended by java.lang.Enum<ConfluenceRpc.Version>
      extended by com.atlassian.confluence.it.rpc.ConfluenceRpc.Version
All Implemented Interfaces:
Serializable, Comparable<ConfluenceRpc.Version>
Enclosing class:
ConfluenceRpc

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

Enumeration of all supported versions of the Confluence remote API


Enum Constant Summary
V1
          The original confluence1 (pre-4.0) API
V2
          The confluence2 (post-4.0) API with support for the xml storage format
V2_WITH_WIKI_MARKUP
          The V2 API, except for calls to create content which are passed through the V1 API so tests can create content with wiki markup.
 
Method Summary
static ConfluenceRpc.Version valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfluenceRpc.Version[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

V1

public static final ConfluenceRpc.Version V1
The original confluence1 (pre-4.0) API


V2

public static final ConfluenceRpc.Version V2
The confluence2 (post-4.0) API with support for the xml storage format


V2_WITH_WIKI_MARKUP

public static final ConfluenceRpc.Version V2_WITH_WIKI_MARKUP
The V2 API, except for calls to create content which are passed through the V1 API so tests can create content with wiki markup.

Method Detail

values

public static ConfluenceRpc.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 (ConfluenceRpc.Version c : ConfluenceRpc.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 ConfluenceRpc.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


Copyright © 2003-2013 Atlassian. All Rights Reserved.