java.lang.Object
org.htmlparser.Node
org.htmlparser.tags.Tag
org.htmlparser.tags.CompositeTag
org.htmlparser.tags.FormTag
- All Implemented Interfaces:
- java.io.Serializable
- public class FormTag
- extends CompositeTag
Represents a FORM tag.
| Methods inherited from class org.htmlparser.tags.CompositeTag |
accept, childAt, children, collectInto, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, getChild, getChildCount, getChildren, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStartTag, putChildrenInto, putEndTagInto, putStartTagInto, searchByName, searchFor, searchFor, searchFor, toHtml, toPlainTextString |
| Methods inherited from class org.htmlparser.tags.Tag |
append, append, breaksFlow, extractWord, find, getAttribute, getAttributes, getParameter, getParsed, getTagBegin, getTagEnd, getTagEndLine, getTagLine, getTagLines, getTagName, getTagStartLine, getText, getThisScanner, getType, isEmptyXmlTag, redoParseAttributes, scan, setAttribute, setAttributes, setEmptyXmlTag, setTagBegin, setTagEnd, setTagLine, setTagParser, setText, setThisScanner |
POST
public static final java.lang.String POST
- See Also:
- Constant Field Values
GET
public static final java.lang.String GET
- See Also:
- Constant Field Values
formURL
protected java.lang.String formURL
formName
protected java.lang.String formName
formMethod
protected java.lang.String formMethod
formInputList
protected org.htmlparser.util.NodeList formInputList
textAreaList
private org.htmlparser.util.NodeList textAreaList
FormTag
public FormTag(org.htmlparser.tags.data.TagData tagData,
org.htmlparser.tags.data.CompositeTagData compositeTagData)
- Constructor takes in tagData, compositeTagData, formTagData
getFormInputs
public org.htmlparser.util.NodeList getFormInputs()
getFormLocation
public java.lang.String getFormLocation()
getFormMethod
public java.lang.String getFormMethod()
- Returns the method of the form
getInputTag
public InputTag getInputTag(java.lang.String name)
- Get the input tag in the form corresponding to the given name
getFormName
public java.lang.String getFormName()
setFormLocation
public void setFormLocation(java.lang.String formURL)
- Set the form location. Modification of this element will cause the HTML
rendering to change as well (in a call to toHTML()).
toString
public java.lang.String toString()
- Description copied from class:
Tag
- Print the contents of the tag
- Overrides:
toString in class Tag
getTextAreaTag
public TextareaTag getTextAreaTag(java.lang.String name)
- Find the textarea tag matching the given name