public class NodeUtil
extends java.lang.Object
Node
sModifier and Type | Class and Description |
---|---|
static class |
NodeUtil.GetOperationResult |
Constructor and Description |
---|
NodeUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,com.google.common.collect.ImmutableList<Directive>> |
allDirectivesByName(java.util.List<Directive> directives) |
static void |
assertNewChildrenAreEmpty(NodeChildrenContainer newChildren) |
static <T extends NamedNode<T>> |
findNodeByName(java.util.List<T> namedNodes,
java.lang.String name) |
static java.util.Map<java.lang.String,FragmentDefinition> |
getFragmentsByName(Document document) |
static NodeUtil.GetOperationResult |
getOperation(Document document,
java.lang.String operationName) |
static <T extends NamedNode<T>> |
nodeByName(java.util.List<T> nameNode) |
static Node |
removeChild(Node node,
NodeLocation childLocationToRemove) |
public static <T extends NamedNode<T>> T findNodeByName(java.util.List<T> namedNodes, java.lang.String name)
public static java.util.Map<java.lang.String,com.google.common.collect.ImmutableList<Directive>> allDirectivesByName(java.util.List<Directive> directives)
public static <T extends NamedNode<T>> java.util.Map<java.lang.String,T> nodeByName(java.util.List<T> nameNode)
public static java.util.Map<java.lang.String,FragmentDefinition> getFragmentsByName(Document document)
public static NodeUtil.GetOperationResult getOperation(Document document, java.lang.String operationName)
public static void assertNewChildrenAreEmpty(NodeChildrenContainer newChildren)
public static Node removeChild(Node node, NodeLocation childLocationToRemove)