com.atlassian.confluence.pageobjects.component.editor
Enum EditorMessages

java.lang.Object
  extended by java.lang.Enum<EditorMessages>
      extended by com.atlassian.confluence.pageobjects.component.editor.EditorMessages
All Implemented Interfaces:
Serializable, Comparable<EditorMessages>

public enum EditorMessages
extends Enum<EditorMessages>

A place to store messages that appear in the edit UI. Migrated from the static constants in EditorDraftsTest


Enum Constant Summary
DRAFT_DISCARDED
           
DRAFT_EXISTS
           
NEW_PAGE_DRAFT_EXISTS
           
NOT_LOGGED_IN_EDITOR_WARNING
           
 
Method Summary
 String getMessage()
           
static EditorMessages valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EditorMessages[] 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

NEW_PAGE_DRAFT_EXISTS

public static final EditorMessages NEW_PAGE_DRAFT_EXISTS

DRAFT_EXISTS

public static final EditorMessages DRAFT_EXISTS

DRAFT_DISCARDED

public static final EditorMessages DRAFT_DISCARDED

NOT_LOGGED_IN_EDITOR_WARNING

public static final EditorMessages NOT_LOGGED_IN_EDITOR_WARNING
Method Detail

values

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

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

valueOf

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

getMessage

public String getMessage()


Copyright © 2003–2015 Atlassian. All rights reserved.