Class AnchorExtractor.Anchor
- java.lang.Object
-
- it.unimi.di.big.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
-
-
Constructor Summary
Constructors Constructor Description Anchor(MutableString href, MutableString anchorText)
-
Method Summary
Modifier and Type Method Description MutableString
documentSpecifier()
The specification of the document to which this fragment belong.MutableString
text()
The textual content of this fragment.String
toString()
-
-
-
Constructor Detail
-
Anchor
public Anchor(MutableString href, MutableString anchorText)
-
-
Method Detail
-
documentSpecifier
public MutableString documentSpecifier()
Description copied from interface:Scan.VirtualDocumentFragment
The specification of the document to which this fragment belong.- Specified by:
documentSpecifier
in interfaceScan.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 interfaceScan.VirtualDocumentFragment
- Returns:
- the textual content of this fragment.
-
-