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

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

public final class InsertListImpl
extends Object
implements IInsertListP

Implements an insertlist.

Author:
Martin Vysny

Constructor Summary
InsertListImpl()
          Creates an empty insertlist.
InsertListImpl(InsertListImpl insertList)
          Creates clone of given insertlist, as a InsertList interface.
InsertListImpl(InsertListInternal insertList, RulePool rulePool)
          Creates clone of given insertlist, as a InsertList interface.
 
Method Summary
 void add(ElementLocImpl eLoc)
          Adds given elementloc at the end of this insertlist.
 boolean equals(Object obj)
           
 IElementLocP get(int i)
          Returns i-th element locator in list.
 int getLength()
          Returns number of locator in this insertlist.
 int hashCode()
           
 void merge(InsertListImpl insertList)
          Adds given insertlist at the end of this insertlist.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertListImpl

public InsertListImpl(InsertListInternal insertList,
                      RulePool rulePool)
Creates clone of given insertlist, as a InsertList interface.

Parameters:
insertList - insertlist, that will be represented by this object.
rulePool - where new rules will be stored.

InsertListImpl

public InsertListImpl(InsertListImpl insertList)
Creates clone of given insertlist, as a InsertList interface.

Parameters:
insertList - insertlist, that will be represented by this object.

InsertListImpl

public InsertListImpl()
Creates an empty insertlist.

Method Detail

get

public IElementLocP get(int i)
Description copied from interface: IInsertListP
Returns i-th element locator in list.

Specified by:
get in interface IInsertListP
Parameters:
i - index of item.
Returns:
element locator object.

getLength

public int getLength()
Description copied from interface: IInsertListP
Returns number of locator in this insertlist.

Specified by:
getLength in interface IInsertListP
Returns:
number of locator in this insertlist.

toString

public String toString()
Overrides:
toString in class Object

add

public void add(ElementLocImpl eLoc)
Adds given elementloc at the end of this insertlist. Caution: InsertPoints must be maintained ordered! Hence, eLoc must have insertpoint equal or greater than all items present in this insertlist.

Parameters:
eLoc - elementloc to insert.

merge

public void merge(InsertListImpl insertList)
Adds given insertlist at the end of this insertlist. Caution: InsertPoints must be maintained ordered! Hence, insertList must have insertpoints equal or greater than all items present in this insertlist.

Parameters:
insertList - insertlist to insert.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2006 null. All Rights Reserved.