sk.uniba.euromath.document.interval
Class DOMIntervalFactory

java.lang.Object
  extended by sk.uniba.euromath.document.interval.DOMIntervalFactory

public final class DOMIntervalFactory
extends Object

Produces the DOMInterval instances.

Author:
Martin Vysny

Constructor Summary
DOMIntervalFactory(DomCore doc)
          Constructor.
 
Method Summary
 DOMIntervalSet cloneSet(DOMIntervalSet other)
          Copy-constructor.
 DOMIntervalSet newEmptySet()
          Constructs an empty set.
 DOMInterval newInterval(DomPointer from, DomPointer to)
          Creates and returns new document interval.
 DOMIntervalSet newSet(DOMInterval interval)
          Constructs set with one item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMIntervalFactory

public DOMIntervalFactory(DomCore doc)
Constructor. Not intended to be called by clients.

Parameters:
doc - the document instance.
Method Detail

newInterval

public DOMInterval newInterval(DomPointer from,
                               DomPointer to)
Creates and returns new document interval.

Parameters:
from - select nodes from this pointer. Must not be null.
to - select nodes up to this pointer. Must not be null.
Returns:
interval, never null.

newEmptySet

public DOMIntervalSet newEmptySet()
Constructs an empty set.

Returns:
instance of an empty set.

cloneSet

public DOMIntervalSet cloneSet(DOMIntervalSet other)
Copy-constructor.

Parameters:
other - clone this interval set.
Returns:
set identical to the given one.

newSet

public DOMIntervalSet newSet(DOMInterval interval)
Constructs set with one item.

Parameters:
interval - the interval.
Returns:
set containing one interval.


Copyright 2003-2003-2006 null. All Rights Reserved.