Ajocado Implementation 1.0.0.Alpha2

org.jboss.arquillian.ajocado.locator
Class DefaultAttributeLocator<E extends ElementLocator<E>>

java.lang.Object
  extended by org.jboss.arquillian.ajocado.locator.AbstractLocator<AttributeLocator<E>>
      extended by org.jboss.arquillian.ajocado.locator.DefaultAttributeLocator<E>
Type Parameters:
E - the type of associated element locator, which can be obtained from this attribute locator
All Implemented Interfaces:
AttributeLocator<E>, Locator<AttributeLocator<E>>

public class DefaultAttributeLocator<E extends ElementLocator<E>>
extends AbstractLocator<AttributeLocator<E>>
implements AttributeLocator<E>

Default implementation of locator for element's attributes.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
DefaultAttributeLocator(ElementLocator<E> elementLocator, Attribute attribute)
          Instantiates a attribute locator using given elementLocator and the specific attribute.
 
Method Summary
 AttributeLocator<E> format(Object... args)
           
 ElementLocator<E> getAssociatedElement()
           
 Attribute getAttribute()
           
 ElementLocationStrategy getLocationStrategy()
           
 String getRawLocator()
           
 
Methods inherited from class org.jboss.arquillian.ajocado.locator.AbstractLocator
getAsString, 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
getAsString
 

Constructor Detail

DefaultAttributeLocator

public DefaultAttributeLocator(ElementLocator<E> elementLocator,
                               Attribute attribute)
Instantiates a attribute locator using given elementLocator and the specific attribute.

Parameters:
elementLocator - the element locator
attribute - the attribute
Method Detail

getRawLocator

public String getRawLocator()
Specified by:
getRawLocator in interface Locator<AttributeLocator<E extends ElementLocator<E>>>
Overrides:
getRawLocator in class AbstractLocator<AttributeLocator<E extends ElementLocator<E>>>

getLocationStrategy

public ElementLocationStrategy getLocationStrategy()
Specified by:
getLocationStrategy in interface Locator<AttributeLocator<E extends ElementLocator<E>>>

getAssociatedElement

public ElementLocator<E> getAssociatedElement()
Specified by:
getAssociatedElement in interface AttributeLocator<E extends ElementLocator<E>>

getAttribute

public Attribute getAttribute()
Specified by:
getAttribute in interface AttributeLocator<E extends ElementLocator<E>>

format

public AttributeLocator<E> format(Object... args)
Specified by:
format in interface AttributeLocator<E extends ElementLocator<E>>
Specified by:
format in interface Locator<AttributeLocator<E extends ElementLocator<E>>>
Overrides:
format in class AbstractLocator<AttributeLocator<E extends ElementLocator<E>>>

Ajocado Implementation 1.0.0.Alpha2

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