Package org.eclipse.jgit.transport
Class CredentialItem.YesNoType
java.lang.Object
org.eclipse.jgit.transport.CredentialItem
org.eclipse.jgit.transport.CredentialItem.YesNoType
- Enclosing class:
- CredentialItem
An item whose value is a boolean choice, presented as Yes/No.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.CredentialItem
CredentialItem.CharArrayType, CredentialItem.InformationalMessage, CredentialItem.Password, CredentialItem.StringType, CredentialItem.Username, CredentialItem.YesNoType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jgit.transport.CredentialItem
getPromptText, isValueSecure
-
Field Details
-
value
private boolean value
-
-
Constructor Details
-
YesNoType
Initialize a prompt for a single boolean answer.- Parameters:
promptText
- prompt to display to the user alongside of the input field. Should be sufficient text to indicate what to supply for this item.
-
-
Method Details
-
clear
public void clear()Description copied from class:CredentialItem
Clear the stored value, destroying it as much as possible.- Specified by:
clear
in classCredentialItem
-
getValue
public boolean getValue()- Returns:
- the current value
-
setValue
public void setValue(boolean newValue) Set the new value.- Parameters:
newValue
-
-