public interface Dot
| Modifier and Type | Method and Description |
|---|---|
String |
delimitedList(String keyBase,
String delim) |
String |
dotList(String keyBase) |
String |
generateClasspath(String keyBase)
Generate a classpath appropriate to this OS using values formatted as above
|
List<String> |
getListKeys(String keyBase)
Collect all the keys of the form keyBase.[integer].
|
List<String> |
valueList(String keyBase)
This method relies on the convention of using numbers at
the end of a property key to represent a list member.
|
List<String> getListKeys(String keyBase)
Collect all the keys of the form keyBase.[integer]. For example where base is "wrapper.java.classpath":
Then return a list of the keys wrapper.java.classpath.1, wrapper.java.classpath.2, etc.
keyBase - List<String> valueList(String keyBase)
This method relies on the convention of using numbers at
the end of a property key to represent a list member. The total
list is the set of all similar keys with key as the base
and dot delimited integers at the end. Suppose the following
(from, e.g., the Tanukisoft wrapper.conf):
wrapper.java.classpath.1=../lib/wrapper.jar
wrapper.java.classpath.2=../lib/myapp.jar
wrapper.java.classpath.3=../lib/mysql.jar
wrapper.java.classpath.4=../classes
Then calling valueList("wrapper.java.classpath") would
return all the values above, in numeric order, as a List.
If key does not exist but numbered properties exist, the
key is synthesized. if no numbered properties exist, an
empty list is returned. If the key does not exist and no numbered
keys exist, the method returns an empty list
Numbers need not be sequential
key - Copyright © 2011–2016 David R. Smith. All rights reserved.