标签:
In the org.safs.model, the class Component.java stores:
private String _name; private Component _parent;
It provides interface to return its name, its parent‘s name and its parent‘s comopnent reference:
public String getName(); public Component getParent(); public String getParentName();
In package org.safs.model, the Utils.java provides various functions used by other classes. For example:
/**
* Wrap the provided val String in double-quotes.
* @param val String to wrap in double-quotes
* @return val wrapped in quotes or a double-quoted empty string if
* val was null.
*/
static public String quote(String val) {
if (val == null) return "\"\"";
return "\"" + val + "\"";
}
public static String concat(String string1, String string2) {
return string1 + "&" + string2;
}
标签:
原文地址:http://www.cnblogs.com/kid551/p/4409017.html