Class UIState<T>
- java.lang.Object
-
- net.serenitybdd.screenplay.questions.UIState<T>
-
- Direct Known Subclasses:
JavaScript,TargetedUIState
public abstract class UIState<T> extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <TARGET> TARGETas(Class<TARGET> type)BigDecimalasBigDecimal()BooleanasBoolean()org.joda.time.DateTimeasDate()org.joda.time.DateTimeasDate(String format)DoubleasDouble()<T> TasEnum(Class<T> enumType)FloatasFloat()IntegerasInteger()LocalDateasLocalDate()LocalDateasLocalDate(String format)LongasLong()StringasString()protected Converter<?>converterFor(Class<?> type)protected <T> List<T>convertToEnums(Class<T> enumType, List<?> values)abstract Tresolve()Tvalue()
-
-
-
Constructor Detail
-
UIState
protected UIState(Actor actor)
-
-
Method Detail
-
resolve
public abstract T resolve()
-
value
public T value()
-
as
public <TARGET> TARGET as(Class<TARGET> type)
-
asString
public String asString()
-
asInteger
public Integer asInteger()
-
asDouble
public Double asDouble()
-
asFloat
public Float asFloat()
-
asLong
public Long asLong()
-
asBoolean
public Boolean asBoolean()
-
asDate
public org.joda.time.DateTime asDate()
-
asLocalDate
public LocalDate asLocalDate()
-
asBigDecimal
public BigDecimal asBigDecimal()
-
asDate
public org.joda.time.DateTime asDate(String format)
-
asEnum
public <T> T asEnum(Class<T> enumType)
-
-