public interface Ancestry
Modifier and Type | Method and Description |
---|---|
<H extends ElementHandler> |
getAncestor(Class<H> clazz)
Returns the handler's nearest ancestor (excluding itself) of a given
class.
|
int |
getChildCount()
Returns the number of child elements this handler currently has.
|
ElementHandler |
getParent()
Returns the handler's parent.
|
ElementHandler |
getSelf()
Returns the handler itself.
|
int |
getSiblingIndex()
Returns the index of this child in the list of its parent's children.
|
ElementHandler getSelf()
ElementHandler getParent()
<H extends ElementHandler> H getAncestor(Class<H> clazz)
clazz
must be ElementHandler or a subclass.
If there is no handler in the ancestry of type clazz
,
null is returned.clazz
- class requiredclazz
int getSiblingIndex()
int getChildCount()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.