|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objectivehtml.ohtmlc.HtmlParser
This class parses a html file (xml compliant) and creates a HtmlForm object that represents the form in the html file.
Field Summary | |
static int |
NODE_IGNORED
Message constant that indicates a Node was ignored in the parsing |
static int |
PARENT_NODE
Message constant that indicates the details of the parent Node are to be printed |
Constructor Summary | |
HtmlParser()
|
Method Summary | |
static java.lang.String |
elementToString(org.w3c.dom.Element objElement)
Returns a String representation of the given Element. |
java.util.Set |
getEntities()
Gets the set of characters to be entitized |
boolean |
isTextCompressed()
Gets the text compression setting, true for on, false otherwise |
HtmlForm |
parseHtml(java.lang.String sFileName,
java.lang.String sFormID)
Parses the form in the specified html file and creates a HtmlForm object that represents the form in the html file. |
void |
setEntities(java.util.Set stEntities)
Sets the set of characters that need to be entitized. |
void |
setTextCompressed(boolean bIsOn)
Sets the text compression to be either on or off. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NODE_IGNORED
public static final int PARENT_NODE
Constructor Detail |
public HtmlParser()
Method Detail |
public HtmlForm parseHtml(java.lang.String sFileName, java.lang.String sFormID) throws javax.xml.parsers.FactoryConfigurationError, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException, OHtmlCParseException, InvalidControlNameException
sFileName
- the file namesFormID
- the id of the form in the html filejavax.xml.parsers.FactoryConfigurationError
- javax.xml.parsers.ParserConfigurationException
- java.io.IOException
- org.xml.sax.SAXException
- if the xml cannot be parsedOHtmlCParseException
- when a parse exception occursInvalidControlNameException
- if an invalid control name is usedpublic static final java.lang.String elementToString(org.w3c.dom.Element objElement)
objElement
- the Element objectpublic void setTextCompressed(boolean bIsOn)
bIsOn
- true for on, false for offisTextCompressed()
public boolean isTextCompressed()
setTextCompressed(boolean)
public void setEntities(java.util.Set stEntities)
stEntities
- the characters to be entitizedgetEntities()
public java.util.Set getEntities()
setEntities(Set)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |