sk.uniba.euromath.editor.wizards.document
Class ElementLoc

java.lang.Object
  extended by sk.uniba.euromath.editor.wizards.document.ElementLoc

public final class ElementLoc
extends Object

Represents an instance of element and an insertpoint, where the element should be inserted.

Author:
Martin Vysny

Field Summary
 Element parent
          The parent element.
 
Constructor Summary
ElementLoc(XMLAccess xmlAccess, Element parent, List<Element> elements, List<DOMPoint> ip)
          Constructor.
 
Method Summary
 List<Element> getElements()
          Returns list of elements.
 List<DOMPoint> getLocations()
          Returns list of insertpoints.
 void insert()
          Inserts the elements into their locations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public final Element parent
The parent element.

Constructor Detail

ElementLoc

public ElementLoc(XMLAccess xmlAccess,
                  Element parent,
                  List<Element> elements,
                  List<DOMPoint> ip)
Constructor.

Parameters:
xmlAccess - the document instance.
parent - the parent element where given elements shall be inserted.
elements - the list of elements
ip - the list of insertpoints
Method Detail

getElements

public List<Element> getElements()
Returns list of elements.

Returns:
list of elements, never null.

getLocations

public List<DOMPoint> getLocations()
Returns list of insertpoints.

Returns:
list of insertpoints, never null.

insert

public void insert()
            throws ExportException
Inserts the elements into their locations.

Throws:
ExportException - if error occurs during document modification.


Copyright © 2003-2006 null. All Rights Reserved.