1
2
3
4
5
6
7
8
9
10
11
12 package sk.uniba.euromath.document.schema.plug;
13 import java.util.List;
14 import sk.baka.ikslibs.ptr.DOMPoint;
15 /***
16 * Represents rule generating sequence of elements.
17 * @author Martin Vysny
18 */
19 public interface IElementSequenceRuleP {
20 /***
21 * <p>
22 * Computes all possibilities of sequences, that can be generated by this
23 * rule. There must be only such insertlists, that doesn't contain optional
24 * elements. There must be no duplicite insertlists. If no elements are
25 * required to be created then an empty list shall be returned.
26 * </p>
27 * <p>
28 * All insertpoints in each returned insertlist must be equal to
29 * <code>start</code>. All one-item-length insertlists must be grouped
30 * together into one insert list.
31 * </p>
32 * @param start insertpoint, from which the numbering must start. It is
33 * guaranteed that <code>start.pos == 0</code> is true.
34 * @return array of Insertlists, that can generate sequence of element,
35 * never <code>null</code>.
36 */
37 public List<? extends IInsertListP> getSequences(DOMPoint start);
38 }