org.alfresco.webdrone
Enum AlfrescoVersion

java.lang.Object
  extended by java.lang.Enum<AlfrescoVersion>
      extended by org.alfresco.webdrone.AlfrescoVersion
All Implemented Interfaces:
Serializable, Comparable<AlfrescoVersion>

public enum AlfrescoVersion
extends Enum<AlfrescoVersion>

The Alfresco site type and version enum.

Since:
1.0
Author:
Michael Suzuki

Enum Constant Summary
Cloud
           
Enterprise
           
Enterprise4_1
           
Enterprise4_2
           
Share
           
Share3_41
           
Share4_0
           
 
Method Summary
static AlfrescoVersion fromString(String value)
          Create AlfrescoVersion from string.
 Double getVersion()
           
 boolean isCloud()
          Checks if its a cloud base enum.
 boolean isFileUploadHtml5()
          Flag to indicates if file upload is supported by HTML5
static AlfrescoVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AlfrescoVersion[] 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

Share

public static final AlfrescoVersion Share

Share3_41

public static final AlfrescoVersion Share3_41

Share4_0

public static final AlfrescoVersion Share4_0

Enterprise

public static final AlfrescoVersion Enterprise

Enterprise4_1

public static final AlfrescoVersion Enterprise4_1

Enterprise4_2

public static final AlfrescoVersion Enterprise4_2

Cloud

public static final AlfrescoVersion Cloud
Method Detail

values

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

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

valueOf

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

isCloud

public boolean isCloud()
Checks if its a cloud base enum.

Returns:
true if its cloud base enum

isFileUploadHtml5

public boolean isFileUploadHtml5()
Flag to indicates if file upload is supported by HTML5

Returns:
true if supported which at present only cloud does

fromString

public static AlfrescoVersion fromString(String value)
Create AlfrescoVersion from string.

Parameters:
value - String alfresco version
Returns:
AlfrescoVersion version

getVersion

public Double getVersion()


Copyright © 2013. All Rights Reserved.