smile.nlp
Interface AnchorText
-
- All Known Implementing Classes:
- SimpleText
public interface AnchorTextThe anchor text is the visible, clickable text in a hyperlink. This provides an interface to all the anchor text in the corpus pointing to a text.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description AnchorTextaddAnchor(java.lang.String linkLabel)Add a link label to the anchor text.java.lang.StringgetAnchor()Returns the anchor text if any.AnchorTextsetAnchor(java.lang.String anchor)Sets the anchor text.
-
-
-
Method Detail
-
getAnchor
java.lang.String getAnchor()
Returns the anchor text if any. The anchor text is the visible, clickable text in a hyperlink. The anchor text is all the anchor text in the corpus pointing to this text.
-
setAnchor
AnchorText setAnchor(java.lang.String anchor)
Sets the anchor text. Note that anchor is all link labels in the corpus pointing to this text. So addAnchor is more appropriate in most cases.
-
addAnchor
AnchorText addAnchor(java.lang.String linkLabel)
Add a link label to the anchor text.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG