sk.uniba.euromath.document.schema.impl.export
Class ElementSequenceRuleImpl

java.lang.Object
  extended by sk.uniba.euromath.document.schema.impl.export.ElementSequenceRuleImpl
All Implemented Interfaces:
IElementSequenceRuleP

public final class ElementSequenceRuleImpl
extends Object
implements IElementSequenceRuleP

Implements the ElementSequenceRule interface.

Author:
Martin Vysny

Field Summary
 com.sun.msv.grammar.Expression exp
          Expression, generating element sequence.
 RulePool pool
          The rule pool instance.
 
Method Summary
 List<? extends IInsertListP> getSequences(sk.baka.ikslibs.ptr.DOMPoint start)
           Computes all possibilities of sequences, that can be generated by this rule.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exp

public final com.sun.msv.grammar.Expression exp
Expression, generating element sequence.


pool

public final RulePool pool
The rule pool instance.

Method Detail

getSequences

public List<? extends IInsertListP> getSequences(sk.baka.ikslibs.ptr.DOMPoint start)
Description copied from interface: IElementSequenceRuleP

Computes all possibilities of sequences, that can be generated by this rule. There must be only such insertlists, that doesn't contain optional elements. There must be no duplicite insertlists. If no elements are required to be created then an empty list shall be returned.

All insertpoints in each returned insertlist must be equal to start. All one-item-length insertlists must be grouped together into one insert list.

Specified by:
getSequences in interface IElementSequenceRuleP
Parameters:
start - insertpoint, from which the numbering must start. It is guaranteed that start.pos == 0 is true.
Returns:
array of Insertlists, that can generate sequence of element, never null.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2006 null. All Rights Reserved.