|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeResolver
| Field Summary | |
|---|---|
static String |
NO_NAMESPACE
|
| Method Summary | |
|---|---|
String |
getElementName(Object element)
returns the name of the element so that it may match against the selectors |
Object |
getParentElement(Object element)
returns the parent element of an element, or null if this was the root element |
int |
getPositionOfElement(Object element)
Returns the index of the position of the submitted element among its element node siblings. |
Object |
getPreviousSiblingElement(Object node)
The previous sibling element, or null if none exists |
boolean |
isFirstChildElement(Object element)
returns true if this element is the first child element of its parent |
boolean |
isLastChildElement(Object element)
returns true if this element is the last child element of its parent |
boolean |
matchesElement(Object element,
String namespaceURI,
String name)
Returns true if element has the local name
name and namespace URI namespaceURI. |
| Field Detail |
|---|
static final String NO_NAMESPACE
| Method Detail |
|---|
Object getParentElement(Object element)
String getElementName(Object element)
Object getPreviousSiblingElement(Object node)
boolean isFirstChildElement(Object element)
boolean isLastChildElement(Object element)
int getPositionOfElement(Object element)
element -
boolean matchesElement(Object element,
String namespaceURI,
String name)
true if element has the local name
name and namespace URI namespaceURI.
element - namespaceURI - The namespace to match, may be null to signify any
namespace. Use NO_NAMESPACE to signify that name
should only match when there is no namespace defined on element.name - The name to match, may not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||