org.fourthline.cling.model.state

## Class StateVariableAccessor

- java.lang.Object
- - org.fourthline.cling.model.state.StateVariableAccessor

- Direct Known Subclasses:
    FieldStateVariableAccessor, GetterStateVariableAccessor

      public abstract class StateVariableAccessor
      extends Object

  Reads the value of a state variable, given an instance that implements the service. TODO: The design of this is not final, not happy with the relationship between ActionExecutor and this.
  Author:
    Christian Bauer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StateVariableAccessor()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract Class<?>` | `getReturnType()`
    `abstract Object` | `read(Object serviceImpl)`
    `StateVariableValue` | `read(StateVariable<LocalService> stateVariable, Object serviceImpl)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### StateVariableAccessor

          public StateVariableAccessor()

  - ### Method Detail

    - #### read

          public StateVariableValue read(StateVariable<LocalService> stateVariable,
                                         Object serviceImpl)
                                  throws Exception

      Throws:
        `Exception`

    - #### getReturnType

          public abstract Class<?> getReturnType()

    - #### read

          public abstract Object read(Object serviceImpl)
                               throws Exception

      Throws:
        `Exception`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.