|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.visitors.NodeVisitor
org.opencms.staticexport.CmsLinkVisitor
public class CmsLinkVisitor
Implements the HTML parser node visitor pattern to exchange all links on the page.
| Constructor Summary | |
|---|---|
CmsLinkVisitor(CmsLinkProcessor linkProcessor)
Public constructor. |
|
| Method Summary | |
|---|---|
String |
getHtml()
Returns the generated HTML. |
void |
visitEndTag(Tag tag)
Visitor method to process a tag end. |
void |
visitImageTag(ImageTag imageTag)
Visitor method to process an image tag. |
void |
visitLinkTag(LinkTag linkTag)
Visitor method to process a single link. |
void |
visitRemarkNode(Remark node)
Visitor method to process a remark. |
void |
visitStringNode(Text node)
Visitor method to process a string node. |
void |
visitTag(Tag tag)
Visitor method to process a tag (start). |
| Methods inherited from class org.htmlparser.visitors.NodeVisitor |
|---|
beginParsing, finishedParsing, shouldRecurseChildren, shouldRecurseSelf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsLinkVisitor(CmsLinkProcessor linkProcessor)
linkProcessor - the link processor to use| Method Detail |
|---|
public String getHtml()
public void visitEndTag(Tag tag)
visitEndTag in class NodeVisitortag - the tag to processpublic void visitImageTag(ImageTag imageTag)
imageTag - the tag to processpublic void visitLinkTag(LinkTag linkTag)
linkTag - the tag to processpublic void visitRemarkNode(Remark node)
visitRemarkNode in class NodeVisitornode - the node to processpublic void visitStringNode(Text node)
visitStringNode in class NodeVisitornode - the string node to processpublic void visitTag(Tag tag)
visitTag in class NodeVisitortag - the tag to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||