org.htmlparser.tags
Class FormTag
- Cloneable, Node, Serializable, Tag
Represents a FORM tag.
static String | GET - The method.
|
static String | POST - The method.
|
protected String | mFormLocation - This is the derived form location, based on action.
|
accept , childAt , children , collectInto , digupStringNode , elements , findPositionOf , findPositionOf , findPositionOf , getChild , getChildCount , getChildrenAsNodeArray , getChildrenHTML , getEndTag , getStringText , getText , putChildrenInto , putEndTagInto , removeChild , searchByName , searchFor , searchFor , searchFor , searchFor , setEndTag , toHtml , toPlainTextString , toString , toString |
accept , breaksFlow , getAttribute , getAttributeEx , getAttributesEx , getEndTag , getEndTagEnders , getEnders , getEndingLineNumber , getIds , getRawTagName , getStartingLineNumber , getTagBegin , getTagEnd , getTagName , getText , getThisScanner , isEmptyXmlTag , isEndTag , removeAttribute , setAttribute , setAttribute , setAttribute , setAttributeEx , setAttributesEx , setEmptyXmlTag , setEndTag , setTagBegin , setTagEnd , setTagName , setText , setThisScanner , toHtml , toPlainTextString , toString |
accept , clone , collectInto , doSemanticAction , getChildren , getEndPosition , getFirstChild , getLastChild , getNextSibling , getPage , getParent , getPreviousSibling , getStartPosition , getText , setChildren , setEndPosition , setPage , setParent , setStartPosition , setText , toHtml , toHtml , toPlainTextString , toString |
GET
public static final String GET
The method.
POST
public static final String POST
The method.
mFormLocation
protected String mFormLocation
This is the derived form location, based on action.
FormTag
public FormTag()
Create a new form tag.
extractFormLocn
public String extractFormLocn()
Extract the ACTION
attribute as an absolute URL.
- The URL the form is to be submitted to.
getEndTagEnders
public String[] getEndTagEnders()
Return the set of end tag names that cause this tag to finish.
- getEndTagEnders in interface Tag
- getEndTagEnders in interface TagNode
- The names of following end tags that stop further scanning.
getEnders
public String[] getEnders()
Return the set of tag names that cause this tag to finish.
- getEnders in interface Tag
- getEnders in interface TagNode
- The names of following tags that stop further scanning.
getFormInputs
public NodeList getFormInputs()
Get the list of input fields.
- Input elements in the form.
getFormLocation
public String getFormLocation()
Get the value of the action attribute.
- The submit url of the form.
getFormMethod
public String getFormMethod()
Returns the method of the form, GET or POST.
- String The method of the form (GET if nothing is specified).
getFormName
public String getFormName()
Get the value of the name attribute.
- String The name of the form
getFormTextareas
public NodeList getFormTextareas()
Get the list of text areas.
- Textarea elements in the form.
getIds
public String[] getIds()
Return the set of names handled by this tag.
- getIds in interface Tag
- getIds in interface TagNode
- The names to be matched that create tags of this type.
getInputTag
public InputTag getInputTag(String name)
Get the input tag in the form corresponding to the given name
name
- The name of the input tag to be retrieved
- Tag The input tag corresponding to the name provided
getTextAreaTag
public TextareaTag getTextAreaTag(String name)
Find the textarea tag matching the given name
name
- Name of the textarea tag to be found within the form.
- The
TEXTAREA
tag with the matching name.
setFormLocation
public void setFormLocation(String url)
Set the form location. Modification of this element will cause the HTML rendering
to change as well (in a call to toHTML()).
url
- The new FORM location
toString
public String toString()
Return a string representation of the contents of this FORM
tag suitable for debugging.
- toString in interface Node
- toString in interface CompositeTag
- A textual representation of the form tag.
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |