|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jxpath.ri.model.dom.DOMAttributeIterator
public class DOMAttributeIterator
An iterator of attributes of a DOM Node.
| Field Summary | |
|---|---|
private java.util.List |
attributes
|
private QName |
name
|
private NodePointer |
parent
|
private int |
position
|
| Constructor Summary | |
|---|---|
DOMAttributeIterator(NodePointer parent,
QName name)
Create a new DOMAttributeIterator. |
|
| Method Summary | |
|---|---|
private static boolean |
equalStrings(java.lang.String s1,
java.lang.String s2)
Test whether two strings are == or .equals() |
private org.w3c.dom.Attr |
getAttribute(org.w3c.dom.Element element,
QName name)
Get the named attribute. |
NodePointer |
getNodePointer()
Get the NodePointer at the current position. |
int |
getPosition()
Get the current iterator position. |
boolean |
setPosition(int position)
Set the new current position. |
private boolean |
testAttr(org.w3c.dom.Attr attr)
Test an attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private NodePointer parent
private QName name
private java.util.List attributes
private int position
| Constructor Detail |
|---|
public DOMAttributeIterator(NodePointer parent,
QName name)
parent - pointername - to test| Method Detail |
|---|
private boolean testAttr(org.w3c.dom.Attr attr)
attr - to test
private static boolean equalStrings(java.lang.String s1,
java.lang.String s2)
s1 - first strings2 - second string
private org.w3c.dom.Attr getAttribute(org.w3c.dom.Element element,
QName name)
element - to searchname - to match
public NodePointer getNodePointer()
NodeIterator
getNodePointer in interface NodeIteratorpublic int getPosition()
NodeIterator
getPosition in interface NodeIteratorpublic boolean setPosition(int position)
NodeIterator
setPosition in interface NodeIteratorposition - the position to set
true if there is a node at position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||