com.atlassian.pageobjects.elements
Class Options

java.lang.Object
  extended by com.atlassian.pageobjects.elements.Options

public final class Options
extends Object

Options.IdOption objects factory.


Nested Class Summary
static class Options.FullOption
           
static class Options.IdOption
           
static class Options.TextOption
           
static class Options.ValueOption
           
 
Constructor Summary
Options()
           
 
Method Summary
static Option full(String id, String value, String text)
          New option distinguishable all identifiers.
static com.google.common.base.Function<Option,String> getId()
           
static com.google.common.base.Function<Option,String> getText()
           
static com.google.common.base.Function<Option,String> getValue()
           
static Options.IdOption id(String id)
          New option distinguishable by its HTML ID.
static Options.TextOption text(String text)
          New option distinguishable by its text between tags
static Options.ValueOption value(String value)
          New option distinguishable by its HTML value attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Options

public Options()
Method Detail

id

public static Options.IdOption id(String id)
New option distinguishable by its HTML ID.

Parameters:
id - HTML id of the option
Returns:
new option

value

public static Options.ValueOption value(String value)
New option distinguishable by its HTML value attribute.

Parameters:
value - HTML value attribute of the option
Returns:
new option

text

public static Options.TextOption text(String text)
New option distinguishable by its text between tags

Parameters:
text - Text between the option tags
Returns:
new option

full

public static Option full(String id,
                          String value,
                          String text)
New option distinguishable all identifiers. Some of the identifiers may be null, but at least one has to be non-null

Parameters:
id - HTML id of the option
value - HTML value attribute of the option
text - Text between the option tags
Returns:
new option

getValue

public static com.google.common.base.Function<Option,String> getValue()

getId

public static com.google.common.base.Function<Option,String> getId()

getText

public static com.google.common.base.Function<Option,String> getText()


Copyright © 2014 Atlassian. All rights reserved.