danger.text.span
Class AnchorSpan.Standard

java.lang.Object
  extended by danger.text.span.AnchorSpan.Standard
All Implemented Interfaces:
AnchorSpan
Enclosing interface:
AnchorSpan


public static class AnchorSpan.Standard
extends Object
implements AnchorSpan

Standard implementation of AnchorSpan, which provides a named anchor within the text.


Nested Class Summary
 
Nested classes/interfaces inherited from interface danger.text.span.AnchorSpan
AnchorSpan.Standard
 
Constructor Summary
AnchorSpan.Standard(String anchor)
          Create an anchor with the specified name.
 
Method Summary
 String getAnchor()
          Return the name of this anchor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorSpan.Standard

public AnchorSpan.Standard(String anchor)
Create an anchor with the specified name. Do not include a leading "#" in the name.

Method Detail

getAnchor

public String getAnchor()
Return the name of this anchor

Specified by:
getAnchor in interface AnchorSpan