protected Datatype.Builtin getBuiltinDatatype() throws InvalidValueException { Class csvType = Reflections.getTypeArguments(ArrayList.class, getClass()).get(0); Datatype.Default defaultType = Datatype.Default.getByJavaType(csvType); if (defaultType == null) { throw new InvalidValueException("No built-in UPnP datatype for Java type of CSV: " + csvType); } return defaultType.getBuiltinType(); }
protected Datatype.Builtin getBuiltinDatatype() throws InvalidValueException { Class csvType = Reflections.getTypeArguments(ArrayList.class, getClass()).get(0); Datatype.Default defaultType = Datatype.Default.getByJavaType(csvType); if (defaultType == null) { throw new InvalidValueException("No built-in UPnP datatype for Java type of CSV: " + csvType); } return defaultType.getBuiltinType(); }
protected Datatype.Builtin getBuiltinDatatype() throws InvalidValueException { Class csvType = Reflections.getTypeArguments(ArrayList.class, getClass()).get(0); Datatype.Default defaultType = Datatype.Default.getByJavaType(csvType); if (defaultType == null) { throw new InvalidValueException("No built-in UPnP datatype for Java type of CSV: " + csvType); } return defaultType.getBuiltinType(); }