Package com.helger.xml.microdom.util
Class ChildrenProviderElementWithName
- java.lang.Object
-
- com.helger.xml.microdom.util.ChildrenProviderElementWithName
-
- All Implemented Interfaces:
com.helger.commons.hierarchy.IChildrenProvider<IMicroElement>
public final class ChildrenProviderElementWithName extends Object implements com.helger.commons.hierarchy.IChildrenProvider<IMicroElement>
Implementation of theIChildrenProviderforIMicroElementobjects considering only elements with a certain element name (and optionally a namespace URI).- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description ChildrenProviderElementWithName(String sTagName)ChildrenProviderElementWithName(String sNamespaceURI, String sTagName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.helger.commons.collection.impl.ICommonsList<? extends IMicroElement>getAllChildren(IMicroElement aCurrent)intgetChildCount(IMicroElement aCurrent)booleanhasChildren(IMicroElement aCurrent)
-
-
-
Method Detail
-
hasChildren
public boolean hasChildren(@Nullable IMicroElement aCurrent)
- Specified by:
hasChildrenin interfacecom.helger.commons.hierarchy.IChildrenProvider<IMicroElement>
-
getChildCount
@Nonnegative public int getChildCount(@Nullable IMicroElement aCurrent)
- Specified by:
getChildCountin interfacecom.helger.commons.hierarchy.IChildrenProvider<IMicroElement>
-
getAllChildren
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<? extends IMicroElement> getAllChildren(@Nullable IMicroElement aCurrent)
- Specified by:
getAllChildrenin interfacecom.helger.commons.hierarchy.IChildrenProvider<IMicroElement>
-
-