org.jboss.arquillian.ajocado.locator
Class DefaultAttributeLocator<E extends ElementLocator<E>>
java.lang.Object
org.jboss.arquillian.ajocado.locator.AbstractLocator<AttributeLocator<E>>
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
DefaultAttributeLocator
public DefaultAttributeLocator(ElementLocator<E> elementLocator,
Attribute attribute)
- Instantiates a attribute locator using given elementLocator and the specific attribute.
- Parameters:
elementLocator - the element locatorattribute - the attribute
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>>>
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.