com.atlassian.jira.webtest.framework.core.locator.mapper
Class LocatorDataBean

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.core.locator.mapper.LocatorDataBean
All Implemented Interfaces:
LocatorData

public final class LocatorDataBean
extends Object
implements LocatorData

A simple bean holding main locator data: type and value. It defines equals(Object) and hashCode() and thus may be safely used as a collection/map element.

Since:
v4.3

Constructor Summary
LocatorDataBean(LocatorData toCopy)
           
LocatorDataBean(LocatorType type, String value)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 LocatorType type()
          Type of the locator.
 String value()
          Value of the locator, used to query and manipulate it in the current test context.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocatorDataBean

public LocatorDataBean(LocatorType type,
                       String value)

LocatorDataBean

public LocatorDataBean(LocatorData toCopy)
Method Detail

type

public LocatorType type()
Description copied from interface: LocatorData
Type of the locator.

Specified by:
type in interface LocatorData
Returns:
type of the locator
See Also:
LocatorType

value

public String value()
Description copied from interface: LocatorData
Value of the locator, used to query and manipulate it in the current test context.

Specified by:
value in interface LocatorData
Returns:
value of the locator instance represented by this data

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.