org.teleal.cling.binding.annotations
Class AnnotationActionBinder
java.lang.Object
org.teleal.cling.binding.annotations.AnnotationActionBinder
public class AnnotationActionBinder
- extends java.lang.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 java.lang.reflect.Method method
stateVariables
protected java.util.Map<StateVariable,StateVariableAccessor> stateVariables
stringConvertibleTypes
protected java.util.Set<java.lang.Class> stringConvertibleTypes
AnnotationActionBinder
public AnnotationActionBinder(java.lang.reflect.Method method,
java.util.Map<StateVariable,StateVariableAccessor> stateVariables,
java.util.Set<java.lang.Class> stringConvertibleTypes)
getAnnotation
public UpnpAction getAnnotation()
getStateVariables
public java.util.Map<StateVariable,StateVariableAccessor> getStateVariables()
getMethod
public java.lang.reflect.Method getMethod()
getStringConvertibleTypes
public java.util.Set<java.lang.Class> getStringConvertibleTypes()
appendAction
public void appendAction(java.util.Map<Action,ActionExecutor> actions)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
createExecutor
protected ActionExecutor createExecutor(java.util.Map<ActionArgument<LocalService>,StateVariableAccessor> outputArguments)
createInputArguments
protected java.util.List<ActionArgument> createInputArguments()
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
createOutputArguments
protected java.util.Map<ActionArgument<LocalService>,StateVariableAccessor> createOutputArguments()
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
findOutputArgumentAccessor
protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable,
java.lang.String getterName,
boolean multipleArguments)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
findRelatedStateVariable
protected StateVariable findRelatedStateVariable(java.lang.String declaredName,
java.lang.String argumentName,
java.lang.String methodName)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
validateType
protected void validateType(StateVariable stateVariable,
java.lang.Class type)
throws LocalServiceBindingException
- Throws:
LocalServiceBindingException
getStateVariable
protected StateVariable getStateVariable(java.lang.String name)
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.