org.htmlparser.tags
public class FormTag extends CompositeTag
Field Summary | |
---|---|
static String | GET
The {@value} method. |
protected String | mFormLocation
This is the derived form location, based on action. |
static String | POST
The {@value} method. |
Constructor Summary | |
---|---|
FormTag()
Create a new form tag. |
Method Summary | |
---|---|
String | extractFormLocn()
Extract the ACTION attribute as an absolute URL. |
String[] | getEnders()
Return the set of tag names that cause this tag to finish. |
String[] | getEndTagEnders()
Return the set of end tag names that cause this tag to finish. |
NodeList | getFormInputs()
Get the list of input fields. |
String | getFormLocation()
Get the value of the action attribute. |
String | getFormMethod()
Returns the method of the form, GET or POST. |
String | getFormName()
Get the value of the name attribute. |
NodeList | getFormTextareas()
Get the list of text areas. |
String[] | getIds()
Return the set of names handled by this tag. |
InputTag | getInputTag(String name)
Get the input tag in the form corresponding to the given name |
TextareaTag | getTextAreaTag(String name)
Find the textarea tag matching the given name |
void | setFormLocation(String url)
Set the form location. |
String | toString()
Return a string representation of the contents of this FORM tag suitable for debugging. |
See Also: FormTag
See Also: FormTag
ACTION
attribute as an absolute URL.Returns: The URL the form is to be submitted to.
Returns: The names of following tags that stop further scanning.
Returns: The names of following end tags that stop further scanning.
Returns: Input elements in the form.
Returns: The submit url of the form.
Returns: String The method of the form (GET if nothing is specified).
Returns: String The name of the form
Returns: Textarea elements in the form.
Returns: The names to be matched that create tags of this type.
Parameters: name The name of the input tag to be retrieved
Returns: Tag The input tag corresponding to the name provided
Parameters: name Name of the textarea tag to be found within the form.
Returns: The TEXTAREA
tag with the matching name.
Parameters: url The new FORM location
FORM
tag suitable for debugging.Returns: A textual representation of the form tag.
HTML Parser is an open source library released under LGPL. | |