Package org.jupnp.model.meta
Klasse LocalService<T>
The metadata of a service created on this host, by application code.
After instantiation setManager(org.jupnp.model.ServiceManager) must
be called to bind the service metadata to the service implementation.
- Autor:
- Christian Bauer
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final Map<Action, ActionExecutor> protected ServiceManagerprotected final Map<StateVariable, StateVariableAccessor> protected final boolean -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLocalService(ServiceType serviceType, ServiceId serviceId, Map<Action, ActionExecutor> actionExecutors, Map<StateVariable, StateVariableAccessor> stateVariableAccessors, Set<Class> stringConvertibleTypes, boolean supportsQueryStateVariables) LocalService(ServiceType serviceType, ServiceId serviceId, Action[] actions, StateVariable[] stateVariables) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAccessor(String stateVariableName) getAccessor(StateVariable stateVariable) getExecutor(String actionName) getExecutor(Action action) booleanisStringConvertibleType(Class clazz) booleanbooleanvoidsetManager(ServiceManager<T> manager) toString()Von Klasse geerbte Methoden org.jupnp.model.meta.Service
getAction, getActions, getDatatype, getDevice, getReference, getRelatedStateVariable, getServiceId, getServiceType, getStateVariable, getStateVariables, hasActions, hasStateVariables, validate
-
Felddetails
-
actionExecutors
-
stateVariableAccessors
-
stringConvertibleTypes
-
supportsQueryStateVariables
protected final boolean supportsQueryStateVariables -
manager
-
-
Konstruktordetails
-
LocalService
public LocalService(ServiceType serviceType, ServiceId serviceId, Action[] actions, StateVariable[] stateVariables) throws ValidationException - Löst aus:
ValidationException
-
LocalService
public LocalService(ServiceType serviceType, ServiceId serviceId, Map<Action, ActionExecutor> actionExecutors, Map<StateVariable, throws ValidationExceptionStateVariableAccessor> stateVariableAccessors, Set<Class> stringConvertibleTypes, boolean supportsQueryStateVariables) - Löst aus:
ValidationException
-
-
Methodendetails
-
setManager
-
getManager
-
isSupportsQueryStateVariables
public boolean isSupportsQueryStateVariables() -
getStringConvertibleTypes
-
isStringConvertibleType
-
isStringConvertibleType
-
getAccessor
-
getAccessor
-
getExecutor
-
getExecutor
-
getQueryStateVariableAction
- Angegeben von:
getQueryStateVariableActionin KlasseService<LocalDevice,LocalService>
-
toString
- Setzt außer Kraft:
toStringin KlasseService<LocalDevice,LocalService>
-