All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.install.tasks.InstallLocaleTask
java.lang.Object
|
+----com.sun.wizards.core.Task
|
+----com.sun.wizards.tasks.DecoratorTask
|
+----com.sun.install.tasks.InstallLocaleTask
- public class InstallLocaleTask
- extends DecoratorTask
- implements Serializable
The InstallLocaleTask is a task that follows the Decorator design
pattern. This object can be used to perform or reverse a
task only if a specific locale has been selected for installation
either by being the default locale or by being selected on the
command line with the "-locales" option.
-
desiredLocales
- The locales this task is looking for.
Deprecated.
-
invert
- This flag indicates whether or not the test should be inverted.
Deprecated.
-
InstallLocaleTask()
- Creates a InstallLocaleTask.
-
InstallLocaleTask(String, Task)
- Creates an InstallLocaleTask that will perform the specified task
on the specified locale.
-
InstallLocaleTask(String[], Task, boolean)
- Creates an InstallLocaleTask that will perform the specified task
on the specified locale.
-
addRuntimeResources(Vector)
- Add the runtime class requirements to the specified vector.
-
ignore(boolean)
- Returns false if this task does not want to be
ignored, or true if this task should be ignored.
-
isTargetLocale()
- Returns true if this object is being executed on one of the
target platforms that were specified at buildtime.
desiredLocales
protected String desiredLocales[]
- Note: desiredLocales is deprecated.
- The locales this task is looking for.
invert
protected boolean invert
- Note: invert is deprecated.
- This flag indicates whether or not the test should be inverted.
InstallLocaleTask
public InstallLocaleTask()
- Creates a InstallLocaleTask.
InstallLocaleTask
public InstallLocaleTask(String locale,
Task decoratedTask)
- Creates an InstallLocaleTask that will perform the specified task
on the specified locale.
- Parameters:
- locale - The locale that the decorated task should perform on.
- decoratedTask - The task that is to be performed or reversed.
InstallLocaleTask
public InstallLocaleTask(String locales[],
Task decoratedTask,
boolean invert)
- Creates an InstallLocaleTask that will perform the specified task
on the specified locale.
- Parameters:
- locales - The locales that the decorated task should perform on.
- decoratedTask - The task that is to be performed or reversed.
- invert - Invert the compatibility response.
isTargetLocale
protected boolean isTargetLocale()
- Returns true if this object is being executed on one of the
target platforms that were specified at buildtime.
- Returns:
- boolean Whether the runtime selected locale(s) match the
locale(s) specified at runtime.
ignore
public boolean ignore(boolean direction)
- Returns false if this task does not want to be
ignored, or true if this task should be ignored.
If this InstallLocaleTask is executing on one of the
locales specified at buildtime, this method
will return true.
- Parameters:
- direction - Used to determine how long this task will take in the
specified direction. If the flag is true (indicating forward), this
method should return the amount of time this task will take when
executing the task in a forward direction.
- Returns:
- true or false, depending on if this
Task should be ignored.
- Overrides:
- ignore in class DecoratorTask
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Add the runtime class requirements to the specified vector.
- Parameters:
- resourceVector - The vector containing all the required resources
for this wizard.
- Overrides:
- addRuntimeResources in class DecoratorTask
All Packages Class Hierarchy This Package Previous Next Index