public abstract class Input
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected java.lang.String |
value |
| Constructor and Description |
|---|
Input() |
| Modifier and Type | Method and Description |
|---|---|
HTTPParameter |
convertToHTTPParameter(int index)
Converts this input to the HTTP Parameter that can be added to a Scrapeable File.
|
java.lang.String |
getName()
Gets the name of the input
|
java.lang.String |
getValue()
Gets the value of the input
|
void |
setName(java.lang.String name)
Sets the name value of the input
|
void |
setValue(java.lang.String value)
Sets the value for the input
|
abstract void |
setValueChecked(java.lang.Object value)
Sets the value for the input.
|
@Nullable protected java.lang.String name
@Nullable protected java.lang.String value
@Nullable public HTTPParameter convertToHTTPParameter(int index)
index - The index to use for this parameterpublic void setName(java.lang.String name)
name - The new name value for the input@Nullable public java.lang.String getName()
public void setValue(java.lang.String value)
value - The new value for the inputpublic abstract void setValueChecked(java.lang.Object value)
value - The new value for the inputjava.lang.IllegalArgumentException - If the value is invalid for the given input type@Nullable public java.lang.String getValue()