|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscone.robot.RobotHtmlNode
public class RobotHtmlNode
A robotHtmlNode extends the concept of NetNodes and HtmlNodes to fit the robot's needs. It has a set of attributes and a depth value. There can be many RobotHtmlNodes for one NetNode
Constructor Summary | |
---|---|
RobotHtmlNode(HtmlNode htmlNode,
int scannedDepth)
Constructor |
|
RobotHtmlNode(NetNode netNode,
int scannedDepth)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String key)
Get the value of the specified attribute |
HtmlNode |
getHtmlNode()
Get the htmlNode if existant. |
NetNode |
getNetNode()
Get the netNode |
java.lang.String |
getNodeId()
Get the ID of this robotHtmlNode |
int |
getScannedDepth()
Get the scanned depth of this node |
SimpleUri |
getSimpleUri()
Get the simpleUri of this Node |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set the value of the specified attribute |
void |
setHtmlNode(HtmlNode htmlNode)
Set the htmlNode |
void |
setNetNode(NetNode netNode)
Set the netNode |
void |
setScannedDepth(int scannedDepth)
Set the scanned depth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RobotHtmlNode(HtmlNode htmlNode, int scannedDepth)
htmlNode
- the htmlNode this robotHtmlNode belongs todepth
- this node was scanned with this depthpublic RobotHtmlNode(NetNode netNode, int scannedDepth)
netNode
- the netNode this robotHtmlNode belongs to. Might be used for documents with other mime-types then text/htmldepth
- this node was scanned with this depthMethod Detail |
---|
public SimpleUri getSimpleUri()
public HtmlNode getHtmlNode() throws NoHtmlNodeException
NoHtmlNodeException
public void setHtmlNode(HtmlNode htmlNode)
htmlNode
- the htmlNodepublic NetNode getNetNode()
public java.lang.String getNodeId()
public void setNetNode(NetNode netNode)
netNode
- the netNodepublic int getScannedDepth()
public void setScannedDepth(int scannedDepth)
scanned
- depth the depthpublic java.lang.String getAttribute(java.lang.String key)
key
- This key identifies one attribute
public void setAttribute(java.lang.String key, java.lang.String value)
key
- The name of the attributevalue
- The value of the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |