it.unimi.di.mg4j.util.parser.callback
Class AnchorExtractor.Anchor

java.lang.Object
  extended by 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

Constructor Summary
AnchorExtractor.Anchor(MutableString href, MutableString anchorText)
           
 
Method Summary
 MutableString documentSpecifier()
          The specification of the document to which this fragment belong.
 MutableString text()
          The textual content of this fragment.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnchorExtractor.Anchor

public AnchorExtractor.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 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