private void generateActionArgument(ActionArgument actionArgument, Document descriptor, Element actionElement) { Element actionArgumentElement = appendNewElement(descriptor, actionElement, ELEMENT.argument); appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.name, actionArgument.getName()); appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.direction, actionArgument.getDirection().toString().toLowerCase(Locale.ROOT)); if (actionArgument.isReturnValue()) { // TODO: UPNP VIOLATION: WMP12 will discard RenderingControl service if it contains <retval> tags log.warning("UPnP specification violation: Not producing <retval> element to be compatible with WMP12: " + actionArgument); // appendNewElement(descriptor, actionArgumentElement, ELEMENT.retval); } appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.relatedStateVariable, actionArgument.getRelatedStateVariableName()); }
public ActionArgument<S> deepCopy() { return new ActionArgument<>( getName(), getAliases(), getRelatedStateVariableName(), getDirection(), isReturnValue() ); }
if (isReturnValue() && getDirection() != ActionArgument.Direction.OUT) { errors.add(new ValidationError( getClass(),
for (ActionArgument actionArgument : getArguments()) { if (actionArgument.isReturnValue()) { if (actionArgument.getDirection() == ActionArgument.Direction.IN) { log.warning("UPnP specification violation of :" + getService().getDevice());
private void generateActionArgument(ActionArgument actionArgument, Document descriptor, Element actionElement) { Element actionArgumentElement = appendNewElement(descriptor, actionElement, ELEMENT.argument); appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.name, actionArgument.getName()); appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.direction, actionArgument.getDirection().toString().toLowerCase(Locale.ENGLISH)); if (actionArgument.isReturnValue()) { // TODO: UPNP VIOLATION: WMP12 will discard RenderingControl service if it contains <retval> tags log.warning("UPnP specification violation: Not producing <retval> element to be compatible with WMP12: " + actionArgument); // appendNewElement(descriptor, actionArgumentElement, ELEMENT.retval); } appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.relatedStateVariable, actionArgument.getRelatedStateVariableName()); }
public ActionArgument<S> deepCopy() { return new ActionArgument<S>( getName(), getAliases(), getRelatedStateVariableName(), getDirection(), isReturnValue() ); }
if (isReturnValue() && getDirection() != ActionArgument.Direction.OUT) { errors.add(new ValidationError( getClass(),
for (ActionArgument actionArgument : getArguments()) { if (actionArgument.isReturnValue()) { if (retValueArgument != null) { log.warning("UPnP specification violation of: " + getService().getDevice());
private void generateActionArgument(ActionArgument actionArgument, Document descriptor, Element actionElement) { Element actionArgumentElement = appendNewElement(descriptor, actionElement, ELEMENT.argument); appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.name, actionArgument.getName()); appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.direction, actionArgument.getDirection().toString().toLowerCase(Locale.ROOT)); if (actionArgument.isReturnValue()) { // TODO: UPNP VIOLATION: WMP12 will discard RenderingControl service if it contains <retval> tags log.warning("UPnP specification violation: Not producing <retval> element to be compatible with WMP12: " + actionArgument); // appendNewElement(descriptor, actionArgumentElement, ELEMENT.retval); } appendNewElementIfNotNull(descriptor, actionArgumentElement, ELEMENT.relatedStateVariable, actionArgument.getRelatedStateVariableName()); }
if (isReturnValue() && getDirection() != ActionArgument.Direction.OUT) { errors.add(new ValidationError( getClass(),
public ActionArgument<S> deepCopy() { return new ActionArgument<>( getName(), getAliases(), getRelatedStateVariableName(), getDirection(), isReturnValue() ); }
for (ActionArgument actionArgument : getArguments()) { if (actionArgument.isReturnValue()) { if (actionArgument.getDirection() == ActionArgument.Direction.IN) { log.warning("UPnP specification violation of :" + getService().getDevice());