Package org.eclipse.ecf.core.security
Class BooleanCallback
- java.lang.Object
- 
- org.eclipse.ecf.core.security.BooleanCallback
 
- 
- All Implemented Interfaces:
- Serializable,- Callback
 
 public class BooleanCallback extends Object implements Callback, Serializable Callback that handles Boolean types- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BooleanCallback(String prompt)Construct aBooleanCallbackwith a prompt.BooleanCallback(String prompt, boolean defaultValue)Construct aNameCallbackwith a prompt and default name.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetDefaultValue()Get the default value.StringgetPrompt()Get the prompt.booleangetValue()Get the retrieved value.voidsetValue(boolean val)Set the retrieved name.
 
- 
- 
- 
Constructor Detail- 
BooleanCallbackpublic BooleanCallback(String prompt) Construct aBooleanCallbackwith a prompt.- Parameters:
- prompt- the prompt used to request the boolean value.
- Throws:
- IllegalArgumentException- if- promptis null or if- prompthas a length of 0.
 
 - 
BooleanCallbackpublic BooleanCallback(String prompt, boolean defaultValue) Construct aNameCallbackwith a prompt and default name.- Parameters:
- prompt- the prompt used to request the information.
- defaultValue- the value to be used as the default value displayed with the prompt.
- Throws:
- IllegalArgumentException- if- promptis null.
 
 
- 
 - 
Method Detail- 
getPromptpublic String getPrompt() Get the prompt.- Returns:
- the prompt value.
 
 - 
getDefaultValuepublic boolean getDefaultValue() Get the default value.- Returns:
- the default value, or null if this BooleanCallbackwas not instantiated with adefaultValue.
 
 - 
setValuepublic void setValue(boolean val) Set the retrieved name.- Parameters:
- val- the retrieved value- trueor- false.
- See Also:
- getValue()
 
 - 
getValuepublic boolean getValue() Get the retrieved value.- Returns:
- the retrieved value trueorfalse.
- See Also:
- setValue(boolean)
 
 
- 
 
-