public final class Xpp3Utils extends Object
Xpp3Dom model.| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getChildren(org.codehaus.plexus.util.xml.Xpp3Dom parentNode)
Gets the list of all children name for the
parentNode. |
static List<org.codehaus.plexus.util.xml.Xpp3Dom> |
getChildrenNodes(org.codehaus.plexus.util.xml.Xpp3Dom parentNode,
String name)
Gets children list filtered by name of
parentNode. |
static org.codehaus.plexus.util.xml.Xpp3Dom |
getFirstChild(org.codehaus.plexus.util.xml.Xpp3Dom parentNode,
String name,
String namespace)
Retrieves the child node.
|
@Nullable public static org.codehaus.plexus.util.xml.Xpp3Dom getFirstChild(@Nullable org.codehaus.plexus.util.xml.Xpp3Dom parentNode, @Nonnull String name, @Nonnull String namespace)
parentNode - the parent nodename - the child name of node to getnamespace - the namespace (can be empty or null).Xpp3Dom representing the child of parentNode if exists, otherwise returns
null.@Nonnull public static List<String> getChildren(@Nullable org.codehaus.plexus.util.xml.Xpp3Dom parentNode)
parentNode.parentNode - the parent node to use (can be null.String representing the name of all children, which may be empty but never
null.@Nonnull public static List<org.codehaus.plexus.util.xml.Xpp3Dom> getChildrenNodes(@Nullable org.codehaus.plexus.util.xml.Xpp3Dom parentNode, String name)
parentNode.parentNode - the parent node to use.name - the name of element to filterXpp3Dom representing all children element filtered by name of
parentNode.Copyright © 2012–2023 Friederich Christophe. All rights reserved.