org.encog.bot.browse.range
Class Form
- java.lang.Object
-
- org.encog.bot.browse.range.DocumentRange
-
- org.encog.bot.browse.range.Form
-
public class Form extends DocumentRange
A document range that represents a form, and all embedded tags.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classForm.MethodThe method for this form.
-
Constructor Summary
Constructors Constructor and Description Form(WebPage source)Construct a form on the specified web page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description InputfindType(java.lang.String type, int index)Find the form input by type.AddressgetAction()Form.MethodgetMethod()voidsetAction(Address theAction)Set the action for the form.voidsetMethod(Form.Method theMethod)Set the method to send the form.java.lang.StringtoString()-
Methods inherited from class org.encog.bot.browse.range.DocumentRange
addElement, getBegin, getClassAttribute, getElements, getEnd, getIdAttribute, getParent, getSource, getTextOnly, setBegin, setClassAttribute, setEnd, setIdAttribute, setParent, setSource
-
-
-
-
Constructor Detail
-
Form
public Form(WebPage source)
Construct a form on the specified web page.- Parameters:
source- The web page that contains this form.
-
-
Method Detail
-
findType
public final Input findType(java.lang.String type, int index)
Find the form input by type.- Parameters:
type- The type of input we want.index- The index to begin searching at.- Returns:
- The Input object that was found.
-
getAction
public final Address getAction()
- Returns:
- The URL to send the form to.
-
getMethod
public final Form.Method getMethod()
- Returns:
- How the form will be sent.
-
setAction
public final void setAction(Address theAction)
Set the action for the form.- Parameters:
theAction- The URL to send the form to.
-
setMethod
public final void setMethod(Form.Method theMethod)
Set the method to send the form.- Parameters:
theMethod- How to send the form.
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG