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 MutableStringdocumentSpecifier()The specification of the document to which this fragment belong.MutableStringtext()The textual content of this fragment.StringtoString()
-
-
-
Constructor Detail
-
Anchor
public Anchor(MutableString href, MutableString anchorText)
-
-
Method Detail
-
documentSpecifier
public MutableString documentSpecifier()
Description copied from interface:Scan.VirtualDocumentFragmentThe specification of the document to which this fragment belong.- Specified by:
documentSpecifierin 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.VirtualDocumentFragmentThe textual content of this fragment.- Specified by:
textin interfaceScan.VirtualDocumentFragment- Returns:
- the textual content of this fragment.
-
-