org.eclipse.mylyn.wikitext.core.parser
Class LinkAttributes

java.lang.Object
  extended by org.eclipse.mylyn.wikitext.core.parser.Attributes
      extended by org.eclipse.mylyn.wikitext.core.parser.LinkAttributes

public class LinkAttributes
extends Attributes

Attributes for links (hyperlinks)

Since:
1.0
Author:
David Green, draft

Constructor Summary
LinkAttributes()
           
 
Method Summary
 String getHref()
          The target of the link.
 String getRel()
          The 'rel' of a link, as defined by the HTML spec.
 String getTarget()
          The target of a link, as defined by the HTML spec.
 void setHref(String href)
          The target of the link.
 void setRel(String rel)
          The 'rel' of a link, as defined by the HTML spec.
 void setTarget(String target)
          The target of a link, as defined by the HTML spec.
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.parser.Attributes
appendCssClass, appendCssStyle, getCssClass, getCssStyle, getId, getLanguage, getTitle, setCssClass, setCssStyle, setId, setLanguage, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkAttributes

public LinkAttributes()
Method Detail

setTarget

public void setTarget(String target)
The target of a link, as defined by the HTML spec.

Parameters:
target - the target or null if there should be none

getTarget

public String getTarget()
The target of a link, as defined by the HTML spec.

Returns:
the target or null if there should be none

getRel

public String getRel()
The 'rel' of a link, as defined by the HTML spec.

Returns:
the ref or null if there should be none
See Also:
HtmlDocumentBuilder.getLinkRel()

setRel

public void setRel(String rel)
The 'rel' of a link, as defined by the HTML spec.

Parameters:
rel - the rel or null if there should be none
See Also:
HtmlDocumentBuilder.setLinkRel(String)

getHref

public String getHref()
The target of the link. To be used with DocumentBuilder.SpanType.LINK.

Since:
1.2

setHref

public void setHref(String href)
The target of the link. To be used with DocumentBuilder.SpanType.LINK.

Since:
1.2


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.