|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.impl.iterator.SchemaLevelNodeIterator sk.uniba.euromath.document.schema.impl.modify.EnclosingIterator
final class EnclosingIterator
Iterates the content of start.parent
element. All nodes in
start-end range are removed - they are placed in enclosing
element instead.
Field Summary | |
---|---|
(package private) EnclosableElementContentInfo |
enclosable
the enclosable element |
(package private) List<ContentInfo> |
filteredContent
This list was filtered out by our filter. |
Fields inherited from class sk.uniba.euromath.document.schema.impl.iterator.SchemaLevelNodeIterator |
---|
act, items, lastEmptyItem, parent |
Constructor Summary | |
---|---|
EnclosingIterator(Collection<ContentInfo> contentInfos,
List<ContentInfo> filteredContent,
EnclosableElementContentInfo enclosable,
Node parent)
Constructs the instance. |
Method Summary | |
---|---|
SchemaLevelNodeIterator |
getChildIterator(Element e)
Returns a child iterator for given element. |
SchemaLevelNodeIterator |
getClone()
Clones the iterator. |
Methods inherited from class sk.uniba.euromath.document.schema.impl.iterator.SchemaLevelNodeIterator |
---|
add, getActIP, getEquivalent, hasNext, hasPrevious, iterator, next, nextIndex, previous, previousIndex, remove, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final List<ContentInfo> filteredContent
enclosing
then just return
iterator iterating over this sequence.
final EnclosableElementContentInfo enclosable
Constructor Detail |
---|
EnclosingIterator(Collection<ContentInfo> contentInfos, List<ContentInfo> filteredContent, EnclosableElementContentInfo enclosable, Node parent)
contentInfos
- the XML contentfilteredContent
- content being filtered out (placed in the
'enclosable' element)enclosable
- the enclosable elementparent
- parent of the enclosable element.Method Detail |
---|
public SchemaLevelNodeIterator getChildIterator(Element e)
SchemaLevelNodeIterator
lastEmptyItem
value, however forceIPs
are not given to the child. The algorithm iterating with this iterator
should use this method when entering child elements. You should override
getClone()
method when overriding this method to ensure
the correct class type.
getChildIterator
in class SchemaLevelNodeIterator
e
- the element whose children shall be enumerated.
public SchemaLevelNodeIterator getClone()
SchemaLevelNodeIterator
getClone
in class SchemaLevelNodeIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |