it.unimi.di.mg4j.util.parser.callback
Class AnchorExtractor.Anchor
java.lang.Object
it.unimi.di.mg4j.util.parser.callback.AnchorExtractor.Anchor
- All Implemented Interfaces:
- Scan.VirtualDocumentFragment, Serializable
- Enclosing class:
- AnchorExtractor
public static final class AnchorExtractor.Anchor
- extends Object
- implements Scan.VirtualDocumentFragment
A class representing an anchor. It is used to return the results of parsing.
- See Also:
- Serialized Form
AnchorExtractor.Anchor
public AnchorExtractor.Anchor(MutableString href,
MutableString anchorText)
documentSpecifier
public MutableString documentSpecifier()
- Description copied from interface:
Scan.VirtualDocumentFragment
- The specification of the document to which this fragment belong.
- Specified by:
documentSpecifier
in interface Scan.VirtualDocumentFragment
- Returns:
- the specification of the document to which this fragment belong.
- See Also:
VirtualDocumentResolver
text
public MutableString text()
- Description copied from interface:
Scan.VirtualDocumentFragment
- The textual content of this fragment.
- Specified by:
text
in interface Scan.VirtualDocumentFragment
- Returns:
- the textual content of this fragment.
toString
public String toString()
- Overrides:
toString
in class Object