Package org.apache.batik.bridge.svg12
Class DefaultXBLManager.XblChildNodes
- java.lang.Object
-
- org.apache.batik.bridge.svg12.DefaultXBLManager.XblChildNodes
-
- All Implemented Interfaces:
org.w3c.dom.NodeList
- Direct Known Subclasses:
DefaultXBLManager.XblScopedChildNodes
- Enclosing class:
- DefaultXBLManager
protected class DefaultXBLManager.XblChildNodes extends java.lang.Object implements org.w3c.dom.NodeListTo iterate over the XBL child nodes.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ListnodesThe nodes.protected DefaultXBLManager.XBLRecordrecordThe XBLRecord.protected intsizeThe number of nodes.
-
Constructor Summary
Constructors Constructor Description XblChildNodes(DefaultXBLManager.XBLRecord rec)Creates a new XblChildNodes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.w3c.dom.NodecollectXblChildNodes(org.w3c.dom.Node n, org.w3c.dom.Node prev)Find the XBL child nodes of this element.org.w3c.dom.NodegetFirstNode()Returns the first node in the list.org.w3c.dom.NodegetLastNode()Returns the last node in the list.intgetLength()DOM: ImplementsNodeList.getLength().voidinvalidate()Mark the xblNextSibling and xblPreviousSibling variables on each node in the list as invalid, then invalidate the NodeList.org.w3c.dom.Nodeitem(int index)DOM: ImplementsNodeList.item(int).protected voidupdate()Update the NodeList.
-
-
-
Field Detail
-
record
protected DefaultXBLManager.XBLRecord record
The XBLRecord.
-
nodes
protected java.util.List nodes
The nodes.
-
size
protected int size
The number of nodes.
-
-
Constructor Detail
-
XblChildNodes
public XblChildNodes(DefaultXBLManager.XBLRecord rec)
Creates a new XblChildNodes.
-
-
Method Detail
-
update
protected void update()
Update the NodeList.
-
collectXblChildNodes
protected org.w3c.dom.Node collectXblChildNodes(org.w3c.dom.Node n, org.w3c.dom.Node prev)Find the XBL child nodes of this element.
-
invalidate
public void invalidate()
Mark the xblNextSibling and xblPreviousSibling variables on each node in the list as invalid, then invalidate the NodeList.
-
getFirstNode
public org.w3c.dom.Node getFirstNode()
Returns the first node in the list.
-
getLastNode
public org.w3c.dom.Node getLastNode()
Returns the last node in the list.
-
item
public org.w3c.dom.Node item(int index)
DOM: ImplementsNodeList.item(int).- Specified by:
itemin interfaceorg.w3c.dom.NodeList
-
getLength
public int getLength()
DOM: ImplementsNodeList.getLength().- Specified by:
getLengthin interfaceorg.w3c.dom.NodeList
-
-