getPropertyAsList method

  1. @override
StringSeq getPropertyAsList(
  1. String key
)
override

Get a property as a list of strings. The strings must be separated by whitespace or comma. If the property is not set, an empty list is returned. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned. Within single quotes or double quotes, you can escape the quote in question with , e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O'Reilly'. @param key The property key. @return The property value interpreted as a list of strings. @see #setProperty

Implementation

@override
StringSeq getPropertyAsList(String key) {
  return getPropertyAsListWithDefault(key, <String>[]);
}