|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.install4j.api.beans.AbstractBean
public abstract class AbstractBean
Common base class for all abstract super-classes for beans that are handled by install4j. It is not recommended to extend this class directly. Concrete super-classes exist for
This class provides common utility methods fir all bean types.
| Constructor Summary | |
|---|---|
AbstractBean()
|
|
| Method Summary | |
|---|---|
protected static java.io.File |
replaceVariables(java.io.File file)
Replace all installer variables and localization keys in a file. |
protected static java.lang.String |
replaceVariables(java.lang.String value)
Replace all installer variables and localization keys in a string. |
protected static java.lang.String[] |
replaceVariables(java.lang.String[] values)
Replace all installer variables and localization keys in a string array. |
protected static java.lang.String |
replaceVariables(java.lang.String value,
ReplacementMode replacementMode)
Replace all installer variables and localization keys in a string that should be used in a regular expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractBean()
| Method Detail |
|---|
protected static java.lang.String replaceVariables(java.lang.String value)
Note: compiler variables are replaced at compile time.
value - the original string
protected static java.lang.String replaceVariables(java.lang.String value,
ReplacementMode replacementMode)
Note: compiler variables are replaced at compile time.
value - the original stringreplacementMode - the replacement mode
protected static java.io.File replaceVariables(java.io.File file)
Note: compiler variables are replaced at compile time.
file - the original file
protected static java.lang.String[] replaceVariables(java.lang.String[] values)
[0] = "One"
[1] = "${installer:myVariable}"
[2] = "Three"
and the variable myVariable has a String array value with the elements
[0] = "Blue" [1] = "Green"then the returned array will be
[0] = "One" [1] = "Blue" [2] = "Green" [3] = "Three"
If the array in an installer variable is not of type String[], each element will be converted to a string by calling toString() on it.
Note: compiler variables are replaced at compile time.
values - the original array
|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||