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

java.lang.Object
  extended by sk.uniba.euromath.document.schema.impl.export.IlAndTailImpl

public final class IlAndTailImpl
extends Object

Represents one option of inserting elements into element. InsertList describes, which elements must be added inbetween the content. Expression represents truncating expression, that needs to be created at the tail of content nodes.

Author:
Martin Vysny

Field Summary
 InsertListImpl insertList
          InsertList describing insertable elements into element's content.
 sk.baka.ikslibs.ptr.DOMPoint last
          Insertpoint pointing after the last node.
 com.sun.msv.grammar.Expression tailExp
          Expression generating tail of element's content.
 
Constructor Summary
IlAndTailImpl(InsertListImpl insertList, com.sun.msv.grammar.Expression tailExp, RulePool rulePool, sk.baka.ikslibs.ptr.DOMPoint last)
          Constructs instance of the 'InsertList and its tail' representation object.
 
Method Summary
 List<InsertListImpl> asInsertLists()
          Returns the elements that may be generated by this class as a list of insertlists.
 IInsertListP getInsertList()
          Returns InsertList describing insertable elements into element's content.
 boolean isTailRequired()
          Returns true, when there is some tailing content required to be created.
 ElementSequenceRuleImpl tailRule()
          Returns rule for tailing required content.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tailExp

public final com.sun.msv.grammar.Expression tailExp
Expression generating tail of element's content. When null, there are no elements required to tail element's content.


insertList

public final InsertListImpl insertList
InsertList describing insertable elements into element's content.


last

public final sk.baka.ikslibs.ptr.DOMPoint last
Insertpoint pointing after the last node.

Constructor Detail

IlAndTailImpl

public IlAndTailImpl(InsertListImpl insertList,
                     com.sun.msv.grammar.Expression tailExp,
                     RulePool rulePool,
                     sk.baka.ikslibs.ptr.DOMPoint last)
Constructs instance of the 'InsertList and its tail' representation object. The tail is some expression that generates some elements after the last element from the insertlist.

Parameters:
insertList - the insertlist.
tailExp - the expression that generates some tail. If null or is epsilon-reducible then no tail is required hence the object shall represent only the insertlist.
rulePool - the pool of rules.
last - InsertPoint pointing after the last node - this value shall all tail rules have.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getInsertList

public IInsertListP getInsertList()
Returns InsertList describing insertable elements into element's content.

Returns:
an InsertListP instance.

isTailRequired

public boolean isTailRequired()
Returns true, when there is some tailing content required to be created.

Returns:
true if non-empty element sequence must be created at the end of node list.

tailRule

public ElementSequenceRuleImpl tailRule()
Returns rule for tailing required content. This should be computed on-demand.

Returns:
rule for tailing required content, or null if tail is not required.

asInsertLists

public List<InsertListImpl> asInsertLists()
Returns the elements that may be generated by this class as a list of insertlists.

Returns:
list of insertlists.


Copyright © 2003-2006 null. All Rights Reserved.