public class AnnotationActionBinder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected UpnpAction |
annotation |
protected Method |
method |
protected Map<StateVariable,StateVariableAccessor> |
stateVariables |
protected Set<Class> |
stringConvertibleTypes |
| Constructor and Description |
|---|
AnnotationActionBinder(Method method,
Map<StateVariable,StateVariableAccessor> stateVariables,
Set<Class> stringConvertibleTypes) |
| Modifier and Type | Method and Description |
|---|---|
Action |
appendAction(Map<Action,ActionExecutor> actions) |
protected ActionExecutor |
createExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArguments) |
protected List<ActionArgument> |
createInputArguments() |
protected Map<ActionArgument<LocalService>,StateVariableAccessor> |
createOutputArguments() |
protected StateVariableAccessor |
findOutputArgumentAccessor(StateVariable stateVariable,
String getterName,
boolean multipleArguments) |
protected StateVariable |
findRelatedStateVariable(String declaredName,
String argumentName,
String methodName) |
UpnpAction |
getAnnotation() |
Method |
getMethod() |
protected StateVariable |
getStateVariable(String name) |
Map<StateVariable,StateVariableAccessor> |
getStateVariables() |
Set<Class> |
getStringConvertibleTypes() |
protected void |
validateType(StateVariable stateVariable,
Class type) |
protected UpnpAction annotation
protected Method method
protected Map<StateVariable,StateVariableAccessor> stateVariables
public AnnotationActionBinder(Method method, Map<StateVariable,StateVariableAccessor> stateVariables, Set<Class> stringConvertibleTypes)
public UpnpAction getAnnotation()
public Map<StateVariable,StateVariableAccessor> getStateVariables()
public Method getMethod()
public Action appendAction(Map<Action,ActionExecutor> actions) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected ActionExecutor createExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArguments)
protected List<ActionArgument> createInputArguments() throws LocalServiceBindingException
LocalServiceBindingExceptionprotected Map<ActionArgument<LocalService>,StateVariableAccessor> createOutputArguments() throws LocalServiceBindingException
LocalServiceBindingExceptionprotected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected StateVariable findRelatedStateVariable(String declaredName, String argumentName, String methodName) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected void validateType(StateVariable stateVariable, Class type) throws LocalServiceBindingException
LocalServiceBindingExceptionprotected StateVariable getStateVariable(String name)
Copyright © 2023 jUPnP.org. All rights reserved.