Java Code Examples for org.fourthline.cling.model.ModelUtil#toCommaSeparatedList()
The following examples show how to use
org.fourthline.cling.model.ModelUtil#toCommaSeparatedList() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CSV.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
@Override public String toString() { List<String> stringValues = new ArrayList(); for (T t : this) { stringValues.add(datatype.getDatatype().getString(t)); } return ModelUtil.toCommaSeparatedList(stringValues.toArray(new Object[stringValues.size()])); }
Example 2
Source File: AbstractAVTransportService.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
@UpnpAction(name = "GetCurrentTransportActions", out = @UpnpOutputArgument(name = "Actions", stateVariable = "CurrentTransportActions")) public String getCurrentTransportActionsString(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId) throws AVTransportException { try { return ModelUtil.toCommaSeparatedList(getCurrentTransportActions(instanceId)); } catch (Exception ex) { return ""; // TODO: Empty string is not defined in spec but seems reasonable for no available action? } }
Example 3
Source File: CSV.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
@Override public String toString() { List<String> stringValues = new ArrayList(); for (T t : this) { stringValues.add(datatype.getDatatype().getString(t)); } return ModelUtil.toCommaSeparatedList(stringValues.toArray(new Object[stringValues.size()])); }
Example 4
Source File: AbstractAVTransportService.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
@UpnpAction(name = "GetCurrentTransportActions", out = @UpnpOutputArgument(name = "Actions", stateVariable = "CurrentTransportActions")) public String getCurrentTransportActionsString(@UpnpInputArgument(name = "InstanceID") UnsignedIntegerFourBytes instanceId) throws AVTransportException { try { return ModelUtil.toCommaSeparatedList(getCurrentTransportActions(instanceId)); } catch (Exception ex) { return ""; // TODO: Empty string is not defined in spec but seems reasonable for no available action? } }
Example 5
Source File: DLNACaps.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return ModelUtil.toCommaSeparatedList(getCaps()); }
Example 6
Source File: DeviceCapabilities.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public String getPlayMediaString() { return ModelUtil.toCommaSeparatedList(playMedia); }
Example 7
Source File: DeviceCapabilities.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public String getRecMediaString() { return ModelUtil.toCommaSeparatedList(recMedia); }
Example 8
Source File: DeviceCapabilities.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public String getRecQualityModesString() { return ModelUtil.toCommaSeparatedList(recQualityModes); }
Example 9
Source File: ProtocolInfos.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return ModelUtil.toCommaSeparatedList(toArray(new ProtocolInfo[size()])); }
Example 10
Source File: EventedValueEnumArray.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
@Override public String toString() { return ModelUtil.toCommaSeparatedList(getValue()); }
Example 11
Source File: DLNACaps.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
@Override public String toString() { return ModelUtil.toCommaSeparatedList(getCaps()); }
Example 12
Source File: DeviceCapabilities.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public String getPlayMediaString() { return ModelUtil.toCommaSeparatedList(playMedia); }
Example 13
Source File: DeviceCapabilities.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public String getRecMediaString() { return ModelUtil.toCommaSeparatedList(recMedia); }
Example 14
Source File: DeviceCapabilities.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public String getRecQualityModesString() { return ModelUtil.toCommaSeparatedList(recQualityModes); }
Example 15
Source File: ProtocolInfos.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
@Override public String toString() { return ModelUtil.toCommaSeparatedList(toArray(new ProtocolInfo[size()])); }
Example 16
Source File: EventedValueEnumArray.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
@Override public String toString() { return ModelUtil.toCommaSeparatedList(getValue()); }