Package org.eclipse.cdt.utils.envvar
Class StorableEnvVar
java.lang.Object
org.eclipse.cdt.core.envvar.EnvironmentVariable
org.eclipse.cdt.utils.envvar.StorableEnvVar
- All Implemented Interfaces:
Cloneable,IEnvironmentVariable
This class represents the Environment variable that could be loaded
and stored in XML
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.eclipse.cdt.core.envvar.EnvironmentVariable
fDelimiter, fName, fOperation, fValueFields inherited from interface org.eclipse.cdt.core.envvar.IEnvironmentVariable
ENVVAR_APPEND, ENVVAR_PREPEND, ENVVAR_REMOVE, ENVVAR_REPLACE -
Constructor Summary
ConstructorsConstructorDescriptionStorableEnvVar(String name) StorableEnvVar(String name, String value) StorableEnvVar(String name, String value, int op, String delimiter) StorableEnvVar(String name, String value, String delimiter) StorableEnvVar(String name, org.osgi.service.prefs.Preferences element) Load the Environment Variable directly from a Preference elementStorableEnvVar(ICStorageElement element) Load the environment variable from the ICStorageElement -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(ICStorageElement element) voidserialize(org.osgi.service.prefs.Preferences element) Serialize this Preference straight into the Preferences element.Methods inherited from class org.eclipse.cdt.core.envvar.EnvironmentVariable
clone, equals, getDelimiter, getName, getOperation, getValue, hashCode, toString
-
Field Details
-
VARIABLE_ELEMENT_NAME
- See Also:
-
NAME
- See Also:
-
VALUE
- See Also:
-
OPERATION
- See Also:
-
DELIMITER
- See Also:
-
REPLACE
- See Also:
-
REMOVE
- See Also:
-
APPEND
- See Also:
-
PREPEND
- See Also:
-
-
Constructor Details
-
StorableEnvVar
-
StorableEnvVar
-
StorableEnvVar
-
StorableEnvVar
-
StorableEnvVar
Load the environment variable from the ICStorageElement- Parameters:
element-
-
StorableEnvVar
Load the Environment Variable directly from a Preference element- Parameters:
name-element-- Since:
- 5.2
-
-
Method Details
-
serialize
-
serialize
public void serialize(org.osgi.service.prefs.Preferences element) Serialize this Preference straight into the Preferences element. It's assumed that the Preference node represents this StorableEnvVar's name- Parameters:
element-- Since:
- 5.2
-