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
           
Cloud2
           
Enterprise
           
Enterprise41
           
Enterprise42
           
 
Method Summary
static AlfrescoVersion fromString(String value)
          Create AlfrescoVersion from string.
 Double getVersion()
           
 boolean isCloud()
          Checks if its a cloud base enum.
 boolean isDojoSupported()
           
 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

Enterprise

public static final AlfrescoVersion Enterprise

Enterprise41

public static final AlfrescoVersion Enterprise41

Enterprise42

public static final AlfrescoVersion Enterprise42

Cloud

public static final AlfrescoVersion Cloud

Cloud2

public static final AlfrescoVersion Cloud2
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()

isDojoSupported

public boolean isDojoSupported()


Copyright © 2013. All Rights Reserved.