Class XmlUtil
- java.lang.Object
-
- net.sourceforge.pmd.util.internal.xml.XmlUtil
-
public final class XmlUtil extends Object
-
-
Method Summary
-
-
-
Method Detail
-
getElementChildrenNamed
public static Stream<Element> getElementChildrenNamed(Element parent, Set<SchemaConstant> names)
-
getElementChildrenNamedReportOthers
public static Stream<Element> getElementChildrenNamedReportOthers(Element parent, Set<SchemaConstant> names, PmdXmlReporter err)
-
matchesName
public static boolean matchesName(Element elt, Set<SchemaConstant> names)
-
reportIgnoredUnexpectedElt
public static void reportIgnoredUnexpectedElt(Element parent, Element unexpectedChild, Set<SchemaConstant> names, PmdXmlReporter err)
-
getElementChildrenNamed
public static Stream<Element> getElementChildrenNamed(Element parent, String name)
-
getChildrenExpectSingleName
public static List<Element> getChildrenExpectSingleName(Element elt, String name, PmdXmlReporter err)
-
getSingleChildIn
public static Element getSingleChildIn(Element elt, boolean throwOnMissing, PmdXmlReporter err, Set<SchemaConstant> names)
-
formatPossibleNames
public static @Nullable String formatPossibleNames(Set<SchemaConstant> names)
-
-