Uses of Interface
cdc.util.data.Node
-
Packages that use Node Package Description cdc.util.data cdc.util.data.util cdc.util.data.xml -
-
Uses of Node in cdc.util.data
Subinterfaces of Node in cdc.util.data Modifier and Type Interface Description interfaceChildInterface implemented by child nodes: they have an optional parent.interfaceLeafInterface implemented by leaf nodes (they have no children).interfaceParentInterface implemented by nodes that are parents (they have children nodes): Document and Element.Classes in cdc.util.data that implement Node Modifier and Type Class Description (package private) classAbstractChildBase class of nodes that are children (they have a parent node).(package private) classAbstractContentNodeBase class for nodes with content: text and comment.classCommentComment node.classDocumentXML like Document node.classElementXML like Element node.classTextText node.Fields in cdc.util.data with type parameters of type Node Modifier and Type Field Description static Predicate<Node>Node. ANY_NODEA Node Predicate that always returntrue.static Comparator<Node>Node. ELEMENT_NAME_AND_ATTRIBUTES_COMPARATORstatic Comparator<Node>Node. ELEMENT_NAME_COMPARATORstatic Predicate<Node>Node. IS_COMMENTA Node Predicate that returnstruewhen the node is a Comment.static Predicate<Node>Node. IS_ELEMENTA Node Predicate that returnstruewhen the node is an Element.static Predicate<Node>Node. IS_IGNORABLE_TEXTA Node Predicate that returnstruewhen the node is a Text that is ignorable.static Predicate<Node>Node. IS_PURE_ELEMENTA Node Predicate that returnstruewhen the node is an Element that has no attributes and no children .static Predicate<Node>Node. IS_TEXTA Node Predicate that returnstruewhen the node is a Text.Methods in cdc.util.data with type parameters of type Node Modifier and Type Method Description default <T extends Node>
TParent. getChild(Class<T> childClass)default <T extends Node>
TParent. getChild(Class<T> childClass, Predicate<? super T> predicate)default <T extends Node>
TParent. getChildAt(Class<T> childClass, int index)Returns the child that is an instance of a given class and is at a given position.default <T extends Node>
TParent. getChildAt(Class<T> childClass, Predicate<? super T> predicate, int index)Returns the child that is an instance of a given class, matches a Predicate and is at a given position.default <T extends Node>
Iterable<T>Parent. getChildren(Class<T> childClass)Returns an Iterable of children that are instance of a given class.default <T extends Node>
Iterable<T>Parent. getChildren(Class<T> childClass, Predicate<? super T> predicate)Returns an Iterable of children that are instance of a given class and match a predicate.default <T extends Node>
intParent. getChildrenCount(Class<T> childClass, Predicate<? super T> predicate)Returns the number of children that match a class and predicate.default <T extends Node>
booleanParent. hasChildren(Class<T> childClass, Predicate<? super T> predicate)Returnstrueif this parent has children of a given class and matching a predicate.Methods in cdc.util.data that return Node Modifier and Type Method Description NodeNode. clone(boolean recurse)Return a clone of this node.Methods in cdc.util.data that return types with arguments of type Node Modifier and Type Method Description static Predicate<Node>Element. hasAttribute(String attributeName, String attributeValue)Creates a Predicate that accepts Nodes that are elements that have an attribute with a given value.static Predicate<Node>Element. matching(Set<SPath> paths)static Predicate<Node>Element. named(String name)Creates a Predicate that accepts Nodes that are element with a given name.static Predicate<Node>Element. named(String... names)Creates a Predicate that accepts Nodes that are element whose named belongs to an array.static Predicate<Node>Element. named(Set<String> names)Creates a Predicate that accepts Nodes that are element whose named belongs to a set.static Predicate<Node>Element. namedIgnoreCase(String name)Creates a Predicate that accepts Nodes that are element with a given name, ignoring case.static Predicate<Node>Element. namedWithAttribute(String name, String attributeName, String attributeValue)Creates a Predicate that accepts Nodes that are elements with a given name and have an attribute with a given value.Methods in cdc.util.data with parameters of type Node Modifier and Type Method Description booleanAbstractContentNode. deepEquals(Node node)booleanDocument. deepEquals(Node node)booleanElement. deepEquals(Node node)booleanNode. deepEquals(Node node)Return true when this node and its descendants equals other node hierarchy.static voidNodes. print(Node node, org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level)Method parameters in cdc.util.data with type arguments of type Node Modifier and Type Method Description default intParent. getChildrenCount(Class<? extends Node> childClass)Returns the number of children that match a class.default booleanParent. hasChildren(Class<? extends Node> childClass)Returnstrueif this parent has children of a given class. -
Uses of Node in cdc.util.data.util
Fields in cdc.util.data.util with type parameters of type Node Modifier and Type Field Description static Evaluator<Node>DataUtils. RECURSEMethods in cdc.util.data.util with parameters of type Node Modifier and Type Method Description static booleanDataUtils. hasAllDescendantsMatching(Node node, Predicate<Node> predicate, boolean strict)static booleanDataUtils. hasAncestorMatching(Node node, Predicate<Node> predicate)static booleanDataUtils. hasDescendantMatching(Node node, Predicate<Node> predicate, boolean strict)static voidDataDebug. print(Node node, int level, PrintStream out)static voidDataDebug. print(Node node, Node highlight1, Node highlight2, int level, PrintStream out)static voidDataStats. print(Node node, PrintStream out)Method parameters in cdc.util.data.util with type arguments of type Node Modifier and Type Method Description static booleanDataUtils. hasAllDescendantsMatching(Node node, Predicate<Node> predicate, boolean strict)static booleanDataUtils. hasAncestorMatching(Node node, Predicate<Node> predicate)static booleanDataUtils. hasDescendantMatching(Node node, Predicate<Node> predicate, boolean strict)Constructors in cdc.util.data.util with parameters of type Node Constructor Description DataStats(Node node) -
Uses of Node in cdc.util.data.xml
Methods in cdc.util.data.xml with parameters of type Node Modifier and Type Method Description static voidXmlDataWriter. print(Node node, boolean asDocument, PrintStream out, String indent, boolean close, XmlWriter.Feature... features)Prints a Node to a PrintStream.static voidXmlDataWriter. save(Node node, boolean asDocument, File file, String indent, XmlWriter.Feature... features)Saves a Node to a File.static voidXmlDataWriter. save(Node node, boolean asDocument, OutputStream os, String indent, XmlWriter.Feature... features)Saves a Node to an OutputStream.static voidXmlDataWriter. save(Node node, boolean asDocument, Writer writer, String indent, XmlWriter.Feature... features)Saves a Node to a Writer.static voidXmlDataWriter. save(Node node, boolean asDocument, String filename, String indent, XmlWriter.Feature... features)Saves a Node to a File.static StringXmlDataWriter. toString(Node node, boolean asDocument, String indent, XmlWriter.Feature... features)voidXmlDataWriter. write(Node node)Writes a node.static voidXmlDataWriter. write(XmlWriter writer, Node node)Writes a node to an XmlWriter.static voidXmlDataWriter. write(XmlWriter writer, Node node, boolean asDocument)Writes a node to an XmlWriter.
-