Logo Search packages:      
Sourcecode: jmk version File versions  Download package

static StringList edu::neu::ccs::jmk::StringUtils::getprop ( StringList  input,
StringList  list 
) [inline, static, package]

Each input is used as a key to retrieve data from the system's properties. The results use generic separators.

Definition at line 227 of file StringUtils.java.

References generalizePaths(), edu::neu::ccs::jmk::StringList::getRest(), edu::neu::ccs::jmk::StringList::getString(), and edu::neu::ccs::jmk::StringList::setRest().

    if (input == null)
      return list;
    else {
      StringList head = new StringList("");
      StringList last = head;
      for (; input != null; input = input.getRest()) {
      String string = input.getString();
      String prop = System.getProperty(string);
      if (prop != null) {
        StringList temp = new StringList(generalizePaths(prop));
        last = temp;
      return head.getRest();

Generated by  Doxygen 1.6.0   Back to index