~ubuntu-branches/ubuntu/vivid/doxia/vivid-proposed

« back to all changes in this revision

Viewing changes to doxia-modules/doxia-module-confluence/src/main/java/org/apache/maven/doxia/module/confluence/parser/LinkBlock.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-08 14:20:22 UTC
  • mfrom: (2.3.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091008142022-f6ccxganfr2tbaig
Tags: 1.1-3build1
Upload to karmic, avoiding new version from unstable. LP: #443292.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import org.apache.maven.doxia.sink.Sink;
23
23
 
24
 
 
25
 
public class LinkBlock
 
24
/**
 
25
 * @version $Id: LinkBlock.java 638290 2008-03-18 09:45:22Z bentmann $
 
26
 */
 
27
class LinkBlock
26
28
    implements Block
27
29
{
28
30
    private  String reference;
29
31
 
30
32
    private  String text;
31
33
 
32
 
    public LinkBlock(  String reference,  String text )
 
34
    LinkBlock(  String reference,  String text )
33
35
        throws IllegalArgumentException
34
36
    {
35
37
        if ( reference == null || text == null )
40
42
        this.text = text;
41
43
    }
42
44
 
 
45
    /** {@inheritDoc} */
43
46
    public  void traverse(  Sink sink )
44
47
    {
45
48
        sink.link( reference );