|
HTML Parser Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.AbstractNode
org.htmlparser.lexer.nodes.TagNode
org.htmlparser.tags.Tag
org.htmlparser.tags.CompositeTag
org.htmlparser.tags.FormTag
Represents a FORM tag.
| Field Summary | |
static String |
GET
|
protected String |
mFormLocation
This is the derived form location, based on action. |
static String |
POST
|
| Fields inherited from class org.htmlparser.tags.CompositeTag |
mDefaultScanner, mEndTag |
| Fields inherited from class org.htmlparser.lexer.nodes.TagNode |
breakTags, mAttributes |
| Fields inherited from class org.htmlparser.AbstractNode |
children, mPage, nodeBegin, nodeEnd, parent |
| Constructor Summary | |
FormTag()
Create a new form tag. |
|
| Method Summary | |
String |
extractFormLocn(String url)
Extract the location of the image, given the tag, and the url of the html page in which this tag exists. |
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()
Print the contents of the tag |
| Methods inherited from class org.htmlparser.tags.CompositeTag |
accept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStartTag, getStringText, getText, putChildrenInto, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, setStartTag, toHtml, toPlainTextString, toString |
| Methods inherited from class org.htmlparser.tags.Tag |
accept, clone, getThisScanner, setThisScanner |
| Methods inherited from class org.htmlparser.lexer.nodes.TagNode |
breaksFlow, getAttribute, getAttributeEx, getAttributes, getAttributesEx, getEndingLineNumber, getParameter, getParsed, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributes, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText |
| Methods inherited from class org.htmlparser.AbstractNode |
doSemanticAction, elementBegin, elementEnd, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHTML |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String POST
public static final String GET
protected String mFormLocation
| Constructor Detail |
public FormTag()
| Method Detail |
public String[] getIds()
getIds in class Tagpublic String[] getEnders()
getEnders in class Tagpublic String[] getEndTagEnders()
getEndTagEnders in class Tagpublic 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 formpublic String toString()
TagNode
toString in interface NodetoString in class CompositeTagpublic String extractFormLocn(String url)
url - URL of web page being parsed.
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||