com.atlassian.jira.pageobjects.framework.util
Enum HowMappings

java.lang.Object
  extended by java.lang.Enum<HowMappings>
      extended by com.atlassian.jira.pageobjects.framework.util.HowMappings
All Implemented Interfaces:
Serializable, Comparable<HowMappings>

public enum HowMappings
extends Enum<HowMappings>

Mappings for each How to get By

Since:
v4.4

Enum Constant Summary
CLASS_NAME
           
CSS
           
ID
           
ID_OR_NAME
           
LINK_TEXT
           
NAME
           
PARTIAL_LINK_TEXT
           
TAG_NAME
           
XPATH
           
 
Method Summary
static HowMappings forHow(org.openqa.selenium.support.How how)
           
 String getAnnotationValue(Annotation findBy)
           
 org.openqa.selenium.By getBy(String locator)
           
 boolean hasAnnotationValue(Annotation findBy)
           
 org.openqa.selenium.support.How how()
           
static HowMappings safeForHow(org.openqa.selenium.support.How how)
           
static HowMappings valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HowMappings[] 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

ID

public static final HowMappings ID

NAME

public static final HowMappings NAME

ID_OR_NAME

public static final HowMappings ID_OR_NAME

CLASS_NAME

public static final HowMappings CLASS_NAME

CSS

public static final HowMappings CSS

TAG_NAME

public static final HowMappings TAG_NAME

XPATH

public static final HowMappings XPATH

LINK_TEXT

public static final HowMappings LINK_TEXT

PARTIAL_LINK_TEXT

public static final HowMappings PARTIAL_LINK_TEXT
Method Detail

values

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

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

valueOf

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

forHow

public static HowMappings forHow(org.openqa.selenium.support.How how)

safeForHow

public static HowMappings safeForHow(org.openqa.selenium.support.How how)

how

public org.openqa.selenium.support.How how()

getBy

public org.openqa.selenium.By getBy(String locator)

getAnnotationValue

public String getAnnotationValue(Annotation findBy)

hasAnnotationValue

public boolean hasAnnotationValue(Annotation findBy)


Copyright © 2002-2014 Atlassian. All Rights Reserved.