public class LocalService<T> extends Service<LocalDevice,LocalService>
After instantiation setManager(org.jupnp.model.ServiceManager) must
be called to bind the service metadata to the service implementation.
| Modifier and Type | Field and Description |
|---|---|
protected Map<Action,ActionExecutor> |
actionExecutors |
protected ServiceManager |
manager |
protected Map<StateVariable,StateVariableAccessor> |
stateVariableAccessors |
protected Set<Class> |
stringConvertibleTypes |
protected boolean |
supportsQueryStateVariables |
| Constructor and Description |
|---|
LocalService(ServiceType serviceType,
ServiceId serviceId,
Action[] actions,
StateVariable[] stateVariables) |
LocalService(ServiceType serviceType,
ServiceId serviceId,
Map<Action,ActionExecutor> actionExecutors,
Map<StateVariable,StateVariableAccessor> stateVariableAccessors,
Set<Class> stringConvertibleTypes,
boolean supportsQueryStateVariables) |
| Modifier and Type | Method and Description |
|---|---|
StateVariableAccessor |
getAccessor(StateVariable stateVariable) |
StateVariableAccessor |
getAccessor(String stateVariableName) |
ActionExecutor |
getExecutor(Action action) |
ActionExecutor |
getExecutor(String actionName) |
ServiceManager<T> |
getManager() |
Action |
getQueryStateVariableAction() |
Set<Class> |
getStringConvertibleTypes() |
boolean |
isStringConvertibleType(Class clazz) |
boolean |
isStringConvertibleType(Object o) |
boolean |
isSupportsQueryStateVariables() |
void |
setManager(ServiceManager<T> manager) |
String |
toString() |
getAction, getActions, getDatatype, getDevice, getReference, getRelatedStateVariable, getServiceId, getServiceType, getStateVariable, getStateVariables, hasActions, hasStateVariables, validateprotected final Map<Action,ActionExecutor> actionExecutors
protected final Map<StateVariable,StateVariableAccessor> stateVariableAccessors
protected final boolean supportsQueryStateVariables
protected ServiceManager manager
public LocalService(ServiceType serviceType, ServiceId serviceId, Action[] actions, StateVariable[] stateVariables) throws ValidationException
ValidationExceptionpublic LocalService(ServiceType serviceType, ServiceId serviceId, Map<Action,ActionExecutor> actionExecutors, Map<StateVariable,StateVariableAccessor> stateVariableAccessors, Set<Class> stringConvertibleTypes, boolean supportsQueryStateVariables) throws ValidationException
ValidationExceptionpublic void setManager(ServiceManager<T> manager)
public ServiceManager<T> getManager()
public boolean isSupportsQueryStateVariables()
public boolean isStringConvertibleType(Object o)
public boolean isStringConvertibleType(Class clazz)
public StateVariableAccessor getAccessor(String stateVariableName)
public StateVariableAccessor getAccessor(StateVariable stateVariable)
public ActionExecutor getExecutor(String actionName)
public ActionExecutor getExecutor(Action action)
public Action getQueryStateVariableAction()
getQueryStateVariableAction in class Service<LocalDevice,LocalService>public String toString()
toString in class Service<LocalDevice,LocalService>Copyright © 2023 jUPnP.org. All rights reserved.