Ajocado Implementation 1.0.0.Alpha2

org.jboss.arquillian.ajocado.locator
Class AbstractLocator<T extends Locator<T>>

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocator<T>
Type Parameters:
T - the type of locator which can be derived from this locator
All Implemented Interfaces:
Locator<T>
Direct Known Subclasses:
AbstractElementLocator, AbstractOptionLocator, DefaultAttributeLocator

public abstract class AbstractLocator<T extends Locator<T>>
extends Object
implements Locator<T>

Abstract implementation of locator.

Able to return the locator as string for use in Selenium getAsString()

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
AbstractLocator(String locator)
           
 
Method Summary
 Locator<T> format(Object... args)
           
 String getAsString()
           
 String getRawLocator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.arquillian.ajocado.locator.Locator
getLocationStrategy
 

Constructor Detail

AbstractLocator

public AbstractLocator(String locator)
Method Detail

getAsString

public String getAsString()
Specified by:
getAsString in interface Locator<T extends Locator<T>>

getRawLocator

public String getRawLocator()
Specified by:
getRawLocator in interface Locator<T extends Locator<T>>

format

public Locator<T> format(Object... args)
Specified by:
format in interface Locator<T extends Locator<T>>

toString

public String toString()
Overrides:
toString in class Object

Ajocado Implementation 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.