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

« back to all changes in this revision

Viewing changes to doxia-modules/doxia-module-twiki/src/main/java/org/apache/maven/doxia/module/twiki/parser/NumeratedListBlock.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
24
/**
26
25
 * <pre>
27
26
 *    1. item1
31
30
 * </pre>
32
31
 *
33
32
 * @author Juan F. Codagnone
34
 
 * @since Nov 8, 2005
 
33
 * @version $Id: NumeratedListBlock.java 705065 2008-10-15 21:46:08Z vsiveton $
35
34
 */
36
 
public class NumeratedListBlock extends ListBlock
 
35
class NumeratedListBlock
 
36
    extends ListBlock
37
37
{
38
38
    /**
39
39
     * order item type. one of Sink#NUMBERING_....
47
47
     * @param blocks list of list items
48
48
     * @throws IllegalArgumentException if listItemBlocks is <code>null</code>
49
49
     */
50
 
    public NumeratedListBlock( final int type, final ListItemBlock[] blocks )
 
50
    NumeratedListBlock( final int type, final ListItemBlock[] blocks )
51
51
        throws IllegalArgumentException
52
52
    {
53
53
        super( blocks );
54
54
        this.type = type;
55
55
    }
56
56
 
57
 
 
58
 
    /**
59
 
     * @see AbstractFatherBlock#before(org.apache.maven.doxia.sink.Sink)
60
 
     */
61
 
    
62
 
    public final void before( final Sink sink )
 
57
    /** {@inheritDoc} */
 
58
    final void before( final Sink sink )
63
59
    {
64
60
        sink.numberedList( type );
65
61
    }
66
62
 
67
 
    /**
68
 
     * @see AbstractFatherBlock#after(org.apache.maven.doxia.sink.Sink)
69
 
     */
70
 
    
71
 
    public final void after( final Sink sink )
 
63
    /** {@inheritDoc} */
 
64
    final void after( final Sink sink )
72
65
    {
73
66
        sink.numberedList_();
74
67
    }
75
68
 
76
 
    /**
77
 
     * @see AbstractFatherBlock#equals(Object)
78
 
     */
79
 
    
 
69
    /** {@inheritDoc} */
80
70
    public final boolean equals( final Object obj )
81
71
    {
82
72
        boolean ret = false;
89
79
        return ret;
90
80
    }
91
81
 
92
 
    /**
93
 
     * @see AbstractFatherBlock#hashCode()
94
 
     */
95
 
    
 
82
    /** {@inheritDoc} */
96
83
    public final int hashCode()
97
84
    {
98
85
        final int magic = 17;