org.teleal.cling.binding.annotations
Class AnnotationActionBinder
java.lang.Object
org.teleal.cling.binding.annotations.AnnotationActionBinder
public class AnnotationActionBinder
- extends Object
- Author:
- Christian Bauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
annotation
protected UpnpAction annotation
method
protected Method method
stateVariables
protected Map<StateVariable,StateVariableAccessor> stateVariables
stringConvertibleTypes
protected Set<Class> stringConvertibleTypes
AnnotationActionBinder
public AnnotationActionBinder(Method method,
Map<StateVariable,StateVariableAccessor> stateVariables,
Set<Class> stringConvertibleTypes)
getAnnotation
public UpnpAction getAnnotation()
getStateVariables
public Map<StateVariable,StateVariableAccessor> getStateVariables()
getMethod
public Method getMethod()
getStringConvertibleTypes
public Set<Class> getStringConvertibleTypes()
appendAction
public void appendAction(Map<Action,ActionExecutor> actions)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
createExecutor
protected ActionExecutor createExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArguments)
createInputArguments
protected List<ActionArgument> createInputArguments()
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
createOutputArguments
protected Map<ActionArgument<LocalService>,StateVariableAccessor> createOutputArguments()
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
findOutputArgumentAccessor
protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable,
String getterName,
boolean multipleArguments)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
findRelatedStateVariable
protected StateVariable findRelatedStateVariable(String declaredName,
String argumentName,
String methodName)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
validateType
protected void validateType(StateVariable stateVariable,
Class type)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
getStateVariable
protected StateVariable getStateVariable(String name)
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.