Class UIState<T>

java.lang.Object
net.serenitybdd.screenplay.questions.UIState<T>
Direct Known Subclasses:
JavaScript, TargetedUIState

public abstract class UIState<T> extends Object
  • Field Details

    • actor

      protected final net.serenitybdd.screenplay.Actor actor
    • DEFAULT_CONVERTERS

      protected Map<Class<?>,net.serenitybdd.screenplay.questions.converters.converters.Converter<?>> DEFAULT_CONVERTERS
  • Constructor Details

    • UIState

      protected UIState(net.serenitybdd.screenplay.Actor actor)
  • Method Details

    • 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()
    • asLocalDate

      public LocalDate asLocalDate(String format)
    • asDate

      public org.joda.time.DateTime asDate(String format)
    • asEnum

      public <C> C asEnum(Class<C> enumType)
    • convertToEnums

      protected <C> List<C> convertToEnums(Class<C> enumType, List<?> values)
    • converterFor

      protected net.serenitybdd.screenplay.questions.converters.converters.Converter<?> converterFor(Class<?> type)