|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.windchill.esi.lite.util.ERPConnectorProperties
public class ERPConnectorProperties
Assists ESI classes in obtaining ERP Connector configuration information.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static String |
getProperty(ESIPropertyRequest request)
Returns the ERP Connector property whose key equals the request.getName(). |
static String |
getProperty(String name)
Returns the ESI property whose key equals the name argument. |
static boolean |
getProperty(String name,
boolean dflt)
Convenience method to get a boolean property string and convert it to a boolean value. |
static String |
getProperty(String name,
String defaultValue)
Returns the ERP Connector property whose key equals the name argument. |
static String |
substitute(String propertyValue)
Substitutes expressions of the form $(name) in strings
with property values from this properties object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getProperty(String name)
name -
public static String getProperty(String name,
String defaultValue)
name - defaultValue -
public static String getProperty(ESIPropertyRequest request)
request -
public static boolean getProperty(String name,
boolean dflt)
name - the property name.default - value returned if named property does not exist
public static String substitute(String propertyValue)
$(name) in strings
with property values from this properties object. If the entire value is
a substitution and the named property is not found, null is returned
instead of an empty string. The expression $DATE(format)
is a builtin SimpleDateFormat macro where format is a
pattern expression such as MMddyy. It can be used to construct date/time
based values such as log file names. The expression
$LIB(key) is a builtin macro which lists the contents of
the directory pointed at by key separated by File.pathSeparator.
This is used internally to the WTProperties.getProperty
method. It is exposed as a public method to allow the same substitutions
to be applied against arbitrary strings.
Supported API: true
propertyValue - the string to be parsed for substitutions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||