org.teleal.cling.model.state
Class StateVariableAccessor
java.lang.Object
org.teleal.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
StateVariableAccessor
public StateVariableAccessor()
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 © 2011 Teleal GmbH, Switzerland. All Rights Reserved.