public RemoteService(ServiceType serviceType, ServiceId serviceId, URI descriptorURI, URI controlURI, URI eventSubscriptionURI, Action<RemoteService>[] actions, StateVariable<RemoteService>[] stateVariables) throws ValidationException { super(serviceType, serviceId, actions, stateVariables); this.descriptorURI = descriptorURI; this.controlURI = controlURI; this.eventSubscriptionURI = eventSubscriptionURI; List<ValidationError> errors = validateThis(); if (errors.size() > 0) { throw new ValidationException("Validation of device graph failed, call getErrors() on exception", errors); } }
public RemoteService(ServiceType serviceType, ServiceId serviceId, URI descriptorURI, URI controlURI, URI eventSubscriptionURI, Action<RemoteService>[] actions, StateVariable<RemoteService>[] stateVariables) throws ValidationException { super(serviceType, serviceId, actions, stateVariables); this.descriptorURI = descriptorURI; this.controlURI = controlURI; this.eventSubscriptionURI = eventSubscriptionURI; List<ValidationError> errors = validateThis(); if (errors.size() > 0) { throw new ValidationException("Validation of device graph failed, call getErrors() on exception", errors); } }
public RemoteService(ServiceType serviceType, ServiceId serviceId, URI descriptorURI, URI controlURI, URI eventSubscriptionURI, Action<RemoteService>[] actions, StateVariable<RemoteService>[] stateVariables) throws ValidationException { super(serviceType, serviceId, actions, stateVariables); this.descriptorURI = descriptorURI; this.controlURI = controlURI; this.eventSubscriptionURI = eventSubscriptionURI; List<ValidationError> errors = validateThis(); if (errors.size() > 0) { throw new ValidationException("Validation of device graph failed, call getErrors() on exception", errors); } }