|
HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.nodes.AbstractNode
org.htmlparser.nodes.TagNode
org.htmlparser.tags.CompositeTag
org.htmlparser.tags.FormTag
public class FormTag
Represents a FORM tag.
| Field Summary | |
|---|---|
static String |
GET
The "GET" method. |
protected String |
mFormLocation
This is the derived form location, based on action. |
static String |
POST
The "POST" method. |
| Fields inherited from class org.htmlparser.tags.CompositeTag |
|---|
mDefaultCompositeScanner, mEndTag |
| Fields inherited from class org.htmlparser.nodes.TagNode |
|---|
breakTags, mAttributes, mDefaultScanner |
| Fields inherited from class org.htmlparser.nodes.AbstractNode |
|---|
children, mPage, nodeBegin, nodeEnd, parent |
| 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. |
| Methods inherited from class org.htmlparser.tags.CompositeTag |
|---|
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 |
| Methods inherited from class org.htmlparser.nodes.TagNode |
|---|
breaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEndingLineNumber, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, setThisScanner |
| Methods inherited from class org.htmlparser.nodes.AbstractNode |
|---|
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.htmlparser.Node |
|---|
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtml |
| Field Detail |
|---|
public static final String POST
getFormMethod(),
Constant Field Valuespublic static final String GET
getFormMethod(),
Constant Field Valuesprotected String mFormLocation
| Constructor Detail |
|---|
public FormTag()
| Method Detail |
|---|
public String[] getIds()
getIds in interface TaggetIds in class TagNodepublic String[] getEnders()
getEnders in interface TaggetEnders in class TagNodepublic String[] getEndTagEnders()
getEndTagEnders in interface TaggetEndTagEnders in class TagNodepublic NodeList getFormInputs()
public NodeList getFormTextareas()
public String getFormLocation()
public void setFormLocation(String url)
url - The new FORM locationpublic String getFormMethod()
public InputTag getInputTag(String name)
name - The name of the input tag to be retrieved
public String getFormName()
public TextareaTag getTextAreaTag(String name)
name - Name of the textarea tag to be found within the form.
TEXTAREA tag with the matching name.public String toString()
FORM tag suitable for debugging.
toString in interface NodetoString in class CompositeTagpublic String extractFormLocn()
ACTION attribute as an absolute URL.
|
© 2005 Derrick Oswald Jun 10, 2006
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under LGPL. | |